jQWidgets Forums
Forum Replies Created
-
Author
-
October 16, 2013 at 4:23 am in reply to: Problem with selection mode 'chekbox' Problem with selection mode 'chekbox' #30790
This is solution is worked but i use in my project layout view (MVC 4 C#) and jqxgrid location in partial view. Maybe problem is here? Can you show for me how i can use jqxwidgets with layout view and bundle config?
October 14, 2013 at 7:44 am in reply to: Problem with selection mode 'chekbox' Problem with selection mode 'chekbox' #30676when i load data into jqxGrid without filters values selection work fine. When i apply one of the filters and loading new data, checkboxes are displaing. Now i try to select row, i do mouse click in checkbox, but row not displaying as selected. Jqxgrid are understand what this row are selected, but not displaying as selected((
October 10, 2013 at 6:51 am in reply to: Problem with selection mode 'chekbox' Problem with selection mode 'chekbox' #30526Guys! What about my problem?
October 3, 2013 at 8:08 am in reply to: Problem with selection mode 'chekbox' Problem with selection mode 'chekbox' #30115I am sure that i use the latest version of widjets. This is link http://www.jqwidgets.com/download/ for download. I choose the type of download as “personal, for non-comercial use”.
October 2, 2013 at 10:50 am in reply to: Problem with selection mode 'chekbox' Problem with selection mode 'chekbox' #30043I can selected custom rows, but this not displaing as selected.
October 2, 2013 at 10:45 am in reply to: Problem with selection mode 'chekbox' Problem with selection mode 'chekbox' #30041Oh! Yes of course!
This is my js file:
var source =
{
datatype: “json”,
datafields: [
{ name: ‘FirstName’, type: ‘string’ },
{ name: ‘MiddleName’, type: ‘string’ },
{ name: ‘SurName’, type: ‘string’ },
{ name: ‘TabNomer’, type: ‘string’ },
{name:’Podrazdelenie’, type: ‘string’}
],
url: ‘OnePhoto/GetEmployees’,
filter: function () {
$(“#jqxgrid”).jqxGrid(‘updatebounddata’, ‘filter’);
}
};
var dataAdapter = new $.jqx.dataAdapter(source);$(“#jqxdropdownbutton”).jqxDropDownButton({ width: 400, height: 25});
$(“#jqxgrid”).jqxGrid(
{
width: 768,
theme:’arctic’,
selectionmode: ‘checkbox’,
showfilterrow: true,
filterable: true,
source: dataAdapter,
columns: [
{ text: ‘Фамилия’, datafield: ‘SurName’, width: 200 },
{ text: ‘Имя’, datafield: ‘FirstName’, filterable : false, width: 100 },
{ text: ‘Отчество’, datafield: ‘MiddleName’, filterable: false, width: 180 },
{ text: ‘Таб.номер’, datafield: ‘TabNomer’, filterable: false, width: 75, cellsalign: ‘right’ },
{ text: ‘Подразделение’, datafield: ‘Podrazdelenie’, filterable: false, width: 150 }
]
});Server side code:
[Authorize]
public JsonResult GetEmployees()
{
var query = Request.QueryString;
var SurNameFilter = String.Empty;
if (filtersCount > 0)
{
var filterKey = query.GetKey(0);
if (filterKey == “SurNameoperator”)
{
SurNameFilter = query.GetValues(1)[i];
SurNameFilter = SurNameFilter.ToUpper();
var rezreq = model.tblEmployees.Where(w =>w.colSurname.StartsWith(SurNameFilter)).Select(s => new { FirstName = s.colName, MiddleName = s.colMiddlename, SurName = s.colSurname, TabNomer = s.colTabNumber, Podrazdelenie = s.tblEnterpriseTree.colName }).ToList();
return Json(rezreq, JsonRequestBehavior.AllowGet);
}
}
return Json(null, JsonRequestBehavior.AllowGet);
}And I can show screen with my problem.
-
AuthorPosts