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

item requested not working in radgrid

1 Answer 73 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dhamodharan
Top achievements
Rank 1
Dhamodharan asked on 08 Mar 2011, 04:15 PM
Hi,

I have radcombobox into my radgrid. i want selected index changed without post back.

here i attached my code

 <telerik:RadComboBox ID="ddlCoverage" AutoPostBack="false" Width="110px" AppendDataBoundItems="true"
                                                runat="server" OnSelectedIndexChanged="ddlCoverage_IndexChanged"  DataTextField="cvg_typ_code" OnClientSelectedIndexChanged="LoadDdlCvg" OnItemsRequested="ddlCoverage_OnItemsRequested"
                                                DataValueField="pln_cvg_id">                                               
                                            </telerik:RadComboBox>


function LoadDdlCvg(combo, eventArqs) {
                      var item = eventArqs.get_item();
                      $find(combo.get_id()).requestItems(item.get_value(), false);            
                  }

   Protected Sub ddlCoverage_OnItemsRequested(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs)
        Dim rcCoverage As RadComboBox = DirectCast(sender, RadComboBox)
        Dim l_pln_id, l_pln_cvg_id, ben_EE_amt, ben_ER_amt As Double
        Dim item As GridDataItem = CType(rcCoverage.NamingContainer, GridDataItem)             
            l_pln_cvg_id = e.Text                   
            Dim lblEEContrib As Label = item.FindControl("lblEEContrib")
            Dim lblERContrib As Label = item.FindControl("lblERContrib")
              
                lblEEContrib.Text = String.Format("{0:c}", ben_EE_amt)        
    
                lblERContrib.Text = String.Format("{0:c}", ben_ER_amt)
         
       
    End Sub

Bold value comes from db correctly. but it is not showing. how to show?
is this any problem in my code?

Please give me a tips.

Thanks in advance,
Dhamu

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 11 Mar 2011, 10:18 AM
Hello dhamodharan,

Can you elaborate on where is the RadComboBox added in the RadGrid and how it the grid bound? If you can share the grid declaration and the server-side code you used for it, we will check it out and try finding where the issue comes from.

Greetings,
Iana
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
Grid
Asked by
Dhamodharan
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or