by using "left; expression(this.parentElement.offsetParent.scrollLeft); position:relative" in css for "td", "position:relative" for "tr",
the column(s) which I want to fix had been fixed, but , the problem is that, when i scroll the horizental scroolbar , the fixed column(s)
flash, follow the scroolbar. If not webdatagrid, a simple table, then the problem is not happen.
i want to know (1) why the fixed column(s) flash in webdatagrid. (2) has any good method to fix column in webdatagrid? thanks!!!
Will this be a feature that will be added to WebDataGrid supported for all browsers?
Can you also explain how you achieved this workaround? Thanks.
Yes, this feature will definitely be added.
}
And the assigning it to the first column
Hi
I am using Infra version free control 11.2, Now I am dynamic binding webdatagrid columns to grid and applying column fixing behavior by default it is not coming when i click on pin than it is working how to make column fix in webdatagrid, plz suggest.
1 . There is a need to fix my column at run time. My column also generating at runtime.
ColumnFixing behavior = this.grdDetails.Behaviors.GetBehavior<ColumnFixing>(); if (behavior == null) behavior = this.grdDetails.Behaviors.CreateBehavior<ColumnFixing>(); //Fixes the JobCostCode column on the right behavior.FixedColumns.Add(new FixedColumnInfo("JobCostCode", FixLocation.Left));
2. How to get summary column sum at run time?
Regards
Shyam
Can you add a sample that show this? I think the issue is at what point in the page life cycle you are adding the fixed columns. From the code snippet its hard to tell when this is happening.
I am attaching a sample application in that I am applying column fixing behavior by default it is not coming when i click on pin than it is working how to make column fix in webdatagrid
There is a need to fix my column at run time without clicking on fix pin
Hi,
I took a look at your sample:
1. You add columns to the grid’s columns collection on every post back. You should not be doing this, as the grid keeps its viewstate and you will end up adding the same column twice (column with the same key) on a post back. This is not allowed as column keys need to be unique
2. You never actually fixed any columns. All you sample is doing is creating ColumnFixingSetting object and adding them to the settings collection, these just describe what the default fixing behavior for a column should be (like where it can be fixed, should be fixed on the right or left, ect). Below is a snippet that shows how to actually fix a column in code and how your Page_Load method should be changed
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { BindColumns(); } grdDetails.DataSource = BindData(); if (!IsPostBack) { /* After you have assigned the data source and initialized the Column Fixing * behavior you can add Fixed Columns*/ grdDetails.Behaviors.ColumnFixing.FixedColumns.Add( "Number"); grdDetails.DataBind(); } } Thanks
protected void Page_Load(object sender, EventArgs e) {
{
if (!IsPostBack) { BindColumns(); } grdDetails.DataSource = BindData();
BindColumns();
grdDetails.DataSource = BindData();
if (!IsPostBack) {
/* After you have assigned the data source and initialized the Column Fixing * behavior you can add Fixed Columns*/
* behavior you can add Fixed Columns*/
grdDetails.Behaviors.ColumnFixing.FixedColumns.Add(
"Number"); grdDetails.DataBind(); } } Thanks
grdDetails.DataBind();
Thanks