jQWidgets Forums
Forum Replies Created
-
Author
-
January 20, 2015 at 10:35 am in reply to: export jqxgrid data to excel sheet locally export jqxgrid data to excel sheet locally #65673
Hey Dimitar,
I used the code snippet that u have given to fetch the data into a variable in jsp locally but I’m not able to see the data format. I tried alert in jsp it says ‘undefined’. Can you help me out here please.
January 20, 2015 at 6:12 am in reply to: DataTable Export to local variable DataTable Export to local variable #65640Hi Peter,
I saw the exportSettings property and I understood that we can specify the server URL which can be hit and data can be prepared locally. But I am confused about where to keep the save-file.php file and how to modify it. Can you please give me any leads on that. It will be really helpful.
July 15, 2014 at 12:09 pm in reply to: Adding jqxtooltip for each item in a list box Adding jqxtooltip for each item in a list box #57227Hi rsalinas,
According to your solution:-
$(“.jqx-listitem-state-normal:has(#elementID1)”).jqxTooltip({ content: ‘This is a div element 1.’, position: ‘mouse’, theme: theme });
$(“.jqx-listitem-state-normal:has(#elementID2)”).jqxTooltip({ content: ‘This is a div element 2.’, position: ‘mouse’, theme: theme });I need to give id of each element, but i am just simply populating the listbox with the array of string called “source” as given by Dimitar in the very first example.
I want to ask what should i do in this case as i cant have multiple ids for array of strings
June 18, 2014 at 6:00 pm in reply to: Populating Json Data in Datatable Populating Json Data in Datatable #56046Hi Peter,
I have already seen that example thats why i asked you that i want some alterations in the current widget. In the datatable widget you have a row template type.
In that i am trying to populate each row with some data that i am passing in the form of json objects.
There is a method called –> cellsRenderer
columns: [
{
text: ‘Products’, align: ‘left’, dataField: ‘model’,
// row – row’s index.
// column – column’s data field.
// value – cell’s value.
// rowData – rendered row’s object.
cellsRenderer: function (row, column, value, rowData) {
var laptops = rowData.laptops;
var container = “<div>”;
for (var i = 0; i < laptops.length; i++) {
var laptop = laptops[i];
var item = “<div style=’float: left; width: 210px; overflow: hidden; white-space: nowrap; height: 265px;’>”;
var image = “<div style=’margin: 5px; margin-bottom: 3px;’>”;
var imgurl = laptop.img;
var img = ‘‘;
image += img;
image += “</div>”;
var info = “<div style=’margin: 5px; margin-left: 10px; margin-bottom: 3px;’>”;
info += “<div><i>” + laptop.model + “</i></div>”;
info += “<div>Price: $” + laptop.price + “</div>”;
info += “<div>RAM: ” + laptop.ram + “</div>”;
info += “<div>HDD: ” + laptop.hdd + “</div>”;
info += “<div>CPU: ” + laptop.cpu + “</div>”;
info += “<div>Display: ” + laptop.display + “</div>”;
info += “</div>”;
var buy = “<button class=’buy’ style=’margin: 5px; width: 80px; left: -40px; position: relative; margin-left: 50%; margin-bottom: 3px;’>Buy</button>”;
item += image;
item += info;
item += buy;
item += “</div>”;
container += item;
}
container += “</div>”;
return container;
}I am trying to iterate my json objects in each row.
Can you give me an example to do it.Hey Dimitar
Thanks a Ton..!!! I have a last query if you will help me out…??
whenever I search the tree displays the result only if i type in the full name. But i want that if the string that i entered is contained in any of the nodes it should display the closest one..!! Like an autocomplete feature.!!
Ex:-
Search String :- ca
Results:-
CAT6K
CAT9k
CALENDAR
———-
The Moment i type :- calResults:-
CALENDAR
Thanks in advance man..!!!
This is the last help i need.. I hope..
Hi Dimitar,
You saved my day..!!! Thank you very much.!!
I just have one doubt that if i have to make the search free from case-senstivity then what can i do..?
i.e Search String—>> Software & software are same while searching.
-
AuthorPosts