Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
164 views
Hi,

I'm having some problems using the radcombobox.

I'm loading the combobox with an ObjectDataSource and when I want to get the selectedItem, selectedValue or selectedIndex, they are always null, "" or -1.

I was reading that combobox cannot access data when you use on demand loading, but what's mean?

that it's the code:
<telerik:RadComboBox ID="rcb_leads" runat="server" Width="290px" 
        DataValueField="IDLEAD" Filter="Contains" DataTextField="EMAIL"  
        DataSourceID="ods_getLeads" Text="Search" AutoPostBack="True"  
            onselectedindexchanged="rcb_leads_SelectedIndexChanged" > 
        <HeaderTemplate> 
            <table style="width: 275px" cellspacing="0" cellpadding="0"
                <tr> 
                    <td style="width: 177px;"
                        Lead Name</td> 
                    <td style="width: 60px;"
                        Email</td> 
                </tr> 
            </table> 
        </HeaderTemplate> 
        <ItemTemplate> 
            <table style="width: 275px" cellspacing="0" cellpadding="0"
                <tr> 
                    <td style="width: 177px;"
                        <%# Eval("FIRSTNAME") + " " + Eval("LASTNAME") %></td
                    <td style="width: 60px;"
                        <%# Eval("EMAIL") %></td
                </tr> 
            </table> 
        </ItemTemplate> 
    </telerik:RadComboBox> 

and the datasource:

 <asp:ObjectDataSource ID="ods_getLeads" runat="server"  
        SelectMethod="GetLeadByUserId" TypeName="LeadSius.stuff.DataAccess"
        <SelectParameters> 
            <asp:SessionParameter Name="userId" SessionField="_userId" Type="Int32" /> 
        </SelectParameters> 
    </asp:ObjectDataSource> 

What is wrong with that?

Regards
Schlurk
Top achievements
Rank 2
 answered on 22 Mar 2010
6 answers
338 views

Hi!!! I have a little problem with a control, the thing is that I want to obtain the value of a control inside a EditForm, so when I perform an Insert I get the value with this:

 

 

CType(RadGrid1.MasterTableView.GetInsertItem.FindControl("CheckBox1"), CheckBox)

But when I try to edit an item and get the value of that control, I can't...

Telerik.Web.UI.GridException
  Message="Insert item is available only when grid is in insert mode."
  Source="Telerik.Web.UI"
  StackTrace:
       at Telerik.Web.UI.GridTableView.GetInsertItem()
       at _Default.ChBx_FallaSI_CheckedChanged(Object sender, EventArgs e) in C:\Documents and Settings\danivald\My Documents\WebRMAS\Default.aspx.vb:line 237
       at System.Web.UI.WebControls.CheckBox.OnCheckedChanged(EventArgs e)
       at System.Web.UI.WebControls.CheckBox.RaisePostDataChangedEvent()
       at System.Web.UI.WebControls.CheckBox.System.Web.UI.IPostBackDataHandler.RaisePostDataChangedEvent()
       at System.Web.UI.Page.RaiseChangedEvents()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
  InnerException:



Please help me...!!!!

Satya Sahu
Top achievements
Rank 1
 answered on 22 Mar 2010
1 answer
95 views
Hi,

I am able to load the Tabs dynamically from the server side by appending the tab tag to the string builder. I have also got tabs created by  loading the xml to the TabStrip  as
RadStript1.LoadContentFile("~/App_Data/xyz.xml"
My question is how can I load a custom usercontrol dynamically into these respective tabs?

Thanks

 

Dimitar Milushev
Telerik team
 answered on 22 Mar 2010
1 answer
93 views
Hi

   I would like to know that is it possible to rebind the datagrid in the item command event.
Since my requirement is to get the filter value such as date from the filter template and apply the filter in the database(instead in the grid itself) should get rebind ed after applying the filter values.

FYI
need_datasouce event is not firing after calling the grid.Rebind() method in the item command event.

Thanks
BaiH
Top achievements
Rank 1
 answered on 22 Mar 2010
2 answers
123 views
What's the proper replacement code for Q1 2010 version of DLL since it doesn't have the embedded resource.   I would like the loading image to be the same as I have referenced here.

    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px" Width="75px" Transparency="25">   
       <img alt="Loading..." style="position:absolute; top:10px; left: 500px; border:0;" src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.LoadingProgressBar.gif") %>' />  
   </telerik:RadAjaxLoadingPanel> 

Dimo
Telerik team
 answered on 22 Mar 2010
1 answer
68 views
I am using RadGrid and have a design which greatly requires nested (hierarchy) tables.  I was thinking about using LinqDataSources to bind each table level.  However, in all the examples I have seen, the hierarchy tables are presented as read-only in the demos.

Is it possible to Create Retrieve Update Delete on hierarchical tables?  If so, where would a demo of this live?

Thanks, M
Rosen
Telerik team
 answered on 22 Mar 2010
1 answer
248 views
From trying it out, I'd guess that the RadGrid's ImagesPath is not used for the GridBoundColumn's HeaderImageUrl.  Don't you think that's a good idea? 

Currently, if I am using ASP.NET themes and have my images and .skin files in a folder like ~/App_Themes/Default/, I have to point directly to that folder in the source for each GridBoundColumn where I am using a HeaderImageUrl or I have to write some code to set the image in the code behind.  I shouldn't have to point directly to that folder anywhere except in the theme folder, really.

Another option would be to allow a SkinID on grid columns so I can set the images in the .skin file, kinda like how the RadMenu RadMenuItems work. :-)

Not a huge deal, but would help clean up my code a bit. :-)
Dimo
Telerik team
 answered on 22 Mar 2010
0 answers
140 views
1 answer
145 views
Hi,

I'm interested in using the asp.net ajax controls for a project.

I've viewed a few threads here saying mono/linux is supported.

Is anyone in this forum deploying on mono? 
do the controls work? + and how quickly do they fix them if they don't?

many thanks.
Sebastian
Telerik team
 answered on 22 Mar 2010
0 answers
131 views
Hi guys,

We have discovered a bug in RadSlider in Q1 2010 release (version 2010.1.309).

PROBLEM
A server error "Specified cast is not valid." can occur after postback, when you have an invisible RadSlider control (either the slider, or one of its parents, has "display:none" applied) with items, defined on the page.

SOLUTION
As a workaround, you can execute the following code, when the RadSlider control fires its load event:
<script type="text/javascript"
    function OnClientLoad(sender,args) 
    { 
        sender.updateClientState(); 
    } 
</script> 

<telerik:RadSlider ID="RadSlider1" runat="server" ItemType="Item" OnClientLoad="OnClientLoad" 

What is Next
The problem is already fixed and the fix will be available in the next Latest Internal Build and the first service pack.

Please accept our sincere apologies for the caused inconvenience.
Telerik Admin
Top achievements
Rank 1
Iron
 asked on 22 Mar 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?