/* comments This is my test.cshtml*/
<div id="memberAttritionLeadsDiv" class="form-group col-xs-12">
                @(Html.Kendo().Grid<AdvantEdge.Domain.LeadQueries.Dtos.LeadCampaignQueueDto>()
                                .Name("memberAttritionLeadsByCampaignGrid")
                                .Columns(columns =>
                                {
                                    columns.Select().Width(50);

                                    columns.Command(c =>
                                    {
                                        c.Edit();
                                    }).Width(100);
                                    columns.Bound(p => p.CampaignType).Title("Campaigns")
                                                           .ClientTemplate("#= renderMultiSelect(data.CampaignType) #")
                                                           .Width(260);
                                  
                                    columns.Bound(p => p.MemberFirstName).Title("First Name").Width(120);
                                    columns.Bound(p => p.MemberLastName).Title("Last Name").Width(120);
                                    columns.Bound(p => p.Zip).Title("ZIP").Width(120);
                                    columns.Bound(p => p.AddressLines).Title("Address").Width(240);
                                    columns.Bound(p => p.Street).Title("Street").Width(120);
                                    columns.Bound(p => p.City).Title("City").Width(120);
                                    columns.Bound(p => p.State).Title("State").Width(120);
                                    columns.Bound(p => p.Phone).Title("Phone").Width(120);
                                    columns.Bound(p => p.Email).Title("Email").Width(120);
                                    columns.Bound(p => p.Age).Title("Age").Width(120);
                                })
                                .Pageable(pageable => pageable
                                   .PageSizes(true)
                                   .ButtonCount(5))
                                .Sortable()
                                .Selectable(selectable => selectable
                                .Mode(GridSelectionMode.Multiple))
                                .Navigatable()
                                .PersistSelection(true)
                                    .Events(ev =>
                                    ev.Change("selectMethodInMemberLeadGrid"))

                                .Scrollable(scr => scr.Height(380))
                                .Filterable()
                                .Editable(editable => editable.Mode(GridEditMode.PopUp).TemplateName("EditManageLeadAndCampaignAssignmentPopup"))
                                .DataSource(dataSource => dataSource
                                    .Ajax()
                                    .PageSize(10)
                                    .Read(read => read.Action("GetLeadCampaignAssignments", "ManageLeadsAndCampaigns")
                                    )
                                    .Model(model => { model.Id(p => p.LeadId); model.Field(p => p.LeadId).Editable(false); })
                                    .Update(update => update.Action("UpdateLeadCampaignAssignments", "ManageLeadsAndCampaigns"))

                                   )


                )
            </div>
/* comments This is my test.cshtml*/

/* comments This is my test_controller.cs*/
 public ActionResult GetLeadCampaignAssignments([DataSourceRequest]DataSourceRequest request)
        {
            //Load the leads in Lead grid
            try
            {
                DataSourceResult leadsResult = null;

                OrganizationDto organization = _organizationQueryService.GetOrganizationByContractNumber(_identity.ContractNumber);
                if (leadTypeId != null && !string.IsNullOrWhiteSpace(leadTypeId) && leadTypeId != "Select...")
                {
                    var leadCampaignQueueDetails = _manageLeadsAndCampaignsQueriesServices.GetLeadCampaignQueueByContractNumber(_identity.ContractNumber, organization.OrganizationId, _identity.UserName);

                    leadsResult = leadCampaignQueueDetails.ToDataSourceResult(request);
                }
                //TODO: Why does the table has lead type as value instead of key?
                return Json(leadsResult, JsonRequestBehavior.AllowGet);
            }
            catch (Exception ex)
            {
                log.Error(Constants.Error_Message, ex);
            }
            return null;
        }


/* comments This is my test_controller.cs*/