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_TopicIcon
Get data from other
28/11/2008
05:03
Avatar
dhaenn
Member
Members
Forum Posts: 5
Member Since:
26/11/2008
sp_UserOfflineSmall Offline

Hello,

i have a selector :

and my grid

I would like to get value of data selected and refresh grid with it,

but i can't get my value selected, how can i do ?

Thanks.

29/11/2008
11:27
Avatar
palobo
Portugal
Member
Members
Forum Posts: 41
Member Since:
13/11/2008
sp_UserOfflineSmall Offline

Hi, Try something like this:

$("#selector").change(function(){
    var val = $("#selector").val();      
    $("#grid").trigger("reloadGRid");
});

Hope this helps 😉

P.

01/12/2008
03:50
Avatar
dhaenn
Member
Members
Forum Posts: 5
Member Since:
26/11/2008
sp_UserOfflineSmall Offline

hi,

ok but i use an editUrl: edit.php and i would like to use the value of the selector in the request of the file edit.php.

How can i get the value ?

Thanks.

01/12/2008
05:40
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello

How about this:

$(”#selector”).change(function(){
    var val = $(”#selector”).val();      

$("#grid").setGridParam({editUrl:'someurl?seomename='+val});
    $(”#grid”).trigger(”reloadGRid”);
});

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.

01/12/2008
07:56
Avatar
dhaenn
Member
Members
Forum Posts: 5
Member Since:
26/11/2008
sp_UserOfflineSmall Offline

Hello Tony,

i have

$(”#optContexte”).change(function(){
    var val = $(”#optContexte”).val();   
    $(”#list”).setGridParam({editUrl:'

modification.php?contexte='+val});
    $(”#list”).trigger(”reloadGrid”);
});    
</script>

<div id=”jQGrid”>
    <table id=”list” class=”scroll”>
        <select name=”optContexte” rows=”1″ >
            <option>Contexte</option>
            <option value=”DEV”>DEV</option>
            <option value=”TST”>TST</option>
            <option value=”QUA”>QUA</option>
            <option value=”PRD”>PRD</option>
        </select>   

but the grid is not reload when i select an option of my selector,

do you know why ?

Thanks ;)

02/12/2008
03:58
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

you try to attch a change event to nonexisting element with

id=optContexte. Did you see element with id=optContexte?

I do not see this element, only name which is not id.

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.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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