cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Grid Updates

SOLVED
Highlighted
Newbie

Grid Updates

Is there a way to update a grid value(s) without refreshing the grid and loosing your viewing spot?

I currently just have an auto refresh widget that refreshes the data in my grid.  However, this redraws the entire grid and you loose your spot if you scroll to the bottom of the grid.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: Grid Updates

If you have a selected row it must focus the selected row on reload, if you don't have any selected row it will go to the beginning.

There's a  CurrentScrollTop and a ScrollTop bindable property on Grid widget I never used it, but I've done a fast mockup and it works :

  1. Add two new Expression Widgets
    1. Add to both a position parameter as Numeric
    2. inside both expression widgets expression property write: position
    3. FireOnFirstValue = true
    4. Autoevaluate = false
    5. DataChangeType=Always
  2. First expression widgt
    1. Bind Grid CurrentScrollTop to position parameter
    2. Bind the Refresh event to the first expression widget Evaluate
    3. Bind the Output of first expression widget to the input parameter position of the second expression widget
  3. Second Expression Widget
    1. Bind Output to the Grid ScrollTop property
    2. Bind your the event "ServiceInvokeComplete" from the service wich fills the grid   to the Second expression widget Evaluate and you are done

View solution in original post

2 REPLIES 2
Highlighted

Re: Grid Updates

If you have a selected row it must focus the selected row on reload, if you don't have any selected row it will go to the beginning.

There's a  CurrentScrollTop and a ScrollTop bindable property on Grid widget I never used it, but I've done a fast mockup and it works :

  1. Add two new Expression Widgets
    1. Add to both a position parameter as Numeric
    2. inside both expression widgets expression property write: position
    3. FireOnFirstValue = true
    4. Autoevaluate = false
    5. DataChangeType=Always
  2. First expression widgt
    1. Bind Grid CurrentScrollTop to position parameter
    2. Bind the Refresh event to the first expression widget Evaluate
    3. Bind the Output of first expression widget to the input parameter position of the second expression widget
  3. Second Expression Widget
    1. Bind Output to the Grid ScrollTop property
    2. Bind your the event "ServiceInvokeComplete" from the service wich fills the grid   to the Second expression widget Evaluate and you are done

View solution in original post

Highlighted

Re: Grid Updates

Thanks Carles your suggestion worked great!

Announcements

Thingworx Navigate content has a new home! Click here to access the new Thingworx Navigate forum! ______________________________