jQWidgets Forums

Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts

  • Krull
    Participant

    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.


    Krull
    Participant
    $("#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);
    			}
    		});
    
    in reply to: jqxInput No Match jqxInput No Match #100925

    Krull
    Participant

    Never mind now that I have included a no match value in the source it works fine


    Krull
    Participant

    P.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.


    Krull
    Participant

    Yes 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. 🙂


    Krull
    Participant

    PS 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.


    Krull
    Participant

    I just tried to make a fiddle to show this and it appears with the newer version of jqxWidgets this is fixed.

Viewing 7 posts - 1 through 7 (of 7 total)