iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hi Andi,
Thanx a lot for the sample code.
This is what I was looking for.
grid.LayoutSettings.FreezePaneSettings.ActiveFrozenColumns = 2;
grid.FreezePane(true);}
}
grid.UnfreezePane();
I found the solution in the thread:
http://www.intersoftpt.com/Community/WebGrid/Freeze-columns-from-client-side-on-the-grid/
I'm putting the code so that if somebody happens to need this kind of behaviour, they can find it in this thread.
Thanks guys.
Hi Julia,
It works now. Thank you Julia and Andi.
There's still some problem, it refreshes everything. I mean like if i've already expanded the rows, all of it is lost. Can I call the method called by Freeze Pane command in the context menu.
Also, I can see that there's a method in WebGrid called FreezePane( ) in the javascript. How to use that method?
If anyone has already used that method, could you please give some sample code to me. It would be really helpful.
Thanks.
Regards,
Sudeep
P.S.: I've attached an image of the webgrid. It shows double line when I freeze the second column using the code provided and then unfreeze it using the context menu and then again freeze the first column. Is it a bug or my layout problem?
Thanx Gordon. It worked.
Gordon,
U r welcome!
Best Regards,
Hi ca,
This is the way you can get selected row's cell value on button click
protected void btnSelect_Click(object sender, EventArgs e){
{
Label1.Text = WebGrid1.RootTable.Rows[WebGrid1.RetrieveClientLastSelectedObject().RowIndex].Cells[0].Value
Cheers
Hi Glenn,
I can see that it works fast with few data. But when I am using 10s of thousands of data rows, the time taken seems to increase exponentially.
Solutions to this would be appreciated.
Thanx!
Hello Andi,
Thanx for the reply. Well, It doesn't seem to work for me, don't know why. Is there a way to access the context menu's "Freeze pane" event. I just need to use it without the contect menu.
Thanx.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname