I would like to know more about the GridCalculatedColumn. Is the calculated result will only be shown after the Add button is clicked?
below is the code for my GridCalculatedColumn. my calculated result is the AcquisitionCost - NetBookValue. What should i put in the Expression?
<
telerik:GridCalculatedColumn DataFields ="AcquisitionCost, NetBookValue" DataType ="System.Decimal" UniqueName ="AccumDeprectn" Aggregate="Sum" DataFormatString ="{0:N2}" Expression ="{5}-{7}"></telerik:GridCalculatedColumn>
Hello
i have a GridTemplateColumn that this column have a sub column.
this sub column type is numerical
i want add a sum of this column in footer
i previus do this for GridBounColumn with below code
if (e.Item is GridFooterItem)
{
GridFooterItem FooterItem = e.Item as GridFooterItem;
FooterItem["PriceTest"].Text = String.Format("{0:n0}", Convert.ToDouble(Sum_Total));
}
Can I Do this
Thanks
Davari
<
Resizing ResizeGridOnColumnResize="true" AllowColumnResize="true"/>
This causes resize to occur on the client but unless I post back the col positions are not saved. Because my column view state is disabled, I am performing server order changes on the server. Is there something similar for column resize? How can I force a post back to so that the column sizes are stored when changed?
Thanks,
Respected sir,
Thank you for giving me solution to expand collapse functionality. Of rad grid
|
protected void RadGrid1_PreRender(object sender, EventArgs e) |
|
{ |
|
foreach (GridDataItem item in RadGrid1.MasterTableView.Items) |
|
{ |
|
if (item.Expanded) |
|
{ |
|
foreach (GridTableView childTableView in item.ChildItem.NestedTableViews) |
|
{ |
|
|
|
foreach (GridDataItem childitem in childTableView.Items) |
|
{ |
|
childitem.Expanded = true; } } |
|
} |
|
} |
|
} |
, now I want to call this function on update event of parent. I.e. if I click on update button its child items should expand.
Following is the code I have written for same,
protected void gvClientSetup_ItemCommand(object source, Telerik.Web.UI.GridCommandEventArgs e)
{
if (e.CommandName != "ExpandCollapse")
{
if (e.Item.OwnerTableView.Name == "gvClientSetup")
{
if (e.CommandName == "PerformInsert" || e.CommandName == "Update")
{
gvClientSetup_Insert_Update(source, e);
gvClientSetup_PreRender(source, e);
}
bindGrid()
}
}
}
It jump to pre render procedure , but if (item.Expanded) returns false
How should I make this to return true so that it will expand child items
Thanks.
Ajay