This is a migrated thread and some comments may be shown as answers.

Custom grid using Telerik pluggin in nopcommerce 2.8

0 Answers 110 Views
Telerik Trainer
This is a migrated thread and some comments may be shown as answers.
Sandeep
Top achievements
Rank 1
Sandeep asked on 04 Apr 2013, 06:53 AM
Iam working on nopcommerce2.8 version. I have a problem with telerik plugin implementation to create new grid.
Iam implementing a concept where for a product i want to give different price for different customer. So to assign new price for different customers, in admin panel i am creating a grid in edit productvariant page using telerik. I have created a new tab to display these details. Iam able to display customer name and price in grid, but i am not able to call update function, when i click on update button after editing a row. I have created new model to save the customer and price details. Please help me to solve this update problem.
 
The model, view and controller of my nopcommerce in given below.
 
Thanks.
 

//Model
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using FluentValidation.Attributes;
using Nop.Admin.Models.Customers;
using Nop.Admin.Validators.Catalog;
using Nop.Web.Framework;
using Nop.Web.Framework.Localization;
using Nop.Web.Framework.Mvc;
using Telerik.Web.Mvc;

namespace Nop.Admin.Models.Catalog
{
public partial class CustomerProductPriceModel : BaseNopModel
{
public int Customer_Id { get; set; }
[NopResourceDisplayName("Customer Name")]
public string Customer_name { get; set; }

[NopResourceDisplayName("Price")]
public decimal Price { get; set; }

[NopResourceDisplayName("Unit")]
public string Units { get; set; }

}
}

// view

@(Html.Telerik().Grid

No answers yet. Maybe you can help?

Tags
Telerik Trainer
Asked by
Sandeep
Top achievements
Rank 1
Share this question
or