Click here to Skip to main content
15,914,323 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
JokeRe: What will you do at midnight today? Pin
Kornfeld Eliyahu Peter31-Dec-14 3:54
professionalKornfeld Eliyahu Peter31-Dec-14 3:54 
GeneralRe: What will you do at midnight today? Pin
Nagy Vilmos31-Dec-14 4:04
professionalNagy Vilmos31-Dec-14 4:04 
GeneralRe: What will you do at midnight today? Pin
Snesh Prajapati31-Dec-14 3:59
professionalSnesh Prajapati31-Dec-14 3:59 
GeneralRe: What will you do at midnight today? Pin
Jörgen Andersson31-Dec-14 4:01
professionalJörgen Andersson31-Dec-14 4:01 
GeneralRe: What will you do at midnight today? Pin
CDP180231-Dec-14 4:21
CDP180231-Dec-14 4:21 
GeneralRe: What will you do at midnight today? Pin
Ravi Bhavnani31-Dec-14 4:44
professionalRavi Bhavnani31-Dec-14 4:44 
GeneralRe: What will you do at midnight today? Pin
Keith Barrow31-Dec-14 9:01
professionalKeith Barrow31-Dec-14 9:01 
QuestionPassing value from dropdownlist to controller in jqxGrid when selected Pin
Member 1131651031-Dec-14 1:16
Member 1131651031-Dec-14 1:16 
I am stuck on passing value of selected dropdownlist. please someone help.
i can get the selected value of the dropdownlist. i just dont know how to pass it to controller for the grid.

my view :
C#
$("#jqxdropdownlist1").bind('select', function (event) {
                    if (event.args) {
                        var RRGroupID = $('#jqxdropdownlist1').val();
                        if (RRGroupID != -1) {
                            // var record = ordersAdapter.records[index];
                            var url = "../FacilityAdd/GetItemList"; url.params=RRGroupID;
                            var detailsSource =
                            {
                                url: url,//data: { name: RRGroupID },

                                datatype: "json",
                                datafields: [{ name: "ItemID", type: "int" }, { name: "FullItemName" }],
                                data: RRGroupID
                            };

                            alert(detailsSource.data);
                            var detailsAdapter = new $.jqx.dataAdapter(detailsSource);


                            $("#jqxgrid").jqxGrid({
                                source: detailsAdapter,

                                width: 500,
                                columns: [
                           { text: 'Item Name', datafield: 'FullItemName', width: 200, editable: false },
                           { text: 'Unit', width: 100, editable: true },
                           { text: 'Beginning Balance', width: 180, editable: true },
                           { text: 'Loss', width: 80, editable: true, cellsalign: 'right' },
                           { text: 'Quantity Recieved', width: 90, editable: true, cellsalign: 'right', cellsformat: 'c2' },
                           { text: 'DOS', width: 100, editable: true, cellsalign: 'right', cellsformat: 'c2' },
                           { text: 'Requested Quantity', width: 100, editable: true, cellsalign: 'right', cellsformat: 'c2' }
                                ],

                            });



controller

C#
public ActionResult GetItemList(int RRGroupID)
       {
           var items = new ItemRRFGroupRepository().GetItemName();
           var result = new JsonResult();
           result.Data = items;
           return Json(result, JsonRequestBehavior.AllowGet);
       }

AnswerRe: Passing value from dropdownlist to controller in jqxGrid when selected Pin
Kornfeld Eliyahu Peter31-Dec-14 1:18
professionalKornfeld Eliyahu Peter31-Dec-14 1:18 
AnswerRe: Passing value from dropdownlist to controller in jqxGrid when selected Pin
OriginalGriff31-Dec-14 1:30
mveOriginalGriff31-Dec-14 1:30 
GeneralRe: Passing value from dropdownlist to controller in jqxGrid when selected Pin
S Houghtelin31-Dec-14 1:40
professionalS Houghtelin31-Dec-14 1:40 
GeneralRe: Passing value from dropdownlist to controller in jqxGrid when selected Pin
OriginalGriff31-Dec-14 2:26
mveOriginalGriff31-Dec-14 2:26 
GeneralRe: Passing value from dropdownlist to controller in jqxGrid when selected Pin
S Houghtelin31-Dec-14 2:29
professionalS Houghtelin31-Dec-14 2:29 
GeneralRe: Passing value from dropdownlist to controller in jqxGrid when selected Pin
OriginalGriff31-Dec-14 2:27
mveOriginalGriff31-Dec-14 2:27 
GeneralRe: Passing value from dropdownlist to controller in jqxGrid when selected Pin
S Houghtelin31-Dec-14 2:30
professionalS Houghtelin31-Dec-14 2:30 
GeneralRe: Passing value from dropdownlist to controller in jqxGrid when selected Pin
OriginalGriff31-Dec-14 2:27
mveOriginalGriff31-Dec-14 2:27 
GeneralRe: Passing value from dropdownlist to controller in jqxGrid when selected Pin
S Houghtelin31-Dec-14 2:30
professionalS Houghtelin31-Dec-14 2:30 
GeneralRe: Passing value from dropdownlist to controller in jqxGrid when selected Pin
OriginalGriff31-Dec-14 2:27
mveOriginalGriff31-Dec-14 2:27 
GeneralRe: Passing value from dropdownlist to controller in jqxGrid when selected Pin
S Houghtelin31-Dec-14 2:30
professionalS Houghtelin31-Dec-14 2:30 
GeneralRe: Passing value from dropdownlist to controller in jqxGrid when selected Pin
OriginalGriff31-Dec-14 2:27
mveOriginalGriff31-Dec-14 2:27 
GeneralRe: Passing value from dropdownlist to controller in jqxGrid when selected Pin
S Houghtelin31-Dec-14 2:30
professionalS Houghtelin31-Dec-14 2:30 
GeneralRe: Passing value from dropdownlist to controller in jqxGrid when selected Pin
OriginalGriff31-Dec-14 2:34
mveOriginalGriff31-Dec-14 2:34 
AnswerRe: Passing value from dropdownlist to controller in jqxGrid when selected Pin
Joan M31-Dec-14 1:43
professionalJoan M31-Dec-14 1:43 
General70 Minutes To Go... Pin
Michael Martin31-Dec-14 0:52
professionalMichael Martin31-Dec-14 0:52 
GeneralRe: 70 Minutes To Go... Pin
Richard MacCutchan31-Dec-14 1:31
mveRichard MacCutchan31-Dec-14 1:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.