Hi,
I am using RadGrid in DNN but the ajax is not working for it. Ajax is enabled in DNN and I am using RadAjaxManager on the page and binding Grid to this Ajax Manager but still nothing. I get a javascript error on the brower which says "'length' is null or not an object", I have tried everything but nothing worked. I tried putting Ajaxpanel as well but that didn't work either.
Here is my ascx code which might be of help;
Please help me out with this.
Thanks
Atiq
I am using RadGrid in DNN but the ajax is not working for it. Ajax is enabled in DNN and I am using RadAjaxManager on the page and binding Grid to this Ajax Manager but still nothing. I get a javascript error on the brower which says "'length' is null or not an object", I have tried everything but nothing worked. I tried putting Ajaxpanel as well but that didn't work either.
Here is my ascx code which might be of help;
<script type="text/javascript"> |
function openWin(args,width,height) |
{ |
var oWnd = radopen(args, "RadWindow1"); |
oWnd.setSize(width,height); |
oWnd.center(); |
//oWnd.location.reload(); |
//set a function to be called when RadWindow is closed |
oWnd.add_close(OnClientClose); |
} |
function OnClientClose(oWnd) |
{ |
window.location.reload(); |
} |
</script> |
<radT:RadWindowManager Modal="true" KeepInScreenBounds="true" |
VisibleStatusbar="false" ID="RadWindowManager1" |
ShowContentDuringLoad="true" runat="server" Skin="Default" |
Behavior="Maximize"> |
</radT:RadWindowManager> |
<radT:RadAjaxManager ID="RadAjaxManager1" runat="server"> |
<AjaxSettings> |
<radT:AjaxSetting AjaxControlID="rgSchemes"> |
<UpdatedControls> |
<radT:AjaxUpdatedControl ControlID="rgSchemes" LoadingPanelID="RadAjaxLoadingPanel1"/> |
</UpdatedControls> |
</radT:AjaxSetting> |
</AjaxSettings> |
</radT:RadAjaxManager> |
<radT:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Transparency="30" BackColor="#E0E0E0"> |
<img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' style="margin-top: 75px;" /> |
</radT:RadAjaxLoadingPanel> |
<TABLE id="tblDataGrid" cellSpacing="1" cellPadding="1" width="100%" align="center" border="1" |
runat="server"> |
<TR> |
<TD> |
<asp:label id="lblmsg" runat="server" Font-Bold="True" ForeColor="#C00000"></asp:label> |
<radT:RadGrid ID="rgSchemes" runat="server" AutoGenerateColumns="False" |
GridLines="None" PageSize="7" AllowPaging="True" AllowSorting="True" |
Skin="Sunset"> |
<MasterTableView> |
<RowIndicatorColumn Visible="False"> |
<HeaderStyle Width="20px"></HeaderStyle> |
</RowIndicatorColumn> |
<ExpandCollapseColumn Visible="False" Resizable="False"> |
<HeaderStyle Width="20px"></HeaderStyle> |
</ExpandCollapseColumn> |
<Columns> |
<radT:GridBoundColumn AllowFiltering="False" AllowSorting="false" DataField="BusinessClassID_int" |
HeaderText="Id" ReadOnly="True" UniqueName="idCol"> |
<HeaderStyle Width="3%" Font-Bold="True"></HeaderStyle> |
</radT:GridBoundColumn> |
<radT:GridTemplateColumn HeaderText="Option" |
UniqueName="optionCol"> |
<HeaderStyle Width="5%" Font-Bold="True"></HeaderStyle> |
<ItemStyle BackColor="White"></ItemStyle> |
<ItemTemplate> |
<asp:ImageButton id="editBTN" runat="server" ImageUrl="../../images/QBAdminImages/edit.gif" |
CausesValidation="false" CommandName="EditCmd"></asp:ImageButton> |
</ItemTemplate> |
</radT:GridTemplateColumn> |
<radT:GridBoundColumn DataField="Title_varchar" HeaderText="Title" ReadOnly="True" UniqueName="titleCol"> |
<HeaderStyle Width="45%" Font-Bold="True"></HeaderStyle> |
</radT:GridBoundColumn> |
<radT:GridBoundColumn DataField="BusinessClassType_varchar" AllowSorting="false" HeaderText="Type" ReadOnly="True" UniqueName="typeCol"> |
<HeaderStyle Width="9%" Font-Bold="True"></HeaderStyle> |
</radT:GridBoundColumn> |
<radT:GridTemplateColumn HeaderText="Option" |
UniqueName="optionCol"> |
<HeaderStyle Width="20%" Font-Bold="True"></HeaderStyle> |
<ItemTemplate> |
<asp:ImageButton id="sectionsBTN" runat="server" ImageUrl="../../images/QBAdminImages/sections.gif" |
CausesValidation="false" CommandName="sectionsCMD"></asp:ImageButton> |
<asp:ImageButton id="productsBTN" runat="server" ImageUrl="../../images/QBAdminImages/products.gif" |
CausesValidation="false" CommandName="productsCMD"></asp:ImageButton> |
</ItemTemplate> |
</radT:GridTemplateColumn> |
</Columns> |
<EditFormSettings> |
<PopUpSettings ScrollBars="None"></PopUpSettings> |
</EditFormSettings> |
</MasterTableView> |
<PagerStyle NextPageText="Next" PrevPageText="Prev" Mode="NextPrevAndNumeric"> |
</PagerStyle> |
</radT:RadGrid> |
</TD> |
</TR> |
<TR> |
<TD align="left"> |
<img alt="Business Class Wizard" id="HtmlImg" |
src="../../../../images/QBAdminImages/AddScheme.gif" onclick="openWin('/dotnetnuke_4_8_2_multi/DesktopModules/Tonyg.SchemeShop.Admin/addBusinessClass.aspx','850','550'); return false;" /> |
</TD> |
</TR> |
</TABLE> |
Please help me out with this.
Thanks
Atiq