I have a search screen that takes up a fair amount of real estate. When you click search, the search options compress into an accordian like control, and the Kendo grid is shown. On the grid is a toolbar with a create button.
Now, say there are no results returned from the search. I do not show the Kendo grid, but it is rendered. The display is simply set to none. In my Razor at this point, I add a create button at the bottom of my search criteria boxes. Some red text indicates that no records were found. The reason that I do not show the grid and instead keep the search criteria in full view is so the user can easily do another search.
The create button that gets added steals the anchor URL from the Kendo grid's toolbar's create button on the page. Clicking it does nothing though. Making the blank grid visible causes this link to start working.
So why would the grid display attribute cause the create button to not work? The create uses a popup window if that matters.
Now, say there are no results returned from the search. I do not show the Kendo grid, but it is rendered. The display is simply set to none. In my Razor at this point, I add a create button at the bottom of my search criteria boxes. Some red text indicates that no records were found. The reason that I do not show the grid and instead keep the search criteria in full view is so the user can easily do another search.
The create button that gets added steals the anchor URL from the Kendo grid's toolbar's create button on the page. Clicking it does nothing though. Making the blank grid visible causes this link to start working.
So why would the grid display attribute cause the create button to not work? The create uses a popup window if that matters.