I’ve got an ASP.Net project with C# and have a Repeater Control on an aspx page that builds up an html table by iterating over a datasource. I want to use the JQuery Flexigrid plug-in to make the table scrollable, but have been unable to figure out how to make it work due to lack of documentation on the plug-in. Does anyone know how to do this, or have sample code to share?
Share
I have never used Flexigrid myself however after looking at the samples on the site I’ll offer my suggestions.
It looks like what you need to create with your repeater is a properly formatted html table with at least a thead and tbody section.
Once done, making a simple call to the following should create the Flexigrid table with the default settings:
From there you can pass in what looks to be a ton of options to make it look as pretty as you want.
As for the repeater itself, there are a bunch of ways to set it up depending on what you need. Probably the simplest way is as follows:
And your data bind event would look something like this: