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
1705
EmptyDataTemplate on the UltraWebGrid ??
posted

Hey guys,

 

I have a super dupper ultra web grid on my project and I couldn't figure out how to notify the user that no results were found.  Makes the user want to hit search again to make sure.

 So the question is:

 Is there a functionality on the UltraWebGrid similar to the  EmptyDataTemplate on the GridView control?

 

Currently I have a label outside the UltraWebGrid and I check on the DataBound event if rows were returned. but I think I should use, if any, built in functionality to accomplish this.

 

Thanks ! 

 

 

Parents
No Data
Reply
  • 28464
    posted

    Maybe the NoDataMessage property on the DisplayLayout setting will be helpful?

    <igtbl:UltraWebGrid ID="UltraWebGrid1" runat="server">
            <DisplayLayout NoDataMessage="Custom Message">
                ...
            </DisplayLayout>
    </igtbl:UltraWebGrid>

    Technically it might be supporting HTML should you need that, but for more complex appearance you may need to hide the grid and display your custom layout - could be easier than using NoDataMessage when there is a lot of HTML involved. 

     

Children