How about switching from Telerik to jqGrid?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 years ago
Hello,

I've been using nopCommerce since v 2.00 and I love, great job guys!

Have you considered switching from Telerik Grids in admin panel, to jqGrid?
http://www.trirand.com/blog/
It's a jQuery component that works great with asp.net mvc. I have written some "wrappers" for it, so setting it up in view may look quite similar to current Telerik definition. It supports JSON async queries, editing etc.

Among some great features, one of the best is filter toolbar:
see demos at http://trirand.com/blog/jqgrid/jqgrid.html under "new in version 3.5"->"integrated search toolbar".

I think that it might be implemented in "Manage products" tab, so that working with products might be a little easier and faster.

What do you think about this?

Chris
12 years ago
Considered, but decided to you Telerik. MVC helpers for jqgrid are not free (only official support is acceptable) . We chosen Telerik because it's really good and it's the only one grid that has MVC helpers. I don't think that there're a lot of developers who want to work with JSON.
12 years ago
Thank you for fast response.

I've written some helpers for use with jqGrid, so that definition in view looks like:

@Html.Raw(Html.Grid("list").setUrl( "/Offer/List/" )
    .setDataType(DataType.json)
    .setRequestType(RequestType.post).setRowNumbers( true )
    .addColumn( new Column( "Number" )
                .setWidth( 70 )
                .setAlign( Align.center )
                .setLabel( "Offer number" ) )
    .addColumn(new Column("DateCreated")
                .setWidth(70)
                .setAlign(Align.center)
                .setLabel("Date created")
                .setSearchType(Searchtype.daterange))
    .addColumn( new Column( "Client" )
                .setWidth( 70 )
                .setAlign( Align.center )
                .setLabel( "Client" )
                .setSearchType(Searchtype.select)
                .setSearchTerms(Model.ClientValuesList.ToArray()))              
    .addColumn(new Column("Author")
            .setWidth( 70 )
            .setAlign(Align.center)
            .setLabel("Author")
                .setSearchType(Searchtype.select)
                    .setSearchTerms(Model.UserValuesList.ToArray()))
    .addColumn(new Column("Value")
            .setWidth(70)
            .setAlign(Align.center)
            .setLabel("Value")
            .setSearch(false)
            .setSortable(false) )
    .addColumn(new Column("IsClosed")
            .setWidth(70)
            .setAlign(Align.center)
            .setLabel("Status")
                .setSearchType(Searchtype.select)
                        .setSearchTerms(Model.IsClosedValuesList.ToArray()))
    .addColumn(new Column("CurrentVersionCategory")
            .setWidth(70)
            .setAlign(Align.center)
                .setLabel("Category").setSearchType(Searchtype.select)
                        .setSearchTerms(Model.OfferCategoryValuesList.ToArray()))
            
    .setAutoWidth(true)
    .setRowNum(25)
    .setRowList(new int[]{25,50,75,100})
    .setViewRecords(true)
    .setPager( "listPager" )
    .setSortName( "DateCreated" )
    .setSortOrder(SortOrder.desc)
    .setAltRows(true)
    .setAltClass("jqgrid_altrow")
    .setSearchToolbar( true )
    .setSearchOnEnter( false ).ToString() )        


And on the controller side there is action "List" that returns JsonResult. It's not as strongly typed as telerik (but maybe it could be done), but if you are interested I could provide some more information and/or code.
The thing is that working with jqGrid from user point of view is really nice :)

best,
chris
12 years ago
Chris,

Thanks a lot! I also found jgGrid helpers over Internet (for example, here). But who can guarantee that these helper will always be supported according to the latest jqGrid version? That's why I I've written that only official support is acceptable
12 years ago
Ah, ok, you are right. Only official plugins make sense in case of the product as nopCommerce.

btw. the wrapper you sent link to looks very nice, I might switch to that, thanks!
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.