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
Search select box does not populate with firsts item in Chrome or Safari
08/06/2010
21:24
Avatar
Romanp
Member
Members
Forum Posts: 7
Member Since:
19/05/2010
sp_UserOfflineSmall Offline

Hello,

I have a grid which is performing a custom search using a select box with values coming from a URL.  In Chrome and Safari, the select box has values, but the first one is not displayed in the list, as it is in IE and FireFox.

Thanks,

Roman

13/06/2010
21:02
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

We need a additional info on this - link wil be great, otherwiese we can not help.

Thanks

Regards

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

16/06/2010
17:58
Avatar
Romanp
Member
Members
Forum Posts: 7
Member Since:
19/05/2010
sp_UserOfflineSmall Offline

Hi Tony,

I'm using the grid inside a Microsoft MVC website, and it's working great in FireFox and IE.  Jquery is version 1.4.2 and the grid's version is 3.6.5.

A link is not possible, but here is the basic grid setup:

PortalGrid.Home.ProductGrid = {
    setupGrid: function(grid, pager, search) {

        grid.jqGrid({
            colNames: ['Transaction Number', 'Status', 'Created By', 'Created On'],
            colModel: [{ name: 'TransactionNumber', index: 'TransactionNumber', width: 200 },
                       { name: 'Status', index: 'Status', width: 100 },
                       { name: 'CreatedBy', index: 'CreatedBy', width: 250 },
                       { name: 'CreatedOn', index: 'CreatedOn', width: 175 },
                      ],
            pager: pager,
            sortname: 'CreatedOn',
            rowNum: 10,
            rowList: [10, 20, 50],
            sortorder: "desc",
            url: "/Portal/Queue/Transactions",
            filterToolbar: true,
            ondblClickRow: ShowTransactionDetails,
            search: true,
            postData: { Status: 'CreatedOn > 5/1/2010 AND Status == InProgress' }
        }),
        grid.jqGrid('navGrid', '#pager', { edit: false,
                                           add: false,
                                           del: false,
                                           search: false,
                                           refreshstate: "current"
                                         }),
        search.jqGrid('filterGrid', "#grid", {
            gridModel: false,
            autosearch: true,
            filterModel: [{
                label: 'Order Status:',
                name: 'Status',
                stype: 'select',
                defval: 'InProgress',
                surl: '/Portal/Queue/SearchFilter'
            }]
          })
       }
    };

The url parameter referred to above returns this html:

<html>
<body>
<select>
    <option value='CreatedOn > 5/1/2010 AND Status == InProgress'> InProgress </option>
    <option value='CreatedOn > 5/1/2010'> All </option>
    <option value='CreatedOn > 5/1/2010 AND Status == Completed'> Completed </option>
</select>
</body>
</html>

Please let me know if any of this is unclear or if you have more comments,

Thanks in advance

Roman

17/06/2010
13:25
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

Could you please try to return only

<select>
    <option value='CreatedOn > 5/1/2010 AND Status == InProgress'> InProgress </option>
    <option value='CreatedOn > 5/1/2010'> All </option>
    <option value='CreatedOn > 5/1/2010 AND Status == Completed'> Completed </option>
</select>

without html and body tags.

Best regards

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

17/06/2010
15:51
Avatar
Romanp
Member
Members
Forum Posts: 7
Member Since:
19/05/2010
sp_UserOfflineSmall Offline

Hi,

That does not seem to help.

Sorry,

Roman

17/06/2010
16:32
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

try

<select>
    <option value='CreatedOn &gt; 5/1/2010 AND Status == InProgress'> InProgress </option>
    <option value='CreatedOn &gt; 5/1/2010'> All </option>
    <option value='CreatedOn &gt; 5/1/2010 AND Status == Completed'> Completed </option>
</select>

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

17/06/2010
17:03
Avatar
Romanp
Member
Members
Forum Posts: 7
Member Since:
19/05/2010
sp_UserOfflineSmall Offline

Hi Tony,

That doesn't help either.   Thanks for the prompt replies to my questions.

Sorry,

Roman

17/06/2010
17:17
Avatar
gseroul
Member
Members
Forum Posts: 15
Member Since:
19/02/2010
sp_UserOfflineSmall Offline

Hi I think I have a bit same problem on edit form select default value, see my post http://www.trirand.com/blog/?p.....ect-field/

My problem is for having selected by default the current value in the grid. In FF the 1st value of the list is selected, on Safari nothing is selected (select box is white), and on Opera 1st value is selected but the default value is never working (see my post).

20/06/2010
09:40
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

Lokking into the code your value will not be selected since of this:

….

defval: 'InProgress',

and the select

<select>
    <option value='CreatedOn > 5/1/2010 AND Status == InProgress'> InProgress </option>
    <option value='CreatedOn > 5/1/2010'> All </option>
    <option value='CreatedOn > 5/1/2010 AND Status == Completed'> Completed </option>
</select>

Hope you got the point

Regards

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

21/06/2010
16:26
Avatar
Romanp
Member
Members
Forum Posts: 7
Member Since:
19/05/2010
sp_UserOfflineSmall Offline

Thanks!  That works great

Roman

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
45 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