C# - Add A RadGrid To A NestedViewTemplate?
Nov 17, 2010
I am currently using Visual Studio 2008 to develop a hierarchical grid that displays records, its got 3 levels. The code looks roughly like this.
<telerik:RadMultiPage runat="server" ID="RadMultiPage1" SelectedIndex="0" RenderSelectedPageOnly="false">
<telerik:RadPageView ID="RadPageView1" runat="server">
<telerik:RadGrid ID="radGrd1">
<MasterTableView>
[Code]....
I have ommited all the code and just provided the skeleton.
The problem i am having is that when i add the Radgrid, the intellisense does not seem to pick it up and visual studio does not add it to the designer class either.
I have tried viewing it in design view and forcing it to sync and even manually added it to the designer class myself. These solutions have not solved my problem as although the intellisense does pick up the control after adding it manually, the control itself is set to null during run time.
So basically is it possible to add a rad grid in the first place and if so what am i doing wrong.
View 1 Replies
Similar Messages:
Jan 14, 2011
Is anyone able to offer any decent alternatives to the telerik ASP.Net controls.
I'm in the market for a decent grid control with all singing all dancing extensions... bt I'm finding the telerik grid really hard work to deal with.
The telerik controls do look good, but after a day of hard work with them I'm just looking to see if there are any other 3rd party offerings?
View 3 Replies
Feb 5, 2010
What's the simplest way to add a new row to a Telerik RadGrid in ASP.NET from code behind?
View 2 Replies
Jul 22, 2010
I'm using the Telerik rad grid and I'm allow the user to enter data directly to the grid.
I am using the "EditForms" edit mode and I also allow inserts using the same.
If the user edits a row, then I don't want to allow any other edits or inserts until the current one is complete or cancelled.
View 1 Replies
Jun 9, 2010
I am currently highlighting a row in a radgrid using OnMouseOver. I would like to know if it is possible to use OnMouseOver to select the row rather than highlight it.
Alternatively, I would like the highlighted row to remain highlighted if the radgrid loses focus, such as when a confirmation box pops up.
View 2 Replies
Jan 15, 2010
I created a RadGrid with a couple of fields for filtering and I can't seem to get the filtering to work. I can see it clearly posting back (the ajax spinny circle thing) after typing something in the filter box, however my results are always the same. I am using the following definition in the aspx file:
<telerik:RadGrid PageSize="4" ID="RadGrid1" runat="server" AllowPaging="True" AllowSorting="True"
AutoGenerateColumns="False" OnNeedDataSource="RadGrid1_NeedDataSource"
OnSelectedIndexChanged="RadGrid1_SelectedIndexChanged" Skin="Black" ShowFooter="True"
ShowStatusBar="True" AllowFilteringByColumn="True"
[Code]....
View 2 Replies
Jun 11, 2010
When I am trying to display data using radgrid I am getting error like "Index was out of range. Must be non-negative and less than the size of the collection. Parameter: Index".
Here is my code
[Code]....
View 1 Replies
Aug 23, 2010
All I want to do, is to get a values from a grid when it is not in edit mode. Note that I'm able to get two of the values (both the int32 fields), but I cannot get a reference to the "IsActive" Checkbox or the string "Delimiter" field.
let me know how I can accomplish this. Below is my code-behind. Notice the boldfaced fields I can't get...
[code]....
View 2 Replies
Mar 24, 2011
give me any pointers for free tutorial on RADGRID or give me a simple example on how to create a RADGRID and bind it to data source.
View 2 Replies
Nov 26, 2010
I've tried to find the answer, but am not having any luck and am wasting to much time trying to figure it out. Using RadGrid from Telerik, latest version of their Ajax Controls, I've added a Select to each row, and can't figure out how to get the value of the selected row. Prefer to get the value of the ID column (from ID field in my database) or other specific columns. C# or VB example will work, VB preferred.
View 2 Replies
Apr 5, 2010
I have a Telerik RadGrid with a GridTemplateColumn that contains a checkbox, as follows:
<telerik:GridTemplateColumn HeaderText="MINE" UniqueName="MyTemplateColumn">
<ItemTemplate>
<asp:CheckBox id="MyCheckBox" runat="server"></asp:CheckBox>
</ItemTemplate>
</telerik:GridTemplateColumn>
I want to set the box to be "checked" based on a value read from the database. I could handle the ItemDataBound event and read the database when each row is bound, but that results in n lookups. Instead, I want to handle DataBound, and then set all the values at once. So, in that method, I want code like this:
[code]....
View 2 Replies
Sep 9, 2010
I'm using RadGrid from Telerik with three LinkButton controls in CommandItem , and i want to hide or show them using switch statement at code behind.
<CommandItemTemplate>
<LinkButton runat="server" ID="approveAllLink" Text="Approve All" >
</LinkButton>
<LinkButton runat="server" ID="approveLink" Text="Approve" >
</LinkButton>
<LinkButton runat="server" ID="rejectLink" Text="Reject" >
</LinkButton>
</CommandItemTemplate>
View 2 Replies
Feb 22, 2011
I've a radgrid and rendering a hyperlink column. I want to pass the id of the record into the url for the hyperlink. How can I do this?
I have this
<Columns>
<telerik:GridTemplateColumn AllowFiltering="false" HeaderText="Edit" UniqueName="Edit">
<ItemTemplate>
<asp:HyperLink ID="HyperLink1" runat="server" Target="_blank" NavigateUrl="~/Edit.aspx?Id=need_to_bind_id_here">Edit Details</asp:HyperLink>
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
There is an ID column which is generated too.
View 1 Replies
Mar 30, 2011
I want to take an already existing row in a RadGrid and instead of open an edit template I want to open the Insert template with that data.
I have a requirement to allow the user to make edits to the rows on their "key" values, the result being a new row that they didnt have to type everything over again.
My guess is to put an insert button on the row, but I'm not sure how to open the insert template and still have it bind that rows data to it.
View 1 Replies
Jan 19, 2010
using Telerik RadGrid* in a LINQ context, with ASP.NET/C#, how to truncate text to a maximum length when displaying in columns? By maximum, I mean if original string's length is shorter than the specified maximum length, no errors will raise.I have seen many examples of this on the net, but it seems that the Container.DataItem used to achieve this is different when using LINQ. Sometimes we see DataItem as a method, sometimes not. Examples are usually using a DataSet.Here's an example found (source) :
<asp:TemplateField HeaderText="Description">
<ItemTemplate>
<%# ValidateString(Container.DataItem("Description")) %>
[code]...
View 2 Replies
Oct 26, 2010
I'm having a wired problem with Radgrid.. Im using a Radgrid to display some results where the user can edit/update/delete them. I'm using a single SQL Server 2000 table to fetch the results... Not sure why the events are not firing in radgrid. But I am able to do it successfully using the Gridview control... Im using .NET framework 4
Radgrid code
<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" AutoGenerateDeleteColumn="True"
AutoGenerateEditColumn="True" DataSourceID="SSDS" GridLines="None" Width="844px"
DataMember="DefaultView">[code]....
View 1 Replies
Apr 19, 2010
I have a RadGrid on my UserControl which i wanted to print. I dont know how to print it.
View 2 Replies
Oct 5, 2010
How to refresh Telerik:radgrid contorl using Javascript ?
View 2 Replies
Jan 14, 2011
I'm really new to asp.net and Telerik...
I have a RadGrid with filtering. I set AutoPostBackOnFilter="true" and CurrentFilterFunction="Contains" on my columns. Ok it works fine, user don't have to open drop-down list to select type of filter. But now, I want to hide filter buttons.
View 1 Replies
Dec 3, 2010
I need to collect additional information from the user when they initiate a delete on a radgrid. Right now I am presenting the user with a confirmation dialog box that lets them click "OK" to continue but I need to add an additional textbox to collect a reason.
View 1 Replies
Jun 7, 2010
since Grid filter is case sensitive , i used the code below RadGrid1.GroupingSettings.CaseSensitive = false;
Can weconfigure the same thing webconfig so that in the whole project case sensitiveness of radfilter will be false.
View 1 Replies
Jul 23, 2010
I have a radGrid on the page with the "Add New Record" button. When I click the "Add New Record" button, a textbox appears above each column that allows me to enter values. I want to limit the number of characters that can be entered in the textbox. How do I set the MaxLength of those textboxes
View 1 Replies
Aug 27, 2010
I would like to add and Image along with the HeaderText in RadGrid. I can able to do this in ItemBound event. But is there any possible ways to do the same in page prerender event?
View 2 Replies
Aug 18, 2010
I would like to add a Title row to an exported File from a Rad Grid. How can I do this?
<telerik:RadGrid ID="RadGridHist" runat="server" DataSourceID="SqlDataSourceHist" Visible="false"
AutoGenerateColumns="false" AllowPaging="true" AllowSorting="true" OnPageIndexChanged="RadGridHist_PageIndexChanged"
OnPageSizeChanged="RadGridHist_PageSizeChanged" OnItemCommand="RadGridHist_ItemCommand" OnSortCommand="RadGridHist_SortCommand"
[Code].....
View 1 Replies
Dec 7, 2010
I have a checkbox column in a RadGrid that I want the user to be able to check/uncheck it and set the attached property. When the grid renders however, the checkboxes are disabled, because the grid is not in "edit mode". All the examples I'm finding want me to go through a lengthy process of selecting the record, putting it into edit mode, changing the value, saving the value.... yada yada yada...I just want the whole grid to be in edit mode (or the column, or whatever works) from the get-go, so the end user can make a one-click change to the data value. I know there must be a way to do this, I just can't seem to find it.
View 1 Replies