Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    how to display the first item in a dropdown

    hello,
    do you know how to display the first item in a dropdown
    here is my code :
    Code:
     
        {name:"r_customer_name", title:"<b><span style='color: orange'>Client </span></b>", editorType:"select",  optionDataSource:"cs_customers",  
        					changed: function(){
        						var CustomerName = CS_CustomersList.getValue("r_customer_name");
        						CS_CustomerID = CustomersResultSet.data.find({r_customer_name : CustomerName}).r_customer_idnum; 
        						CS_ServicesTreeGrid.setCriteria({r_service_fk_customer_idnum :CS_CustomerID }); 
        						CS_OrderViewList.fetchData({r_customer_idnum :CS_CustomerID }); 
        						NewCar_CustomerID = CS_CustomerID;
        					}
        }
    there is a function
    Code:
     selectRecord()
    but it works only for listGrid
    Last edited by debutant_ISC; 29 Aug 2014, 05:32.
Working...
X