Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
115 views
Hi,

We have ASP.NET application that has master page that contains content page with master/detail grids. Master grid can be 1 while detail grids can be more. Detail grids are placed in separate rad tabs. In every grid we have context menu where from we start exporting grid data to Excel.

The handler for exporting is placed to master page.

The question is how can we get the reference of right grid in master page handler? For example, we have 1 master grid and 2 detail grids in 2 rad tabs below. We can click context menu option in first detail grid, but how do we know it's first detail grid?


Thank you in advance,

Goran
Goran
Top achievements
Rank 1
 answered on 21 Mar 2013
3 answers
174 views
I have a RadGrid that's using a RadImageColumn to display an image based on the value of a field in the data source, which is working perfectly fine.

However, when my datasource is bound to a collection of an interface type, I'm getting the error "Object does not match target type".

My classes are structures as follows:

interface I
{
    string ImageURL
}
class A : I
{
    string ImageUrl { get { ... } }
}
class B : I
{
    string ImageURL { get { ... } }
}

I'm binding to a datasource that is a collection of items of type I.  What appears to be happening is that when my datasource only contains records of either type A or only records of type B, the grid binds succesfully.  The problem seems to occur when I try to bind to a datasource that contains both types, and only occurs the first time it tries to bind to the second type.  Presumably this might also cause problems with abstract classes, or other derived properties.
Mathew
Top achievements
Rank 1
 answered on 21 Mar 2013
1 answer
76 views
Hi all,
 I have created a webusercontrol using rad combobox.It is working fine when I am using it in the same project. Once I have converted it into a custom control and used its dll in another project ,I can't access its items. If I use asp combobox, it is working fine in all scenario. Please provide me a solution to solve this issue.

Thank you
Abhilash
Abhilash
Top achievements
Rank 1
 answered on 21 Mar 2013
1 answer
110 views
In normal ASP textbox width in percentage from css is working and also we can only an input is rendering. But when we use Telerik Custom control we can see a span is renderin first then inside that span textbox is rendering. So that this span automatically setting 160px width so if we put width:50% the text box will take 50% of this Span ie 80px.

But in other case it will calculate the td width and set the 50% of that td width.
Galin
Telerik team
 answered on 21 Mar 2013
1 answer
180 views
I am using a RadComboBox for item selection on a page in my web application.  The box is loaded with possible selections based on the currently logged in user.  I was running into an issue where no matter what item I select in the RadComboBox, the SelectedValue is always -1 and the SelectedIndex is always 0 no matter which item I select, while the Text property is accurate.  I searched many posts and saw possibilities surrounding page postback but I am checking for a Not Postback before loading the box.  My RadComboBox is on the page as follows:

<telerik:RadComboBox ID="rcbRetailProducer" runat="server" Width="224px"
     EnableLoadOnDemand="false" HighlightTemplatedItems="true"
     MarkFirstMatch="true" ForeColor="black" BackColor="white" AllowCustomText="false"
     DropDownWidth="350px">
</telerik:RadComboBox>

In the Code behind in the PageLoad event I have"

If Not Page.IsPostBack Then
     .....
     PopulateFormFields()
     .....
End If

And within the PopulateFormFields code block I have:
       
Dim retailDS As New DataSet
MyBase.ErrHdlr(DBLists.GetRetailProducersDDL(retailDS))
Me.rcbRetailProducer.DataSource = retailDS.Tables(0)
Me.rcbRetailProducer.DataTextField = "Name"
Me.rcbRetailProducer.DataValueField = "Value"
Me.rcbRetailProducer.DataBind()
Me.rcbRetailProducer.Items.Insert(0, New RadComboBoxItem(" ", "-1"))

The RadComboBox gets filled with all possibilities, but no matter what I select when I place a break in my code and check the SelectedValue and SelectedIndex properties, SelectedValue is -1 and SelectedIndex is 0

There are a small handful of users in the system that have large amounts of data that can be loaded into this box, to the tune of around 2,000 - 2,500 records.  Aside from these very few users, the rest of the user base has maybe a few hundred.  I modified the procedure that loads the retailDS dataset shown above to return only 10 records, and when I did that everything works fine!! So, can the radcombobox not handle large lists?  If not, what is the max?  Right now if this RadComboBox returns 2500 records then SelectedValue and SelectedIndex never hold the proper value....but they work fine with the exact same code if I limit the dataset to less records.
Nencho
Telerik team
 answered on 21 Mar 2013
7 answers
362 views
I am including an expand/collapse all button in the header of my first PanelBar Item. How do I add back the default arrow button that shows up on the right for the default headers?

Thanks,
Dan
Kate
Telerik team
 answered on 21 Mar 2013
6 answers
195 views
Hi,

I've created a sample application very similar to the demo shown here:
http://demos.telerik.com/aspnet-ajax/tooltip/examples/radtooltipmanagerclientapi/defaultcs.aspx

The demo uses the RadTooltipManager Client API to make WebService calls to the server each time the tooltip is displayed.

Is there any way to cache data on the client-side, so that if the tooltip has been brought up a previous time, the cached data would be loaded rather than making the WebService call again - and wasting bandwidth.

Thanks for your help,
Greg
Samer
Top achievements
Rank 1
 answered on 21 Mar 2013
7 answers
153 views
Just this week I upgraded to the most recent version of the telerik controls.
On 1 of my pages I have a radtreelist and a radfilter. Part of the OnApplyExpressions method for the filter is to expand the tree. This was working just fine until I updated telerik (prior version was 2011.2.915.35).
After upgrading the tree initially displays fine after a filter until I go to expand a child node at which point the tree removes all items except the parent node. If I comment out the ExpandAllItems() I can manually expand/collapse nodes w/o issue.

What do I need to do to get it working again the way it was before?

Thanks.
Tsvetoslav
Telerik team
 answered on 21 Mar 2013
3 answers
118 views
Can anyone explain the difference between OnClientItemClicked and OnClientItemClicking events? Seems that OnClientItemClicking has more methods to work with, for example - set_cancel,  and is preferrable than OnClientItemClicked ? why won't I always use OnClientItemClicking ?




Princy
Top achievements
Rank 2
 answered on 21 Mar 2013
1 answer
166 views
Is there a demo on how I can make it so that I can any number of similar grids nested in each other like so:

=========================
==
+ RGrid 1 Row 1     ==
== + RGrid 1 Row 2     ==
==  
- RGrid 2 Row 1   ==
==    
+ RGrid 3 Row 1 ==  
==    
+ RGrid 4 Row 1 ==
==  
+ RGrid 2 Row 2   ==
== + RGrid 1 Row 3     ==
=========================

My guess would be to use a radgrid and dynamically generate its nestedviewtemplate with another grid then do the same x amount of times, but... not sure.   Or maybe it can be accomplished with a hierarchical grid?  Either way, I'd love an example.

Thanks for the help!
Shinu
Top achievements
Rank 2
 answered on 21 Mar 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?