or
<telerik:RadAjaxManagerProxy ID="rAjaxManagerProxy" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="pnlFullDescription"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="pnlFullDescription" LoadingPanelID="ralMain" /> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="pnlShortDescription"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="pnlFullDescription" LoadingPanelID="ralMain" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings></telerik:RadAjaxManagerProxy>RadGrid RadGrid1 = new RadGrid();RadGrid1.ID = "RadGrid1";RadGrid1.DataSourceID = "SqlDataSource1";RadGrid1.MasterTableView.DataKeyNames = new string[] { "Jobnumber" };RadGrid1.Skin = "WebBlue";//RadGrid1.EnableEmbeddedSkins = false;RadGrid1.Width = Unit.Percentage(100);RadGrid1.PageSize = 15;RadGrid1.AllowPaging = true;RadGrid1.PagerStyle.Mode = GridPagerMode.NextPrev;RadGrid1.AllowSorting = true;RadGrid1.AllowFilteringByColumn = false;RadGrid1.AutoGenerateColumns = false;RadGrid1.ClientSettings.Resizing.AllowColumnResize = true;RadGrid1.ClientSettings.Resizing.ResizeGridOnColumnResize = true;RadGrid1.ClientSettings.Resizing.ClipCellContentOnResize = true;RadGrid1.ClientSettings.AllowColumnsReorder = true;RadGrid1.ClientSettings.ColumnsReorderMethod = GridClientSettings.GridColumnsReorderMethod.Reorder;RadGrid1.GridLines = GridLines.Both;RadGrid1.ItemCommand += new GridCommandEventHandler(RadGrid1_ItemCommand);RadGrid1.PageIndexChanged += new GridPageChangedEventHandler(RadGrid1_PageIndexChanged);//Add columnsGridButtonColumn buttonColumn = new GridButtonColumn();buttonColumn.HeaderText = "Select File";buttonColumn.CommandName = "Select";buttonColumn.ButtonType = GridButtonColumnType.PushButton;buttonColumn.Text = "Go";buttonColumn.ItemStyle.HorizontalAlign = HorizontalAlign.Center;buttonColumn.HeaderStyle.Width = 50;buttonColumn.HeaderStyle.BackColor = System.Drawing.Color.Crimson;buttonColumn.HeaderStyle.BorderColor = System.Drawing.Color.Crimson;RadGrid1.Columns.Add(buttonColumn);<asp:DropDownList ID="ddState" runat="server" SelectedValue='<%# Bind("StateID") %>' /> Hi Team,
I am using telerik[Version=2008.2.1001.35] radGrid with selectcolumn checkbox functionality. But when I checked header checkbox for selecting all rows it throws js error . The screenshot of the js error is attached in the file "jserror.jpg".Previously I was using telerik [version 2009.2.826.20] & it was working fine.I debug the code and it got stuck to a line the screenshot of which i have attached in the file "debug.jpg". Kindly refer these two files in the attachment.
Thanks and Regards
Ganesh
<MasterTableView DataKeyNames="Id" DataSourceID="ClientDataSource" EditMode="PopUp" CommandItemDisplay="Top" HeaderStyle-CssClass="grid_header"> <CommandItemTemplate> <table width="100%"> <colgroup> <col width="35px" /> <col /> <col /> <col /> </colgroup> <tr> <td colspan="2" style="font-size: 13px; padding: 10px 10px; text-align: left; white-space: nowrap; font-weight: bold"> <asp:Label runat="server" ID="lbl_reportName" Text="none">Client List</asp:Label> </td> <td class="flow_no_print"> <telerik:RadButton ID="btnAddNewClient" runat="server" ButtonType="LinkButton" BorderStyle="None" AutoPostBack="true" CommandName="InitInsert" Text="Add Client"> <Icon PrimaryIconCssClass="rbAdd" PrimaryIconLeft="4" PrimaryIconTop="4" /> </telerik:RadButton> </td> <td class="flow_no_print" style="width: 160px; text-align: right;"> <asp:ImageButton Height="32" ID="ExportToPdfButton" CommandName="ExportToPdf" ImageUrl="~/images/icons/pdf.png" runat="server" ToolTip="Export to PDF" AlternateText="Export to PDF" /> <asp:ImageButton Height="32" ID="ExportToExcelButton" CommandName="ExportToExcel" ImageUrl="~/images/icons/excel.png" runat="server" ToolTip="Export to Excel" AlternateText="Export to Excel" /> <asp:ImageButton Height="32" ID="ExportToWordButton" CommandName="ExportToWord" ImageUrl="~/images/icons/word.png" runat="server" ToolTip="Export to Word" AlternateText="Export to Word" /> </td> </tr> <tr> <td style="width: 35px;"></td> <td></td> <td></td> <td></td> </tr> </table> </CommandItemTemplate> <Columns> <telerik:GridEditCommandColumn UniqueName="EditColumn" ButtonType="ImageButton"> <ItemStyle Width="20" /> </telerik:GridEditCommandColumn> <telerik:GridBoundColumn DataField="Id" DataType="System.Int32" HeaderText="ID" SortExpression="Id" UniqueName="Id" Visible="true" ReadOnly="true"> <ItemStyle Width="35px" /> <HeaderStyle width="35px" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Name" HeaderText="Name" MaxLength="45" SortExpression="Name" UniqueName="Name"> <ItemStyle Width="260px" /> <HeaderStyle width="260px" /> </telerik:GridBoundColumn> <telerik:GridTemplateColumn HeaderText="Active" SortExpression="Active" UniqueName="ActiveMark" ReadOnly="true"> <ItemTemplate> <%# ShowActiveInd(DataBinder.Eval(Container.DataItem, "Active"))%> </ItemTemplate> <ItemStyle Width="20px" HorizontalAlign="Left" /> <HeaderStyle width="200px" /> </telerik:GridTemplateColumn> <telerik:GridCheckBoxColumn DataField="Active" DataType="System.Boolean" HeaderText="Active" SortExpression="Active" UniqueName="Active" ReadOnly="false" Display="false" DefaultInsertValue="true" > </telerik:GridCheckBoxColumn> <telerik:GridButtonColumn ButtonType="ImageButton" UniqueName="ActiveColumn" HeaderText="Active" Display="false"> <ItemStyle HorizontalAlign="Left" /> </telerik:GridButtonColumn> </Columns>