jQWidgets Forums
Forum Replies Created
-
Author
-
August 15, 2018 at 7:43 pm in reply to: Disable selectall(or checkall/uncheck all) checkbox on top of the grid Disable selectall(or checkall/uncheck all) checkbox on top of the grid #101559
It is actually working as is.
But I will try putting it in a window.setTimeout if you say its better that way.
The code
ready: function() { $("#currentCrsMngrGrid").find('.jqx-grid-column-header:first').children().hide(); },
Is what keeps the top check box from showing that would allow the user to “select all”
This bottom piece only says if they click 1, 2, 3 rows quickly it will only allow it if they can click them faster than the timeout period specified. I used 500 milliseconds.
August 7, 2018 at 5:50 pm in reply to: Disable selectall(or checkall/uncheck all) checkbox on top of the grid Disable selectall(or checkall/uncheck all) checkbox on top of the grid #101416$("#currentCrsMngrGrid").jqxGrid( { width: '95%', height: '79%', source: dataAdapter, theme: 'critiques', sortable: true, filterable:true, autoshowcolumnsmenubutton: false, selectionMode: 'checkbox', showdefaultloadelement: true, autoshowloadelement: true, columnsheight:30, rowsheight:30, ready: function() { $("#currentCrsMngrGrid").find('.jqx-grid-column-header:first').children().hide(); }, columns: [ { text: 'CourseID', datafield: 'CourseID', width: '0%', hidden:true }, { text: 'Instructor ID', datafield: 'InstructorID', width: '0%', hidden:true }, { text: 'Point Of Contact', datafield: 'POCID', width: '0%', hidden:true }, { text: 'COURSE NAME', datafield: 'Course_Name', width: '48%' }, { text: 'LESSONS', datafield: 'Lessons', width: '8%' }, { text: 'STUDENTS', datafield: 'NumberStudents', width: '8%' }, { text: 'BEGIN DATE', datafield: 'BeginDate', width: '12%', cellsformat: 'yyyy-MM-dd' }, { text: 'END DATE', datafield: 'EndDate', width: '12%', cellsformat: 'yyyy-MM-dd' }, { text: 'STATUS', datafield: 'CourseStatusID', width: '0%', hidden:true }, { text: 'STATUS', datafield: 'CourseStatus', width: '12%' } ] }); // and to limit the number of clicked items I used var startDate = new Date(); $("#currentCrsMngrGrid").on('rowselect', function (event) { //getting my info var args = event.args; var rowBoundIndex = args.rowindex; var rowData = args.row; SelectedCurrentCourse = rowData.CourseID; SelectedBaseCourse = rowData.BaseID; //setting button states $("#editBtn").jqxButton({disabled: false}); $("#statsBtn").jqxButton({disabled: false}); $("#archiveBtn").jqxButton({disabled: false}); $("#deleteBtn").jqxButton({disabled: false}); $("#printBtn").jqxButton({disabled: false}); //making sure not more than one item is checked (you may need to adjust the millisecond //limit to get it the way you want. var endDate = new Date(); var miliseconds = (endDate.getTime() - startDate.getTime()); startDate = endDate; selectedCurriculum = event.args.row.id; if(miliseconds>500) { $("#currentCrsMngrGrid").jqxGrid('clearselection'); $("#currentCrsMngrGrid").jqxGrid('selectrow', event.args.rowindex); } });
Never mind now that I have included a no match value in the source it works fine
February 15, 2018 at 1:35 pm in reply to: Unable to get property 'host' of undefined or null reference Unable to get property 'host' of undefined or null reference #98731P.S. I am not complaining. I am so pleased with the widgets! You guys rock! I don’t know why everyone is not using them … ha their loss… We use them exclusively and love them! Have a blessed day bro.
February 15, 2018 at 1:20 pm in reply to: Unable to get property 'host' of undefined or null reference Unable to get property 'host' of undefined or null reference #98730Yes sir I did in fact I used it here.
Are you seeing something I did wrong with it?
Anyway I ended up commenting out this line in jqxtreegrid.js
a.jqx.utilities.setTheme(c,k,f.base.host);
Now it works great. Please tell me if possible why this is causing a problem. I have a temporary solution but I don’t like modifying your code because it just feels wrong ….LOL. 🙂
February 14, 2018 at 8:20 pm in reply to: Unable to get property 'host' of undefined or null reference Unable to get property 'host' of undefined or null reference #98716PS also if I go back a version of jqwidgets it works fine…but doing that breaks other parts because we are using some of the new features only provided in the current version or well 5.5.0 anyway.
January 19, 2018 at 4:54 pm in reply to: Unexpected result when using jqxListBox->checkboxes->filterable Unexpected result when using jqxListBox->checkboxes->filterable #98335I just tried to make a fiddle to show this and it appears with the newer version of jqxWidgets this is fixed.
-
AuthorPosts