User Profile & Activity

Bernard Xiang Member
Page
of 52

Hi David,

 

I have tried to replicate your issue here but unfortunately it works fine. I also attached my sample here. In my sample, I used Northwind as my database. I put the code to make RowChecker invicible in PrepareDataBinding event so everytime the WebGrid want to bind the database the code will be executed. Hope this helps.

 

Regards,

Bernard

Posted: April 30, 2012 11:06 PM

Hi,

 

We have added this on feature request.

I will let you know any news I hear from the team regarding this feature request.

 

Regards,

Bernard

Posted: April 27, 2012 7:20 AM

Hello,

 

Unfortunately, it cannot be done for now. Restore state expand/collapse only can be done in hierarchical, not grouping.

However, it might be be sorted out with code. But the effort is too big.

 

Example, I attached my sample about this scenario.I hope you can have an idea how to do it.

 

In my sample, the state can be restored when refresh or sort the column inside group.

However, it still lacks of some cases such as filtering and sorting the group column.

 

Based on this experience, I suggest to have this as a feature request because it would be more elegant way to achieve this scenario.

Posted: April 27, 2012 1:09 AM

Hello Roger,

 

In documentation, the code is refer to WebGridTutorials project. In WebGridTutorials project, btnExpandGR and btnCollapseGR are variables that holds button object. If you want to use it, you should create buttons with ID then you can declare that buttons in javascript using this statement:

 

var btnExpandGR = document.getElementById(“btnExpandGR”);//ID of 1st button is “btnExpandGR”

var btnCollapseGR = document.getElementById(“btnCollapseGR”);//ID of 2nd button is “btnCollapseGR”

 

Then “btnExpandGR” and “btnCollapseGR” are declared.

 

When you remove the code, ExpandGroupRow function not working because you don’t have any event that trigger this function. If that code removed from function, the function is still working but it wouldn't working properly.

 

 

For references, you can see our WebGridTutorials on V4.0/Programmatic_UI.aspx.

*Start Menu > Intersoft WebUI Studio 2011 R2 SP1 > WebUI Studio for ASP.NET > WebGrid 7 > C# Tutorials (Visual Studio 2010 Solution)

Expand V4.0 folder and open the Programmatic_UI.aspx

Posted: April 23, 2012 12:49 AM

Hello,

I tried to replicate your issue in here but unfortunately, it works fine. I also tried any possibilities to find your issue but we couldn’t find the issue. I also attach my sample to you. In my sample, I am using NorthWind as my Data Source.  If you don’t mind, could you check my sample and tell me what configuration may be less from that sample?

Look forward to hearing back from you so that we can assist you further.

Regards,
Bernard

All times are GMT -5. The time now is 8:20 AM.
Previous Next