Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
118 views
How do I get this value back after binding

RadTreeView1.DataFieldID =

"ID"

 

 

 

 

 

Shinu
Top achievements
Rank 2
 answered on 09 Nov 2010
3 answers
144 views

I have a hierarchical radgrid with 2 detail tables in it. I want to use fileupload control in one of the detail table. For this I placed a fileUpload control in one detail table as follows

 

<telerik:GridTemplateColumn DataField="sURL" HeaderButtonType="TextButton"

HeaderText="sURL" SortExpression="sURL" UniqueName="sURL">

<EditItemTemplate>

  <asp:FileUpload ID="sURLTextBox" runat="server"/>

</EditItemTemplate>

<ItemTemplate>

  <asp:Label ID="sURLLabel" runat="server" Text='<%# Eval("sURL") %>'></asp:Label>

</ItemTemplate>

</telerik:GridTemplateColumn>

 

 

Now on clicking the Update command in edit view of the grid, I want to save the filename selected using the fileupload browser.

Appreciate all your help.

Thanks

Princy
Top achievements
Rank 2
 answered on 09 Nov 2010
0 answers
62 views
Ups it was my bad. I had added EnableAutomaticLoadOnDemand instead EnableLoadOnDemand. Now is fine.

Thanks and sorry for the trouble.
El
Top achievements
Rank 1
 asked on 09 Nov 2010
2 answers
115 views
Hi All,

If anyone can shed some light on the following issue I am having.
I have several Rad Dock controls on a page and when I try to move (drag) one container but not actually move it altogether, the title bar greys out and then when I try to rapidly expand and collapse another container; eventually that container renders an empty container when in fact it had some data in it before expanding/collapsing it.

#CaughtUp#
Top achievements
Rank 1
 answered on 09 Nov 2010
2 answers
155 views
Hello All,

I have application where we are using RADGRid for dashboard. The requirement is when user filter some values on grid and navigate to another section and user comes back to the page, the radgrid should show the same filtered result and filtered values in the related filterboxes.

so right now i m using session variable to store filter expression, if i have two filter values like first name & last name and if i change the first name and filter again it looses values of last name from filter expression;
 even if value is in the filter box of RADGrid, its not assigning back to filter expression property.

Let me know how to resolve this one.

  More:
I m using client side binding for the grid.
Neo
Top achievements
Rank 1
 answered on 08 Nov 2010
2 answers
144 views
I am trying to get the Data Row of the node during the NodeDataBound event.  I found the following documentation that I assume gets me this data. However, when I try to implement this and get "The type or namespace name 'DataRowView' could not be found (are you missing a using directive or an assembly reference?)"    I have the Telerik.Web.UI namespace imported.

protected void radTreeViewTopicsGridFilter_NodeDataBound(object sender, RadTreeNodeEventArgs e)
        {
            DataRowView dataSourceRow = (DataRowView)e.Node.DataItem;
        }


http://www.telerik.com/help/aspnet-ajax/troubleshooting-dataitem-property-is-empty.html
HL
Top achievements
Rank 1
 answered on 08 Nov 2010
2 answers
156 views
Hi. I'm formatting a chart from the code behind. I've added some extra legend markers to my chart. The ones I've created have a nice grey border around the rectanglular boxes but the ones that are auto generated have no border. I can't seem to set the border no matter what I do. I've tried setting with the following:

RadChart1.Legend.Marker.Appearance.Border.PenStyle = System.Drawing.Drawing2D.DashStyle.Solid;
RadChart1.Legend.Marker.Appearance.Border.Width = 1;
RadChart1.Legend.Marker.Appearance.Border.Color = Color.Silver;

I haven't set any border properties for the ones I've created. I'm creating these as follows. I've also attached a screen. Thanks.

LabelItem item1 = new LabelItem();
item1.Marker.Appearance.FillStyle.MainColor = HexToColor("#2FBA2F");
item1.Marker.Appearance.FillStyle.FillType = FillType.Solid;
item1.Marker.Appearance.Figure = "Rectangle";
item1.TextBlock.Text = "Good";
Daniel
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 08 Nov 2010
0 answers
80 views
I created my css from the skin, there is a problem only when
occurs in a post back Scheduler appears thousands of Telerik_stylesheet. With that my layout is broken it is replaced by Telerik_stylesheet that is in the middle of code!

How can I fix this?
This only happens when the Scheduler and has a postback.
Rudá Cunha
Top achievements
Rank 2
 asked on 08 Nov 2010
1 answer
165 views
When creating  a table using the editor control, is there a way to switch a cell between td and th from the editor (without going into the raw HTML and changing it there)? If not, would there be an easy work-around to add this functionality?
Rumen
Telerik team
 answered on 08 Nov 2010
2 answers
284 views
I am attempting to get the ItemTemplate functionality to work.

I am using this code:
<telerik:RadComboBox ID="WeekEndingCB" Font-Size="Large" runat="server" OnSelectedIndexChanged="WeekEndingCB_SelectedIndexChanged"
    OnTextChanged="WeekEndingCB_TextChanged" AutoPostBack="True" Style="width: 7.2em;">
    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
    <ItemTemplate>
        Text: "<%# Eval("Text") %>"
    </ItemTemplate>
    <Items>
        <telerik:RadComboBoxItem Value="10/3/2010" Text="10/3/2010" />
        <telerik:RadComboBoxItem Value="10/10/2010" Text="10/10/2010" />
    </Items>
</telerik:RadComboBox>

I also tried DataBinder.Eval(Container.DataItem, "Text") and DataBinder.Eval(Container, "Text") as was instructed in a documentation article.

Either way, the Text of the items are not displayed in the drop down section when I click on the control.

The contents of the drop-down section are displayed as follows:
Text: ""
Text: ""

The expected contents would be:
Text: "10/3/2010"
Text: "10/10/2010"

The text of the selected item IS displayed as the selected item when an item is selected.

The control behaves as expected if I remove the ItemTemplate section.

How can I get the templates to work as expected?
Andy
Top achievements
Rank 1
 answered on 08 Nov 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?