jQWidgets Forums
Forum Replies Created
-
Author
-
November 22, 2016 at 3:26 pm in reply to: How to Determine target of drag/drop How to Determine target of drag/drop #89231
Hello Hristo
Thanks for your comment, but your solution is Not what I am looking for. I need to get 2 parameters :
1) the ID of the element that I want to drag it based on the table in my data base.
2) the ID of the element that is destination of drag/drop action based on the table in my data base.I can get the firs parameter by code:
var item = $(#jxqTree).jqxTree(‘getSelectedItem’); var itemID = $(item).attr(‘id’);
so the firs parameter is “itemID”. but I do not know how to get the second parameter.
Thanks in Advance
Hello Christopher
Thanks for your support, The jqxRippon is exactly what I am looking for, but I can Not find the “View Source” of it and in Demo, jqxRibbon there is some other examples different from yours. can you please guide me how I can have a Ribbon exactly what you have linked in your answer ?
Thanks in AdvanceNovember 12, 2016 at 4:42 am in reply to: selectItem method using json data selectItem method using json data #89015Hello Christopher
Thanks for your Great help, my problem has been solved with your solution
With Best Regards
November 10, 2016 at 5:46 am in reply to: selectItem method using json data selectItem method using json data #88913Hello Christopher
my JS is : I have a Grid named “LawGrid” that shows all my Law stored in DB, in Grid I have a cell named “Update” that is cellRendered with “updateRenderer “. on clickon the cell, it show show the Law Information including it’s Category but it shows only other informations
like “Name” or etc exept the Category.function SuccessGetLawList(response) { var source = { datatype: 'json', localdata: response }; var dataAdapter = new $.jqxdataAdapter(source); updateRenderer = function(row,datafields,value) { var _LawID = $('#LawGrid').jqxGrid('getcellvalue' , row , 'LawID'); // LawID is( the name of Field in DB var _Category = $('#LawGrid').jqxGrid('getcellvalue' , row , 'CategoriID'); // CategoryID is the field in DB that Store Law Category return '<div onClick=" UpdateLaw(' + _LawID.toString() + ',\'' _Category.toString() + '\') >' }; function UpdateLaw ( _LawID, Category) { var _CategoryINT = parseInt(Category); $('#LawGTree').jqxTree('selectItem' , CategoryINT ); // That is the segment that it should show the selected Law Category in Tree to make user able to change it or not. but it does not. };
Thanks in Advance for your support
November 8, 2016 at 7:30 am in reply to: selectItem method using json data selectItem method using json data #88818Hello Christopher
and Thanks for your commentI have already bind my Tree to JSON data correctly, but in a form, when I am going to update my record info, I need the Tree to select the stored item as old data, so if user wants to change it or not for updating record. I am just using JSON data as resource in my Tree.
I have used :
$(‘#jqxTree’).jqxTree(‘selectItem’, element);
or
$(‘#jqxTree’).jqxTree(‘selectItem’, $(“#jqxTree”).find(‘li:first’)[0]);
that are in documents, but it does not work.and
Thanks in Advance -
AuthorPosts