Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1000
Loose active/selected row style with paging.
posted

Hi,

I am using an ultrawebgrid 2009.2

I am using the following to bind my data to the ultrawebgrid:

uwg.DataSource = refdata
uwg.DataBind()

uwg.EnableAppStyling = Infragistics.WebUI.[Shared].DefaultableBoolean.[True]
uwg.StyleSetName = "Claymation"

If (id > 0) Then
    uwg.DisplayLayout.SelectedRows.Clear()
    If (Not uwg.Rows.FromDataKey(New Object() {id}) Is Nothing) Then
        uwg.Rows.FromDataKey(New Object() {id}).Selected = True
        uwg.Rows.FromDataKey(New Object() {id}).Activated = True
        uwg.Rows.FromDataKey(New Object() {id}).Activate()
    End If
End If

The first time I load the grid, an id has been selected from another page I can see the row highlighted.

Now when I go to the next page and go back to the page the row is not highlighted. It goes into the test, if I inspect uwg.DisplayLayout.SelectedRows, the correct row has been selected, but it seems that it doesn't apply the selected row style any more.

Anyone a clue what I am doing wrong ??

Thanks

 

  • 49378
    Suggested Answer
    posted

    Hi estanito,

    It has been a while since your post, however in case you still need assistance I would be glad to help.

    In order to ensure that your style is persisted through page switching, the Browser and LoadOnDemand properties of you grid should not be set to XML as styles are not reapplied when communication with the server takes place in that mode.

    Please contact me if you have any questions.

    Best Regards,

    Petar Ivanov
    Developer Support Engineer
    Infragistics, Inc.
    http://ko.infragistics.com/support