| <telerik:RadComboBox ID="halfYearInterestGroup9RadComboBox" runat="server" Width="200px" |
| style="left: 662px; top: 350px; position: absolute; text-align: right;"> |
| <Items> |
| <telerik:RadComboBoxItem Text="" Value="" /> |
| <telerik:RadComboBoxItem Text="True" Value="True" /> |
| <telerik:RadComboBoxItem Text="False" Value="False" /> |
| </Items> |
| </telerik:RadComboBox> |
| <telerik:RadPane ID="RadPane2" runat="server" Height="100%" Width="300px" Scrolling="None"> |
| <telerik:RadListView ID="RadListView1" runat="server" DataSourceID="EntityDataSource1" EnableEmbeddedSkins="false" |
| AllowPaging="true" ItemPlaceholderID="ListViewContainer"> |
| <ClientSettings AllowItemsDragDrop="true"> |
| </ClientSettings> |
| <LayoutTemplate> |
| <div class="RadListView RadListView_<%# Container.Skin %>"> |
| <asp:PlaceHolder runat="server" id="ListViewContainer" /> |
| </div> |
| </LayoutTemplate> |
| <ItemTemplate> |
| <div class="rlvI"> |
| <telerik:RadListViewItemDragHandle ID="RadListViewItemDragHandle1" runat="server" ToolTip="Drag to the Sample Editor" /> |
| <asp:Panel ID="uxSampleEditorItemContainer" runat="server" ondragstart="OnClientNodeDragStart(this)" ondrag="OnClientNodeDragging()" ondragend="OnClientNodeDropping(this)"> |
| <telerik:RadBinaryImage runat="server" ID="RadBinaryImage1" ImageUrl='<%# Eval("FileSystemName", "~/Contents/UploadedFiles/UserFiles/{0}") + ".jpg" %>' |
| AutoAdjustImageControlSize="true" ResizeMode="Fit" Width="90px" Height="110px" ToolTip='<%# Eval("FileTitle") %>' |
| AlternateText='<%# Eval("FileDescription") %>' dataSrc='<%# Eval("FileSystemName", "~/Contents/UploadedFiles/UserFiles/{0}") + ".jpg" %>' /> |
| </asp:Panel> |
| </div> |
| </ItemTemplate> |
| </telerik:RadListView> |
| <asp:EntityDataSource ID="EntityDataSource1" runat="server" AutoPage="true" AutoSort="true" |
| ConnectionString="name=SampleEntities" DefaultContainerName="SampleEntities" EntitySetName="Files"> |
| </asp:EntityDataSource> |
| </telerik:RadPane> |
System.ArgumentException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Message : An item with the same key has already been added."
.I have tried a lot to solve this issue ,But all gone in vain.
Atlast I have commented all the Gridcalculated column codes.Then grid works fine.Problem is only with the grid calculated column.
I am using master pagein my webpage.
Please Help me to solve this issue,it very urgent.
| objReturn = New Telerik.Web.UI.RadDateTimePicker |
| With DirectCast(objReturn, Telerik.Web.UI.RadDateTimePicker) |
| .AutoPostBack = True |
| .CssClass = v_drControl("cCss_class").ToString |
| .SharedCalendarID = "calShared" '<-- The name of my RadCalendar |
| .SharedTimeViewID = "tvShared" '<-- The name of my RadTimeView |
| .Skin = "CHCA" |
| .EnableEmbeddedSkins = False |
| .TabIndex = CType(v_intTabIndex, Short) |
| End With |
Dear Telerik,
I am facing big blow in my applications performance with NestedGrid.
I am having the parent grid and it has four nested grids. Each nested grid placed in each tab section with the help of multipage.
As per the Telerik direction I used the Parentgrid’s pre_render event to bind all the child or nested grids as the code given below
| protected void ParentGrid_PreRender(object sender, EventArgs e) |
| { |
| foreach (GridDataItem item in ParentGrid.MasterTableView.Items) |
| { |
| if (item.Expanded) |
| { |
| //foreach (GridNestedViewItem item1 in RadFirmGrid.MasterTableView.GetItems(GridItemType.NestedView)) |
| //{ |
| GridNestedViewItem item1 = RadFirmGrid.MasterTableView.GetItems(GridItemType.NestedView)[item.ItemIndex] as GridNestedViewItem; |
| // Binding Cutomer grid |
| RadGrid Child1 = (RadGrid)item1.FindControl("Customer"); |
| // Binding Products grid |
| RadGrid Child2 = (RadGrid)item1.FindControl("Products"); |
But my application seemed is loading very slowly for each time the operation of grids or child grids Edit, grouping/sorting operation has been done. Because it calls parent grids pre_render event, then binds all the child grids again.
Note: Based on the above mentioned code logic, the grids expanded loops to be done as much of the time number of items I expanded. So again binding occurs as much time.
So how can I make my application more optimistic? Whether it would be ok if I bind the nested grid for each respective tab is selected. if i did that will the performance be ok. If so how can I achieve it?
So please direct me to solve the issue of performance with some sample of code.
Help would be appreciated..
Regards,
John