This is a migrated thread and some comments may be shown as answers.

How to use Webservice in Rad Combobox

2 Answers 269 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Ashok
Top achievements
Rank 1
Ashok asked on 30 Sep 2010, 08:52 AM
Hi Team

Ho to i use Webserice in Rad combobox i'll send you the sample code which i using in application

<

 

telerik:RadComboBox ID="ddlsample" runat="server" EmptyMessage="Select" DataTextField="FirstName" DataValueField="ReferalID"

 

 

EnableLoadOnDemand="true" TabIndex="133" Width="200px">

 

 

<WebServiceSettings Method="GetRefDoc" Path="RefDoc.asmx" />

 

 

</telerik:RadComboBox>

// Webservice RefDoc.asmx

 

[

WebMethod]

 

 

public DataSet GetRefDoc()

 

{

 

DataSet ds = new DataSet();

 

ds =

GlobalGui.Instance.FillReferralDoctorCombobox1();

 

 

return ds;

 

}

this is my method calling to fill

 

public

 

DataSet FillReferralDoctorCombobox1()

 

{

 

DataSet dset = aaa.ProcessSelectStatements("Mystored_Procedure");

 

 

return dset;

 

}

i must want to store DataValueField to database and also i've to do some autopostback event for some controls.
Please Give me the solution or suggession how to use webservice ..
as soon as possible.. need to implement.

Regards,
Ashok Anbarasu

2 Answers, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 30 Sep 2010, 09:56 AM
Hello Ashok,

Please use this demo as an example (see the third RadComboBox and the code of the Web Method.

Greetings,
Simon
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Ashok
Top achievements
Rank 1
answered on 30 Sep 2010, 10:19 AM
Hi Team


I asked how to use webservice but i got one demo link in that they said

 

<WebServiceSettings Method="GetRefDoc" Path="RefDoc.asmx" />

 


like this...

in mehod GetRefDoc what i have to give to get data value field and data text field... that only i need..


Regards,
Ashok Anbarasu
Tags
ComboBox
Asked by
Ashok
Top achievements
Rank 1
Answers by
Simon
Telerik team
Ashok
Top achievements
Rank 1
Share this question
or