How to use Webservice in Rad Combobox

3 posts, 0 answers
  1. Ashok
    Ashok avatar
    23 posts
    Member since:
    Jul 2012

    Posted 30 Sep 2010 Link to this post

    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. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 30 Sep 2010 Link to this post

    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
  3. Ashok
    Ashok avatar
    23 posts
    Member since:
    Jul 2012

    Posted 30 Sep 2010 Link to this post

    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
Back to Top