Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_Related Related Topics sp_TopicIcon
page/row quantity reporting issue
26/04/2010
23:07
Avatar
Energetic Pixels
Lexington, OK, USA
Member
Members
Forum Posts: 40
Member Since:
12/04/2010
sp_UserOfflineSmall Offline

Ok.  I am seeing rows 1 through 20 being rendered in my grid.  Which is great!  But my problem is that I believe that I have set up my grid to display ALL rows, of which there are 70 some odd.  Here is the live demonstration to what it is doing.  To see what I am talking about, click the "Bullet" menu item that pulls down after hover over Small Arms.

Here is my code that controls that "bullet" menu item:

$('#bullet').click(function() {
        $('#searchResults').jqGrid({
            url: 'weaponLib/AME_sa-bullet.xml',
            datatype: 'xml',
            colNames:["DODIC","NSN", "Size/Caliber", "Nomenclature"],
            colModel:[
                {name:"dodic",index:"dodic", xmlmap:"DODIC", width:30, align:"center", sorttype:"float"},
                {name:"NSN",index:"NSN", xmlmap:"transData>NSN", width:40, align:"center"},
                {name:"size", index:"size", xmlmap:"size",width:30, align:"center"},
                {name:"nomenclature",index:"nomenclature", xmlmap:"nomenclature", width:120, align:"left"}
                ],
            height:250,
            width: 900,
            viewrecords: true,
            xmlReader: {
                root : "smallArms",
                row: "bullet",
                repeatitems: false,
                id: "[saId]"
                },
            scroll: true,
            altRows: true,
            pager: 'gridNavBar',
            caption: "Bullet Results"
        });
        $('#welcome').css('display', 'none');
        $('#theGrid').css('display', 'block');
    });

Also, how do I clear the display if someone would select one menu item and not find what they are looking for. Then they select another menu item.  The original grid still remains displayed and unmoved.

Sorry for asking about the simple stuff, but I am learning javascript through "Trial by fire"; as I go.

Tony

tony

26/04/2010
23:13
Avatar
Energetic Pixels
Lexington, OK, USA
Member
Members
Forum Posts: 40
Member Since:
12/04/2010
sp_UserOfflineSmall Offline

Ignore my posting below. I found my answer right after I sent it.
Tony

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
87 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information