jQWidgets Forums
Forum Replies Created
-
Author
-
Hi Abdul,
Thank you for the additional information. Disabling selection(including when using methods) is the expected behavior of the grid, but there are still some ways to achieve your functionality:
If possible, you can use a local version of jqxgrid.selection.js and modify the if clause you shared above.
If this is not possible, please have a look at the example here: https://jsfiddle.net/zu20dkny/
In the demo grid, selection is only possible through methods by modifying theallowSelect
variable.I hope this was of help!
If you have any other questions, please do not hesitate to contact us again.
Best regards,
Ivan Peevski
jQWidgets Team
https://www.jqwidgets.com/Hi Serdar,
Please have a look at the example here for a sample code: https://jsfiddle.net/tu057d4f/
You will see that all operations begin with abeginupdate
method and end withendupdate
method, which improves performance when making multiple changes at once.Best regards,
Ivan Peevski
jQWidgets Team
https://www.jqwidgets.comHi abd_wasey,
When
selectionmode
is set to ‘none’, selection with mouse click will be disabled. If you wish to disable the hover effect when the mouse is over a row, you can use theenablehover: false
property.Have a look at the example here: https://jsfiddle.net/3eo5juf4/
If you have any other questions, please do not hesitate to contact us again!
Best regards,
Ivan Peevski
jQWidgets Team
https://www.jqwidgets.com/December 22, 2021 at 11:03 am in reply to: Joomla 4 jqxGrid mysql database crud Joomla 4 jqxGrid mysql database crud #121254Hi AppBuilder,
default.php
seems correct to me and the problem comes fromdata.php
The issue comes fromecho $user_id
. JavaScript expects to receive a valid JSON object($employees in this case), but $user_id disrupts the object and makes it invalid. By removing the line, the app should work.Using the Network tab (F12 -> Network) you can check if the page can find
data.php
and what is the response from it.
If the two pages are in different directories, then yes, you need to change it to the correct one.
If it still doesn’t work, try to open the file and see what is the content of $employees, since it is difficult to say without seeing the DB.I hope this helps!
If you have any other questions, please do not hesitate to contact us again
Best regards,
Ivan Peevski
jQWidgets Team
https://www.jqwidgets.comDecember 22, 2021 at 9:25 am in reply to: ExportView issue with null date ExportView issue with null date #121251Hi jilarue,
Thank you for reporting the issue!
I have created a work item regarding this and we will work on finding the problem.
Until a fix becomes available, it is possible to manually fix the issue inside the Excel file:
The displayed numbers still represent the actual dates, so by setting the cells format toDate
, the values will be formatted correctlyIf you face any other problems, please do not hesitate to contact us again.
Best regards,
Ivan Peevski
jQWidgets TeamDecember 22, 2021 at 8:49 am in reply to: Dropdown select all filtering problem Dropdown select all filtering problem #121250Hi msoriano,
Please have a look at the updated fiddle, based on the one shared above: https://jsfiddle.net/qy1mw0ck/2/
You will see that after filtering, the first entry can be checked.
If you have any other questions, please do not hesitate to contact us again.
Best Regards,
Ivan Peevski
jQWidgets team
http://www.jqwidgets.comDecember 21, 2021 at 3:43 pm in reply to: Server-side filtering anomaly with filtertype: "list" Server-side filtering anomaly with filtertype: "list" #121246Hi olegr,
Thanks for letting us know!
Until the issue gets fixed, there is an easy workaround solution by modifying the php file to ignore the list column if it has the default value.
Using the Grid Server Filtering demo here as an example: https://www.jqwidgets.com/jquery-widgets-demo/demos/php/serverfiltering.htm?lightThe serverfiltering_data.php file should be modified in the following way:
<?php include ('connect.php'); // Connect to the database // connection String $mysqli = new mysqli($hostname, $username, $password, $database); /* check connection */ if (mysqli_connect_errno()) { printf("Connect failed: %s\n", mysqli_connect_error()); exit(); } $query = "SELECT ShipName, ShipAddress, ShipCity, ShipCountry FROM orders"; $result = $mysqli->prepare($query); // filter data. if (isset($_GET['filterscount'])) { $filterscount = $_GET['filterscount']; if ($filterscount > 0) { $where = " WHERE ("; $tmpdatafield = ""; $tmpfilteroperator = ""; $valuesPrep = ""; $values = []; for ($i = 0; $i < $filterscount; $i++) { // get the filter's value. $filtervalue; if($_GET["filtervalue" . $i] == "Please Choose:"){ $filtervalue = ""; } else{ $filtervalue = $_GET["filtervalue" . $i]; } // get the filter's condition. $filtercondition; if($_GET["filtervalue" . $i] == "Please Choose:"){ $filtercondition = "CONTAINS"; } else{ $filtercondition = $_GET["filtercondition" . $i]; } // get the filter's column. $filterdatafield = $_GET["filterdatafield" . $i]; // get the filter's operator. $filteroperator = $_GET["filteroperator" . $i]; if ($tmpdatafield == "") { $tmpdatafield = $filterdatafield; } else if ($tmpdatafield <> $filterdatafield) { $where.= ")AND("; } else if ($tmpdatafield == $filterdatafield) { if ($tmpfilteroperator == 0) { $where.= " AND "; } else $where.= " OR "; } // build the "WHERE" clause depending on the filter's condition, value and datafield. switch ($filtercondition) { case "CONTAINS": $condition = " LIKE "; $value = "%{$filtervalue}%"; break; case "DOES_NOT_CONTAIN": $condition = " NOT LIKE "; $value = "%{$filtervalue}%"; break; case "EQUAL": $condition = " = "; $value = $filtervalue; break; case "NOT_EQUAL": $condition = " <> "; $value = $filtervalue; break; case "GREATER_THAN": $condition = " > "; $value = $filtervalue; break; case "LESS_THAN": $condition = " < "; $value = $filtervalue; break; case "GREATER_THAN_OR_EQUAL": $condition = " >= "; $value = $filtervalue; break; case "LESS_THAN_OR_EQUAL": $condition = " <= "; $value = $filtervalue; break; case "STARTS_WITH": $condition = " LIKE "; $value = "{$filtervalue}%"; break; case "ENDS_WITH": $condition = " LIKE "; $value = "%{$filtervalue}"; break; case "NULL": $condition = " IS NULL "; $value = "%{$filtervalue}%"; break; case "NOT_NULL": $condition = " IS NOT NULL "; $value = "%{$filtervalue}%"; break; } $where.= " " . $filterdatafield . $condition . "? "; $valuesPrep = $valuesPrep . "s"; array_push($values, $value); if ($i == $filterscount - 1) { $where.= ")"; } $tmpfilteroperator = $filteroperator; $tmpdatafield = $filterdatafield; } // build the query. $query = "SELECT ShipName, ShipAddress, ShipCity, ShipCountry FROM orders" . $where; $result = $mysqli->prepare($query); $result->bind_param($valuesPrep, ...$values); } } $result->execute(); /* bind result variables */ $result->bind_result($ShipName, $ShipAddress, $ShipCity, $ShipCountry); /* fetch values */ while ($result->fetch()) { $orders[] = array( 'ShipName' => $ShipName, 'ShipAddress' => $ShipAddress, 'ShipCity' => $ShipCity, 'ShipCountry' => $ShipCountry ); } echo json_encode($orders); /* close statement */ $result->close(); /* close connection */ $mysqli->close();
If you have any other questions, please do not hesitate to contact us again.
Best Regards,
Ivan Peevski
jQWidgets team
https://www.jqwidgets.comDecember 21, 2021 at 8:41 am in reply to: [switch button] : missing event.args.type [switch button] : missing event.args.type #121245Hello fabriceb,
Thank you for letting us know!
I have created a work item regarding this issue and we will add it as soon as possible.If you have any other questions, please do not hesitate to contact us again.
Best regards,
Ivan Peevski
jQWidgets Team
https://www.jqwidgets.comDecember 21, 2021 at 8:01 am in reply to: Add a tab using addAt without selecting it Add a tab using addAt without selecting it #121244Hello ajcs
Unfortunately, this functionality is not currently supported by the jqxTabs component.
As a workaround solution, you can have a look at the js fiddle here: https://jsfiddle.net/qm239m7k/If the solution above does not work for you, please send us more details so that we can help you find a better workaround fix.
Best regards,
Ivan Peevski
jQWidgets Team
https://www.jqwidgets.comDecember 17, 2021 at 1:39 pm in reply to: cell doubleclick open slide down div cell doubleclick open slide down div #121240Hello Serdar,
Yes, you can. Have a look at our Nested Grids example here: https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/nestedgrids.htm?light
If you have any other questions, please do not hesitate to contact us again.
Best Regards,
Ivan Peevski
jQWidgets team
https://www.jqwidgets.comDecember 17, 2021 at 12:00 pm in reply to: jqxdropdown inside bootstrap Modal jqxdropdown inside bootstrap Modal #121239Hi naveen145903,
The
tabindex="-1"
attribute prevents all elements outside the modal from being focused.
You will see that when you remove it, the filtering field will be enabled.If you have any other questions, please do not hesitate to contact us again!
Best regards,
Ivan Peevski
jQWidgets Team
https://www.jqwidgets.comHi Vincenzo
There is no specific limit on the amount of data you can pass.
Depending on the computer, as the data gets larger(for example 10,000+ records), the webpage may start loading slower.You can have a look at the demo here: https://jsfiddle.net/sb3nkjph/1/
By changing the number of loops, you will see that the chart works perfectly even with thousands of records.If you have any other questions, please do not hesitate to contact us again.
Best regards,
Ivan Peevski
jQWidgets Team
https://www.jqwidgets.comDecember 16, 2021 at 2:36 pm in reply to: Columntype rating not displaying partial stars Columntype rating not displaying partial stars #121232Hi pauld,
The
columntype: rating
doesn’t implement jqxrating, it is simply stars filled according to the values.
But there is multiple ways to have partial stars:
When usingcolumntype: rating
, it is possible to change the CSS of the stars and make them partial: https://jsfiddle.net/4prtqax8/2/
But if you’d like to use additional jqxrating methods, you need to use thecellsrenderer
column property: https://jsfiddle.net/neLsv2pt/3/If you have any other questions, please do not hesitate to contact us again.
Best Regards,
Ivan Peevski
jQWidgets team
https://www.jqwidgets.comDecember 15, 2021 at 2:04 pm in reply to: cell doubleclick open slide down div cell doubleclick open slide down div #121229Hello Serdar,
Regarding the jseditor example you send us, have a look at this demo on how to get the position of the clicked row and set it as the position of the window:
https://jseditor.io/?key=grid-with-pop-up-window-demoYou can also have a look at our built-in
row details
functionality. It allows you to expand rows and reveal any content inside the details:
https://jsfiddle.net/jqwidgets/jKPLJ/If you have any other questions, please do not hesitate to contact us again.
Best Regards,
Ivan Peevski
jQWidgets team
https://www.jqwidgets.comHello Serdar,
Please have a look at this example to see how to get the group column name list.
When you click the button below the grid, there will be two alerts:
The first alert is a list of the Group Column Labels. The second alert is a list of the Group Column NamesIf you have any other questions, please do not hesitate to contact us again.
Best Regards,
Ivan Peevski
jQWidgets team
https://www.jqwidgets.com -
AuthorPosts