Page 1 of 1

NavigationListUI.NavigationList Reload

PostPosted: Tue Dec 19, 2017 11:49 am
by SBarnes
I have a form that inherits from JiwaFinancials.Jiwa.JiwaApplication.NavigationListUI.NavigationList and uses a stored procedure that takes a start date, end date and inventory ID that works perfectly.

I have now added a Next Month and Previous Month buttons to the ribbon that I want to use to obviously change the date range which I can do by calling my SetParameters function again which clears and sets up the new values but how do I get the form to recall the stored procedure and redraw the grid with the new data?

Re: NavigationListUI.NavigationList Reload  Topic is solved

PostPosted: Tue Dec 19, 2017 1:29 pm
by Mike.Sheen
You can invoke the ToolClick for the record refresh, or you can do what that does - call the grid's BuildGridFromStoredProc method.

For reference, here's the ToolClick handler in the NavigationListUI base form:

Code: Select all
Public Sub UltraToolbarsManager1_ToolClick1(sender As Object, e As Infragistics.Win.UltraWinToolbars.ToolClickEventArgs)
   Select Case e.Tool.Key
      Case "ID_RecordRefresh"
         're - read
         JiwaGrid1.BuildGridFromStoredProc(_StoredProcName, SQLParameters)
   End Select
End Sub


Mike

Re: NavigationListUI.NavigationList Reload

PostPosted: Tue Dec 19, 2017 2:39 pm
by SBarnes
Thanks Mike