jQWidgets Forums
Forum Replies Created
-
Author
-
It works. Thank you for the demo.
October 14, 2015 at 6:46 pm in reply to: On page load, auto load jqxgrid based on pre-selected item from select list On page load, auto load jqxgrid based on pre-selected item from select list #76873i got this working. thank you.
October 14, 2015 at 3:41 pm in reply to: Load jqxgrid on button click Load jqxgrid on button click #76870I got it working if i remove this line source.localdata = data;
thanks,
harshOctober 14, 2015 at 3:31 pm in reply to: Load jqxgrid on button click Load jqxgrid on button click #76869Hi ,
I tried the above example and it is not working for me. Here is my code.
$(“#addselected”).click(function(){
debugger
var offtypeid = $(“#offTypeid”).val();
var rows = $(“#grid1”).jqxGrid(‘getrows’);
var str = JSON.stringify(rows);
$.ajax({
url: “/OfficeTerritory/AddSelected”,
type: “POST”,
data: {
delchkboxloglist: str,
officeid: officeid,
offtypeid: offtypeid
},
dataType: “json”,
success: function(data){
source.localdata = data;
$(‘#grid’).jqxGrid(‘updatebounddata’);}
});public JsonResult AddSelected(string officeid, string offtypeid, string delchkboxloglist)
{List<Location> model = new JavaScriptSerializer().Deserialize<List<Location>>(delchkboxloglist);
OfficeTypeLocation otl = new OfficeTypeLocation();
otl.AddOfficeTypeLocation(officeid, offtypeid, model);List<OfficeTypeLocation> list = otl.GetOfficeTypeLocation(Convert.ToInt16(offtypeid), Convert.ToInt16(officeid));
return Json(list, JsonRequestBehavior.AllowGet);}
October 9, 2015 at 3:20 pm in reply to: Load Jqxgrid depending on the value selected in select list Load Jqxgrid depending on the value selected in select list #76635It worked.Thank you.
October 6, 2015 at 3:32 pm in reply to: How to add checkbox column to jqxgrid How to add checkbox column to jqxgrid #76481Hi,
I resolved my problem.
check_black.png image was missing when i added it problem got fixed.
Thanks you for the help.
October 6, 2015 at 3:10 pm in reply to: How to add checkbox column to jqxgrid How to add checkbox column to jqxgrid #76477Hi ,
The example you posted does not have any check-boxes.It has an alert box and no code.
Can you please re-post the example so that i can refer.Thanks,
HarshiniOctober 5, 2015 at 1:46 pm in reply to: How to add checkbox column to jqxgrid How to add checkbox column to jqxgrid #76439Hi,
Here is my code
var source1 =
{
datatype: “json”,
datafields: [{ name: ‘Description’, type: ‘string’ },
{ name: ‘ProductLineTypeID’, type: ‘string’ },
{ name: ‘SelectProductLine’, type: ‘bool’ }
],
url: “@Url.Action(“ProductList”, “ProductTypeAssignment”, new { OfficeID = Request.QueryString[“OfficeID”] })”
};
var dataAdapter1 = new $.jqx.dataAdapter(source1);
// initialize jqxGrid
$(“#grid”).jqxGrid(
{
width: 600,
editable: true,
source: dataAdapter1,
selectionmode: ‘singlecell’,editmode: ‘click’,
columns: [
{ text: ‘SelectProductLine’, datafield: ‘SelectProductLine’, columntype: ‘checkbox’, width: 67 },{ text: “Description”, datafield: “Description” },
{ text: “ProductLineTypeID”, datafield: “ProductLineTypeID” }]
});public class ProductTypeAssignmentController : Controller
{
// GET: ProductTypeAssignment
public ActionResult Index()
{ProductTypeAssign pta = new ProductTypeAssign();
List<ProductTypeAssign> list = pta.GetProductLinesSpecial(Request.QueryString[“OfficeID”]);
return View(list);
}public JsonResult ProductList()
{
ProductTypeAssign pta = new ProductTypeAssign();
List<ProductTypeAssign> list = pta.GetProductLinesSpecial(Request.QueryString[“OfficeID”]);
return Json(list, JsonRequestBehavior.AllowGet);
}
}October 2, 2015 at 5:56 pm in reply to: Passing textbox values from jqgrid to controller Passing textbox values from jqgrid to controller #76394$(“#Name”).val() is always empty when i hit submit button.
October 2, 2015 at 3:53 pm in reply to: How to add checkbox column to jqxgrid How to add checkbox column to jqxgrid #76391I have included the following files
<script type=”text/javascript” src=”http://jqwidgets.com/jquery-widgets-demo/scripts/jquery-1.11.1.min.js”></script>
<script type=”text/javascript” src=”~/Scripts/jqx-all.js”></script>
<script type=”text/javascript” src=”~/Scripts/jqxcore.js”></script>
<script type=”text/javascript” src=”~/Scripts/jqxmenu.js”></script>
<script type=”text/javascript” src=”~/Scripts/jqxgrid.edit.js”></script>the checkbox is disabled and i dont see any values in the checkbox
October 2, 2015 at 3:09 pm in reply to: Passing textbox values from jqgrid to controller Passing textbox values from jqgrid to controller #76387Hi,
I have used formatData but I am not able to pass the value entered in textboxes to controller. Its is always empty. can you please let me know wer iam going wrong.
July 6, 2015 at 1:43 pm in reply to: Grids not loading when i publish website Grids not loading when i publish website #73400I am getting the follwoing error in console
jqx-all.js:7 Uncaught NoModificationAllowedError: Failed to set the ‘innerText’ property on ‘HTMLElement’: The ‘table’ element does not support text insertion.
July 2, 2015 at 6:53 pm in reply to: Grids not loading when i publish website Grids not loading when i publish website #73309This is happening only in Chrome but not in Internet explorer. It works ok in IE but not in Chrome.
June 29, 2015 at 4:54 pm in reply to: paging information in the grid paging information in the grid #73157Hi,
Demo shows the number of records per page. But I was looking for the number of records viewing in each page for eg
1st page user views 1 to 10 records
2nd page user views 11 to 20 records
3rd page user views 21 to 25 records.If I am on first page
Viewing 1-10
If I am on second page
Viewong 11-20
and on last page
Viewong 21-25
Hi,
I got it working.
condition to check null was incorrect.
Thanks.
-
AuthorPosts