<telerik:RadGrid ID="rgJ" runat="server" Skin="WebBlue" AutoGenerateColumns="False"
GridLines="None" AllowPaging="True" PageSize="15" AllowFilteringByColumn="True"
AllowSorting="True" Width="430px" Height="440px" AllowMultiRowSelection="false" PagerStyle-Mode="NextPrevAndNumeric" >
<MasterTableView ItemStyle-Height="10px">
<Columns>
<telerik:GridTemplateColumn UniqueName="cbJobSelect" AllowFiltering="false">
<ItemTemplate>
<asp:CheckBox ID="cbJob" runat="server" OnCheckedChanged="ToggleRowSelection" Width="30px"
AutoPostBack="True" />
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn DataField="JOB_CODE" HeaderText="Job Code" UniqueName="JOB_CODE"
ReadOnly="True">
<HeaderStyle HorizontalAlign="Left" Width="110px" Wrap="False" />
<ItemStyle HorizontalAlign="Right" Width="110px" Wrap="False" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="JOB_NAME" HeaderText="Job Name" UniqueName="JOB_NAME"
ReadOnly="True">
<HeaderStyle HorizontalAlign="Left" Width="250px" Wrap="False" />
<ItemStyle HorizontalAlign="Center" Width="250px" Wrap="False" />
</telerik:GridBoundColumn>
</Columns>
<ExpandCollapseColumn>
<HeaderStyle Width="20px" />
</ExpandCollapseColumn>
<RowIndicatorColumn>
<HeaderStyle Width="20px" />
</RowIndicatorColumn>
</MasterTableView>
<ClientSettings>
<Scrolling AllowScroll="True" UseStaticHeaders="True" />
</ClientSettings>
<FilterMenu EnableTheming="True" Skin="WebBlue">
<CollapseAnimation Duration="200" Type="OutQuint" />
</FilterMenu>
Do I need to put something in the PageIndesxChanged event?
Thanks
In my scenario I want to add child nodes when any one expend the node or press the plus sign. But the Node expend event is not rising and can I call a java script function (radalert message on a condition) on context menu click event?
try
{
Telerik.Web.UI.
GridDataItem _dataItem = e.Item as Telerik.Web.UI.GridDataItem;
if (_dataItem["Status"].Text == "ASSIGNED")
{
if (Session["DepartmentCode"].ToString() != "61")
_dataItem[
"Status"].Text = "APPROVED";
}
}
catch
{
}
thanks
ghadeer
| <telerik:RadGrid ID="RadFeedsList" |
| DataSourceID="SqlDataSource2" |
| AllowMultiRowSelection="True" |
| runat="server" |
| AllowSorting="True" |
| GridLines="None" |
| Width="300px" |
| CssClass="FeedsList" |
| AutoGenerateColumns="False" |
| Skin=""> |
| <MasterTableView Width="100%"> |
| <RowIndicatorColumn> |
| <HeaderStyle Width="20px"></HeaderStyle> |
| </RowIndicatorColumn> |
| <ExpandCollapseColumn> |
| <HeaderStyle Width="20px"></HeaderStyle> |
| </ExpandCollapseColumn> |
| <Columns> |
| <telerik:GridClientSelectColumn SortExpression="CategoryID" UniqueName="ClientSelectColumn" ItemStyle-Width="10px" /> |
| <telerik:GridBoundColumn DataField="CategoryID" UniqueName="id" Visible="false" HeaderText="Feeds"></telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="Name" UniqueName="Name" HeaderText="Feeds"></telerik:GridBoundColumn> |
| </Columns> |
| </MasterTableView> |
| <ClientSettings> |
| <Selecting EnableDragToSelectRows="true" AllowRowSelect="True"></Selecting> |
| </ClientSettings> |
| <SelectedItemStyle CssClass="SelectedItem"></SelectedItemStyle> |
| <AlternatingItemStyle CssClass="" ></AlternatingItemStyle> |
| </telerik:RadGrid> |
And here is the code that I am trying to get to work:
| GridSortExpression expression = new GridSortExpression(); |
| expression.FieldName = "CategoryID"; |
| expression.SetSortOrder("Ascending"); |
| RadFeedsList.MasterTableView.SortExpressions.AddSortExpression(expression); |
| RadFeedsList.MasterTableView.Rebind(); |
But it clears all the checkboxes on the rebind/