Hi All,
I Have a nested gridview with HierarchyLoadMode="Server Binding" (think an Purchase Order / Lines).
Within the Lines grid view I have a link button in a template column:
<telerik:GridTemplateColumn UniqueName="PO_Num" HeaderText="PO #" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" SortExpression="PO_Num">
<ItemTemplate>
<asp:LinkButton runat="server" ID="lbPO" CommandArgument='<%#Eval("PO_Num").ToString() %>' OnClick="lbPO_Click" Text='<%#Eval("PO_Num").ToString()%>' ToolTip="View invoices for this PO." />
</ItemTemplate>
</telerik:GridTemplateColumn>
When this button is clicked it pulls data and binds it to a completely separate grid.
My issue is with the loading panel. When the link button first becomes visible, if I click on the link button the loading panel will not show, even though I'm dynamically adding the control to the rad ajax manager (I've tried on both the pre_render and ItemDataBound events). The button still works as though it's ajaxed, but it's not being fired though the OnRequestStart. If another control that is also ajaxed gets fired (say a dropdownlist on the page), the link button will then work as expected . . . going through the OnRequestStart and showing the loading panel.
Looking for suggestions / work arounds.
My Parent Grid databinding to the child grid:
protected void rgPurchaseOrder_ItemCommand(object sender, GridCommandEventArgs e){ if (e.CommandName == RadGrid.ExpandCollapseCommandName) { GridDataItem parentItem = e.Item as GridDataItem; RadGrid rgLines = parentItem.ChildItem.FindControl("rgLines") as RadGrid; if (!e.Item.Expanded) { rgLines.Visible = true; rgLines.Rebind(); if (parentItem.ItemType == GridItemType.AlternatingItem) //e7ffe5 parentItem.ChildItem.BackColor = System.Drawing.Color.FromArgb(231, 255, 229); } else { rgLines.Visible = false; } rgLines.MasterTableView.Rebind(); }}
My Lines PreRender . . .
protected void rgLines_PreRender(object sender, EventArgs e) { foreach (GridNestedViewItem item in rgPurchaseOrder.MasterTableView.GetItems(GridItemType.NestedView)) { GridDataItem grandParentItem = (GridDataItem)item.ParentItem; RadGrid rgLines = grandParentItem.ChildItem.FindControl("rgLines") as RadGrid; if (rgLines!= null) { foreach (GridDataItem childItem in rgLines.MasterTableView.Items) { LinkButton btn = (LinkButton)childItem["PO"].FindControl("lbPO"); RadAjaxManager.GetCurrent(this.Page).AjaxSettings.AddAjaxSetting(btn, pnlInvoices, RadAjaxLoadingPanel2); } } }}
aspx (just showing generic layout).
<radgrid ID = "rgPurchaseOrder">
<master table view>
<columns>
</Columns>
<NestedViewTemplate>
<radgrid ID="rgLines" >
</radgrid>
</master table view>
</radgrid>
<asp:panel id="pnlInvoices">
<radGrid id="rgInvoices">
</radGrid>
</asp:panel>
Hi,
Rad Grid has 100 records when we click on image button(update command) for any records on RadGrid nothing is happening expected it should be post back.
Note: It is working in local system and Test Server but not working for Production Server. This issue is only for IE 11 browser.
Kindly suggest how to fix this issue.
I want to create a scrolling dashboard with individual agent performance per record:
I would like to have the records in a grid automatically scroll at a variable rate (speed to be adjusted accordingly),
highlighting each record (one at a time) as it scrolls down (or up), and this would be looped to run continuously.
Can I accomplish this with the Grid control? Or, are their any other controls that can do this?

Hi,
I have been Googling for a solution but I haven't found one. What I need to do is relatively simple I think. I am using a GridHyperLinkColumn. Sometimes the user will not have permission to view a particular link though.
So, in the code behind what I have at the moment is something like the code below. What I need to fill in is the what goes here ?????? bit. Is it possible to populate NavigateUrl with something that will make OnItemCommand fire in the normal way?
protected void OnItemDataBound(object sender, GridItemEventArgs e){ var gridDataItem = e.Item as GridDataItem; if (gridDataItem != null) { var entity = gridDataItem.DataItem as MyEntity; if (entity != null) { if (CanViewThisEntity) { var url = GetLinkForEntitySomehow(); var link = (HyperLink)gridDataItem["Name"].Controls[0]; if (!string.IsNullOrEmpty(url)) { link.NavigateUrl = url; } } else { what goes here ?????? }My problem at the moment is that OnItemCommand will fire only if the cell is clicked somewhere outside the text of the anchor tag (because the anchor is being rendered without a link).Or is there a better way maybe. I hope I am making sense!
Thanks.

I have a legacy .net application code using AjaxManager control associated with dropdowns and a button. It works fine with earlier versions of IE but when accessing the site through IE10 the dropdown doesnot cause a postback while the button control still works fine.Can you please suggest what could be the issue and how can it be fixed?
below is the html generated for the dropdown(used alphabets for actual usercontrol names):
<select name="a$b$c$lstddl" onchange="javascript:setTimeout('window['
Is there any way to close dropdowntree but with selected item in place. Now I need to click somewhere outside tree window to select item and close dropdown.
I try to use toggleDropdow and closeDropdown in added entry event but it only close dropdown wothout selecting item.
Marko

I am have a user control in a parent page. The parent page has two RadGrids and the user control has one RadGrid. When an item is selected in one of the parent grids, the grid in the user control is updated. The UC grid uses batch editing, but both parent grid are read only. This all works, except a JavaScript error "Unable to get value of property 'id' object is null or undefined." which occurs in the Telerik.Web.UI.Grid.GridBatchEditingScripts.js file.
Between the two there are 4 files with lots of code. I would like to attach a zip file so that you can look at the code, but this forum will not allow it and because it seems to be a RadGrid JavaScipt error, I cannot isolate just where in the code the error is occurring. So I can't copy any code to this forum. Also there is no other JavaScript on the page or on the UC.
Does anyone have an idea of what might be causing this error or to at least give me some idea where to look?
Thanks,
~Sonny
How do I delete the border bottom on my RadTabStrip? See attached Picture....
I use RenderMode="Lightweight"