User Profile & Activity

Handy Surya Support
Page
of 223

Hello Eric,

I found that the validation below cause your expand/collapse status issue.

If Not grdResult.IsFlyPostBack AndAlso Session(_SessionState_Expanded_WebGridRows) IsNot Nothing Then

 If I only use the condition with below code, your expand/collapse works well.

If Session(_SessionState_Expanded_WebGridRows) IsNot Nothing Then

Regards,
Handy

Hello Richard,

Please try the below xaml code.

<Intersoft:UXNavigationButton x:Name="Google" Content="Google"  NavigateUri="http://www.google.com" TargetName="_blank" Style="{StaticResource NavigationButtonStyle}"/>

Hope this helps.

Regards,
Handy

Posted: September 30, 2010 6:30 PM

Hello Yousif,

If your Row already has edit type Custom Checkbox, the new row would be the same as default. You can see that in each WebGridColumn, we have NewRowEditType.
However, the code I suggested was for clientside (javascript). It seems not possible to do it via server side.

Regards,
Handy

Hello Eric,

Ok, but please give me a little time to figure out your sample because your code is too complex.
The properties won't work because you were using SelfReference scenario.
The properties only works for Hierarchical scenario.

Regards,
Handy

Posted: September 30, 2010 9:34 AM

Hello,

When you allow add new row in WebGrid, it will show a new row at the top that says "click here to add a new row".
As I can see in your images, there is a checkbox. So you would like to remove that checkbox and add your own custom checkbox?

If yes, as I suggest before, you would need to get the new row object.
Once you obtained the cell element of checkbox, you can hide or remove the checkbox itself. Then add your own custom checkbox.
However, I don't understand why do you need this way. If you already embedded your custom checkbox into WebGrid, when you allow add a new row, the checkbox also automatically inserted in your new row.

Regards,
Handy

Hello Maged,

So, I can assume that all changes via designer properties are not also persisted in html code? 

Regards,
Handy

Hello Eric,

I am not sure why the status in session is not working. I am still investigating this issue.
However, if you want only to remember the state of expand/collapse, does this mean that It would remember if the state and persists expand/collapse when refreshed or merged?
If yes, why don't you try RestoreExpandChildRows properties? After this properties is set as true, try to expand/collapse a row then refresh WebGrid. You can see that it still persists expand/collapse state.

Regards,
Handy 

Posted: September 29, 2010 11:26 AM

Hello Mark,

Please use SetReadOnly() instead of properties. It should be working as expected.

e.g  IS_WI.SetReadOnly(true); //set read only

or  IS_WI.SetReadOnly(false); // set writeable

Regards,
Handy

Hello Eric,

It seems your scenario could not be done.
If you want to only refresh a child after merge ( changes only in a child), then It could not be done.
WebGrid could not refresh partially only for a child. It should refresh all.
This is a default behaviour. Our WebGrid still hasn't supported refresh only in child level yet.

Regards,
Handy

Posted: September 28, 2010 10:59 AM

Hello Mark,

Ok, I will note this to our developer teams. I will get back to you when the fix is ready.

Regards,
Handy

All times are GMT -5. The time now is 12:36 PM.
Previous Next