<telerik:RadGrid ID="rg_Grid" runat="server" AllowSorting="True"
Skin="Office2007" ShowStatusBar="true" GridLines="None" Width="95%"
OnSortCommand="rg_Grid_SortCommand" OnExcelMLExportStylesCreated="rg_Grid_ExcelMLExportStylesCreated" OnExcelMLExportRowCreated="rg_Grid_ExcelMLExportRowCreated" >
<MasterTableView Width="100%" AllowMultiColumnSorting="true" />
<SortingSettings SortedBackColor="Azure" />
</telerik:RadGrid>
protected void rg_Grid_SortCommand(object source, GridSortCommandEventArgs e)
{
if (!e.Item.OwnerTableView.SortExpressions.ContainsExpression(e.SortExpression))
{
GridSortExpression sortExpr = new GridSortExpression();
sortExpr.FieldName = e.SortExpression;
sortExpr.SortOrder =
GridSortOrder.Ascending;
e.Item.OwnerTableView.SortExpressions.AddSortExpression(sortExpr);
}
}
protected void rg_Grid_NeedDataSource(object source, GridNeedDataSourceEventArgs e)
{
string gridSortString = rg_Grid.MasterTableView.SortExpressions.GetSortString();
string text = "Grid sort expression: " + gridSortString;
DataSourceSelectArguments args = new DataSourceSelectArguments(gridSortString);
DataTable dt1 = (DataTable)Session["dt"];
rg_Grid.DataSource = dt1;
}
Please help.
try
{
if (Status == 0)
grdRequest.DataSource = GetPagedResult(1);
else
grdRequest.DataSource = GetPagedResult(Status);
}
catch (Exception ex)
{
LiteralControl lCtl = new LiteralControl(ex.Message);
grdRequest.Controls.Add(lCtl);
}
finally
{
}
and I enabled the building paging.
my problem that at runtime when I click the next page I get empty page!!!!
could help me to solve my preblem
thanks
ghadeer
case
RadTreeViewDropPosition.Over:
// do stuff
break;
case RadTreeViewDropPosition.Above:
// do stuff
break;
case RadTreeViewDropPosition.Below:
// do stuff
break;
Surely, if I am 'over' the node, nothing in my case statement shoud execute if I have commented out or removed the check for 'RadTreeViewDropPosition.Over'? Yet mine detects teh 'over' when teh case is there, but seems to fall back on the 'above' or 'below' when it's not...
Cheers,
Andles
\VS Projects\navigation\ServerLocatingItems
I cannot find the "Priority" attribute , or where it is defined. I keep getting "priority is not a valid attribute for element RadPanelItem".
Have looked throughout the net, even at your
http://www.telerik.com/help/aspnet/panelbar/radpanelbar-telerik.webcontrols.radpanelitem_members.html
cannot see the "priority" attribute anywhere ?
Here it is in the code:
<telerik:RadPanelItem Text="Quick Check In" Value="11"
Priority="Low">