Where can I find examples of using infragistics controls, MVC3 and razor? I am using NetAdvantage 2011.1
Thank You
Hello mlacy1358,
Thank you for posting in our forums.
If you open an online sample you can see several source files in the dropdown
http://samples.infragistics.com/jquery/grid/editing-client-validation
You should choose the *.cshtml file to see the sample code of the view using Razor engine
Let me know if you have further questions.
These samples you provided do not use the Razor engine but are using the old ASP.Net 2.0 engine ... do you have any samples for the JQuery Grid that actually use the Razor engine?
Hello Chip,
Thank you for your interest in jQuery grid.
You are correct this is the new igGrid control.
For more information please refer to the forums:
http://news.infragistics.com/jquery/forums/default.aspx
Samples:
http://samples.infragistics.com/jquery/grid
Online Documentation:
http://help.infragistics.com/NetAdvantage/jQuery/Current/CLR4.0
You should have reference to Infragistics.Web.Mvc
Let us know if you need furhter assistance regarding this
Currently the only thing I've been able to do is the Grid (shown below). But I'm lost on how to do things like a WebImageButton. How do I include the correct assemblies? Are there any examples showing different controls and how to use them with MVC 3 and Razor. Which samples are you talking about? Is the Grid below a JQuery grid?
Thanks,
Chip
@( Html.Infragistics().Grid<JTrack>() .ID("igGrid1") .PrimaryKey("Id") .Columns(column => { column.For(x => x.Name).DataType("string").HeaderText("Name"); column.For(x => x.Duration).DataType("string").HeaderText("Time"); column.For(x => x.ArtistName).DataType("string").HeaderText("Artist"); column.For(x => x.AlbumName).DataType("string").HeaderText("Album"); column.For(x => x.GenreName).DataType("string").HeaderText("Genre"); }) .Features(features => { features.Paging().PageSize(40).PrevPageLabelText("Previous").NextPageLabelText("NEXT"); features.Sorting().Mode(SortingMode.Single).ColumnSettings(settings => { settings.ColumnSetting().ColumnKey("Name").AllowSorting(true); }); features.Selection().MouseDragSelect(true).MultipleSelection(true).Mode(SelectionMode.Row).Activation(true); })
If you are talking about NetAdvantage for jQuery and have installed samples files then open a sample page then click on "Select Sample source file to" dropdown and select *.cshtml source