or
<telerik:GridTemplateColumn UniqueName="CheckBoxTemplateColumn"> <HeaderTemplate> <asp:CheckBox ID="cl" onclick="return check_uncheck (this );" runat="server" /> </HeaderTemplate> <ItemTemplate> <asp:CheckBox ID="chk_record" onclick="return check_uncheck (this );" runat="server" /> </ItemTemplate> </telerik:GridTemplateColumn>Dim recArray As String = String.Empty For Each item As GridDataItem In grid_applications.MasterTableView.Items Dim chk As CheckBox = DirectCast(item.FindControl("chk_record"), CheckBox) If chk.Checked Then recArray += item("record").Text & "," NextI am using a radgrid with a gridclientselectcolumn as an input tool to get a list of cost centers to be included in a report.
<telerik:RadGrid ID="gridEntitiesAndCCs" runat="server" AllowSorting="True" AllowMultiRowSelection="true" AutoGenerateColumns="False" GridLines="None" Width="100%"> <MasterTableView DataKeyNames="FacilityID,CostCtr" AllowMultiColumnSorting="true"> <SortExpressions> <telerik:GridSortExpression FieldName="ShortName" SortOrder="Ascending" /> <telerik:GridSortExpression FieldName="DeptName" SortOrder="Ascending" /> </SortExpressions> <Columns> <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn" HeaderTooltip="Select all"> <HeaderStyle Width="25" /> <ItemStyle Width="25" /> </telerik:GridClientSelectColumn> <telerik:GridBoundColumn DataField="ShortName" HeaderText="Entity" SortExpression="ShortName" UniqueName="ShortName"> <HeaderStyle Width="150" /> <ItemStyle Width="150" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="CostCtr" HeaderText="Cost Center" SortExpression="CostCtr" UniqueName="CostCtr"> <HeaderStyle Width="100" /> <ItemStyle Width="100" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="DeptName" HeaderText="Dept Name" SortExpression="DeptName" UniqueName="DeptName"> </telerik:GridBoundColumn> </Columns> </MasterTableView> <ClientSettings EnablePostBackOnRowClick="false"> <Scrolling AllowScroll="true" UseStaticHeaders="true" ScrollHeight="150" /> <Selecting AllowRowSelect="true" UseClientSelectColumnOnly="true" /> </ClientSettings> </telerik:RadGrid>How can I update the grid so that all of the checkboxes in the gridclientselectcolumn and in that column's header are checked when it is initially loaded? In other words, I want the default to be that all rows are selected.
Thank you!
function MGridScrollHeight(control , pBuff) { var windowHeight = 0; var windowWidth = 0; if (typeof (window.innerWidth) == 'number') { //Non-IE // alert('non ie'); windowWidth = window.innerWidth; windowHeight = window.innerHeight; } else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) { //IE 6+ in 'standards compliant mode' // alert('IE 6+'); windowWidth = document.documentElement.clientWidth; windowHeight = document.documentElement.clientHeight; } else if (document.body && (document.body.clientWidth || document.body.clientHeight)) { //IE 4 compatible // alert('IE 4'); windowWidth = document.body.clientWidth; windowHeight = document.body.clientHeight; } var resizeCont = document.getElementById(control); var buffer; // BUFFERING if (pBuff != undefined) { buffer = pBuff; } else { buffer = 30; } if ((windowHeight - (resizeCont.offsetTop + resizeCont.offsetParent.offsetTop) - buffer) > 100) { resizeCont.style.height = (windowHeight - (resizeCont.offsetTop + resizeCont.offsetParent.offsetTop) - buffer) + 'px'; } else { resizeCont.style.height = 100 }}I am attempting to display several dynamically generated series in a line chart using the RadHtmlChart, however the axis labels and title are rendering under the axis instead of the chart (DefaultRendering.png). I found a similar question that had the answer of "use the 'AxisCrossingValue' of the YAxis"; when i apply the minimum chart value i get the result in "RenderingWithAxisCrossingValue.png". How can I get the chart to render with both title and labels below the chart area as depicted in "RequiredRendering.png"? Thanks, Sean