Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
192 views
Here's the example I am following:

foreach
(UploadedFile file in RadUpload1.UploadedFiles)
  {
      
byte[] bytes = new byte[file.InputStream.Length];
      file.InputStream.Read(bytes, 0, file.InputStream.Length);
  }

However, I am getting an error: Argument '3': cannot convert from 'long' to 'int'
Donna
Top achievements
Rank 1
 answered on 15 Sep 2008
6 answers
234 views
Hi,

I'm trying to use asp:radiobuttons in a radgridview, but I'm experiencing some problems. On each row two radiobuttons for male/female. When not in Editmode they have to be disabled, when in editmode they have to be enabled.
I use the code-behind function OnItemDataBound to "translate" to databasevalue M or F to check the right radiobutton. So far so good.
in my .aspx file:

<telerik

:GridTemplateColumn HeaderText="Male" UniqueName="Gender"> <ItemTemplate>
 <asp:RadioButton ID="RadioButtonMaleItem" runat="server" GroupName="" Enabled="false"/>
</ItemTemplate>
<EditItemTemplate>
<asp:RadioButton ID="RadioButtonMaleEditItem" runat="server" GroupName="MF" />
</
EditItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Female" UniqueName="Female">
<
ItemTemplate>
<asp:RadioButton ID="RadioButtonFemaleItem" runat="server" GroupName="MF" Enabled="false" />
</ItemTemplate>
<EditItemTemplate>
<asp:RadioButton ID="RadioButtonFemaleItem" runat="server" GroupName="MF" />
</EditItemTemplate>
</telerik:GridTemplateColumn>

When I switch to EditMode the radiobuttons on the editrow are both unchecked how come? And how can I read the new checked value and update the database (similar to OnItemDataBound, but then the other way around)

regards martin

martin
Top achievements
Rank 1
 answered on 15 Sep 2008
0 answers
44 views
sorry, duplicate.  this can be deleted.
Amanda
Top achievements
Rank 2
 asked on 15 Sep 2008
2 answers
133 views
Got some code that saves some text to the server by getting the Content property.

Works fine in IE and FF, but with Google Chrome, the resulting text ends up as:

First line of message$0Second line of message$0$0Third line of message$0 

Infact it's not even the saving of the code that's the issue. Just put in some newlines, go to 'Preview' or 'HTML Edit' mode on the Edit Control and you'll see the $0 escape codes.

Not sure if this is a bug with Chrome or a bug with Editor ?
Rob Orchiston
Top achievements
Rank 1
 answered on 15 Sep 2008
1 answer
171 views
I am having trouble getting the text to show up next to the checkbox in the following code:
<telerik:RadComboBox ID="FieldsToInclude" runat="server" AllowCustomText="false" EmptyMessage="* (all)" HighlightTemplatedItems="true">  
    <Items> 
    </Items> 
    <ItemTemplate>   
        <asp:CheckBox runat="server" ID="CheckBox" Text=""/>&nbsp;  
        <%# DataBinder.Eval(Container, "Text") %>   
    </ItemTemplate>   
</telerik:RadComboBox> 
 

I am populating this drop-down on a postback from another drop-down as below:
    protected void TableList1_SelectedIndexChanged(object sender, EventArgs e)  
    {  
        FieldsToInclude.Items.Clear();  
        FieldsToInclude.Items.Add(new RadComboBoxItem("test1", "1"));  
        FieldsToInclude.Items.Add(new RadComboBoxItem("test2", "2"));  
        FieldsToInclude.Items.Add(new RadComboBoxItem("test3", "3"));  
        FieldsToInclude.Items.Add(new RadComboBoxItem("test4", "4"));  
        FieldsToInclude.Items.Add(new RadComboBoxItem("test5", "5"));  
    }  
 
 

The checkboxes do show up, but the text from the <%# DataBinder.Eval(Container, "text") %> does not show up.  How can I get text populated next to the checkboxes?

Cheers
Rob
Rob
Top achievements
Rank 1
 answered on 15 Sep 2008
5 answers
168 views
Hi,

I use a radwindows, whe i use firefox 3 the radwinodws when i click a button run, but in internet explorer 6 and 6 the radwindows don't run, why?

Windows XP Professional SP2
Rubihno
Top achievements
Rank 1
 answered on 15 Sep 2008
3 answers
129 views
Hi,

I know I am doing something wrong here but I am not able figure it out. I have a radgrid inside a usercontrol, this usercontrol is placed into a RadMultiPage control connected to a RadTabStrip. Rad ajaxmanager is used to ajaxify the tab strip and mutliview control since RenderSelectedPageOnly="true" is for the RadMultiPage. I have to add unknow number of GridTemplateColumn columns to the grid and the datasource is set to an object data source that returns a datatable.

When the page loads, the grid appears perfectly, but when I go accross tabs or click any button inside the same tab, all the column headers in the grid disappear and the images or checkboxes in the template columns also disappear. The data in bound data column is still visible.

All the controls, column headers appear again if I call DataBind() method. but they disapprear as soon as an ajax postback call occurs.


Can anyone please help me with this?
chirag
Top achievements
Rank 1
 answered on 15 Sep 2008
2 answers
164 views
I have just downloaded Telerik for ASP.NET AJAX. I am new to Telerik and Ajax. I have a very simple Splitter:

<

telerik:RadSplitter ID="radsMain" Runat="server" Orientation="horizontal" Width="100%" Height="100%">
<telerik:RadPane runat="server" id="LeftPane" Height="80" Scrolling="None">Header pane</telerik:RadPane>
</telerik:RadPane>
</telerik:RadSplitter>

This Pane show a thin black header border. When I include the BorderStyle="none" property nothing happens. The border is still there.

As you can see really very simple. Is there any special trick ???

Thanks in advance

mvbaffa
Top achievements
Rank 1
 answered on 15 Sep 2008
1 answer
106 views
Hello,

I have a treeview control contained inside a pane in a nested splitter. When the treeview is populated, it's height exceeds the height of it's containing pane.
As a result, the pane adds vertical scroll bars, even though I specify all panes Scrolling to None. When I use the arrow keys to move up and down the tree, the selected nodes scroll out of view.

How can I make the treeview fill the entire viewport of the pane, and allow only the scroll bars from the tree view?  I would like the treeview to resize as I resize the pane.

Thank you,
Alex
Alex
Top achievements
Rank 1
 answered on 15 Sep 2008
2 answers
218 views
Hello again gurus,

Is it possible to bind (using a datasource) to a custom attribute in the radTreeView?

If so how would I do that?

If not, here's what I'm trying to accomplish, perhaps you can offer advise...

My hierarchical list of data provided by the datasource contains not only the ID of the record, the ID of the parent record and the name of the record, it also provides the name of the parent.

What I'm trying to do is create a drop-down list out of the radTreeView control. I have a textbox control set up with the Ajax Control Toolkit's "DropDownExtender" control. 

When the user selects a node in the RadTreeView, I wish to display the path to that node in the textbox using client-side JavaScript.
 
My problem is, I don't know how to access the ParentName of the datasource associated with the node selected. I figured it would be easiest to create a custom attribute out of it and access it that way (and recurse a loop up to the null parent, to provide a path for the user interface)

Thanks in advance.
Charles Forsyth
Top achievements
Rank 2
 answered on 15 Sep 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?