Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
139 views
Hi,
I want to move my html code:
<telerik:RadMenu ID="RadMenu1" runat="server" DataNavigateUrlField="Url"   
            DataSourceID="XmlDataSourceForMenu" DataTextField="Text" DataValueField="Value">  
</telerik:RadMenu> 
      
<asp:XmlDataSource ID="XmlDataSourceForMenu" runat="server"   
        DataFile="~/MenuConfig.xml" XPath="/Items/Item"></asp:XmlDataSource> 
to c# code.
So I wrote in Page_Load:
XmlDataSource XmlDataSourceForMenu = new XmlDataSource();  
XmlDataSourceForMenu.ID = "XmlDataSourceForMenuID";  
XmlDataSourceForMenu.DataFile = "~/MenuConfig.xml";  
XmlDataSourceForMenu.XPath = "/Items/Item";  
 
 
RadMenu1.DataSourceID = XmlDataSourceForMenu.ID;  
RadMenu1.DataNavigateUrlField = "Url";  
RadMenu1.DataTextField = "Text";  
RadMenu1.DataValueField = "Value"
but I get an error
"The DataSourceID of 'RadMenu1' must be the ID of a control of type IDataSource.  A control with ID 'XmlDataSourceForMenuID' could not be found. ".
How can I fix this bug?

Princy
Top achievements
Rank 2
 answered on 17 Jun 2009
2 answers
123 views
I'm having trouble getting to the RadioButtonList control that is added dynamically when the page loads.
Here's a snippet of code that creates a RadPanelItem, add a RadioButtonList control to it, and then adds that to the RadPanelBar:

Dim

 

rdiobtnList As New RadioButtonList

 

rdiobtnList.ID =

"AssignmentRadioBtnList"

 

 

For Each Assignmentsdr As DataRow In AssignmentsDataSet.Tables(0).Rows

 

RowCount += 1

 

Dim li As New ListItem

 

li.Value = Assignmentsdr.Item(

"AssignmentListID")

 

li.Text = Assignmentsdr.Item(

"Assignment")

 

li.Selected =

False

 

rdiobtnList.Items.Add(li)

 

Next

 

 

Dim AssignmentPanelItem As New RadPanelItem

 

AssignmentPanelItem.Value =

"Assignments"

 

AssignmentPanelItem.Controls.Add(rdiobtnList)

AssignmentsRadPanelBar.Items.Add(AssignmentPanelItem)

 

Here is how I have the ASPX page setup:

 

 

<telerik:RadPanelBar ID="AssignmentsRadPanelBar" Runat="server" Skin="Web20" Width="150px">

 

 

 

    <CollapseAnimation Duration="100" Type="Linear" />

 

 

 

    <ExpandAnimation Duration="100" Type="Linear" />

 

 

 

</telerik:RadPanelBar>

I've looked through the FAQ's and the Tutorials, but none of the tutorials touch on adding RADPanelItems dynamically.

Any help would be very much appreciated.

 

 

 

Christopher
Top achievements
Rank 1
 answered on 17 Jun 2009
1 answer
110 views
This does that when content is 'bigger' than the container, it just hides it instead of showing scrollbars. Happened after the last hotfix.

Any suggestions on how to solve?
Obi-Wan Kenobi
Top achievements
Rank 1
 answered on 17 Jun 2009
1 answer
84 views
I did a search on focus and found two articles, but they don't seem to apply 100%

http://www.telerik.com/community/forums/aspnet-ajax/calendar/raddatepicker-validation.aspx
and 
http://www.telerik.com/community/forums/aspnet-ajax/calendar/set-focus-after-date-selected.aspx

Both of these, it's a single DatePicker choosing a date and getting focus back.

I have about 30 dates on the page all using a hidden SharedCalendar at the top. When a user selects the date, they are sent to the top of the page.

Is there a way on the SharedCalender to send the focus back to the DatePicker that called it? Or do I need to set something on every DatePicker?

Was thinking something like..

 <telerik:RadCalendar ID="calShared" runat="server" EnableMultiSelect="false" ClientEvents-OnDateSelected="ResetFocus" />


 function ResetFocus(sender, args) {

                //sender.focus();

            } 

but that didn't work.

Veli
Telerik team
 answered on 17 Jun 2009
1 answer
87 views
hello to all expert
                    
                           good morning, i would like to ask help here coz i dont know how am i going to to put  some web control on the tabstrip, coz i tried to drag and drop the textbox inside the tab it wont allow, how can i design my tabstrip? how am i going to put my textbox, combobox, label and other control inside the radtabstrip?

sample codes is highly appreciated

thanks to all
Paul
Telerik team
 answered on 17 Jun 2009
0 answers
370 views
RadBinaryImage gives you an easy way of showing an image stored as binary data in a database. The control can be used in any data bound control (Repeater, DataList, GridView, etc.) to display images which originate from binary image field in the data source. RadBinaryImage uses an internal http handler which streams the image from the binary source to the page in which it has to be visualized. The most important properties of the RadBinaryImage control are presented in the list below:

  • DataValue - property which specifies the source field from which the data will be passed as a byte array
  • Height - specifies the height of the binary image
  • Width - specifies the width of the binary image
  • AlternateText - the text that will replace the image when it is not available/cannot be streamed
  • ToolTip - the text that will be displayed in a browser tooltip when you hover the image
  • AutoAdjustImageControlSize - scales the image based on explicitly set width/height dimensions to avoid stretch or blur effect when its original dimensions do not fit. The default value is true.
  • HttpHandlerUrl - can be used to specify the location of a custom http handler which extends the default RadBinaryImage http handler. When not set, RadBinaryImage has its own handler which is invoked through the common Telerik.WebResource.axd handler.
  • ImageUrl - applicable when no DataValue is specified to gracefully degrade to regular asp Image mode.
  • ImageAlign - specifies the image alignment inside its container.

To get familiar with the control please follow these online resources:

Telerik Admin
Top achievements
Rank 1
Iron
 asked on 17 Jun 2009
1 answer
77 views
Hi All,

We are trying to insert record to Grid using client side grid. Here is my requirement. Client keeps on adding records to grid. I should not connect to data base while adding records to grid. Once he completed he will click another button. Then only I need connect and Inset all records to data base. Please tell us how we can add records to grid client side without server events.




Rajesh
Tsvetoslav
Telerik team
 answered on 17 Jun 2009
1 answer
173 views
Hello,

I have a hierarchical grid that is configured to insert items in the second tier.
The parent grid (upper most tier) identifies the count of items in the second tier (as a grid cell).
How do I update the count in the parent grid after inserting an item in the child grid?
The child grid rebinds after the insert, but not the parent.
Thanks.
Tsvetoslav
Telerik team
 answered on 17 Jun 2009
1 answer
337 views
 I am getting this error, and it is directly related to the RadWindowManager, because when I remove it then I don't get the JS error. Please tell me why I am getting this.

Sys.ArgumentUndefinedException: Value cannot be undefined.
Parameter name: type
Fiko
Telerik team
 answered on 17 Jun 2009
5 answers
456 views
Hello ,

i read a lot of Posts in the Forum but can't find a answer for the Problem.

I want to set a default empty ListItem into the RadCombo, which is loaded on demand.

The Empty Item should  have a string.Empty as Text and the DataKey Type MinValue of the binded datasource as value.

For example

Text = string.Empty
Value = Guid.Empty().ToString()

or

Text = string.Empty
Value = int.MinValue.ToString()


Before I updated to the current Version (q1 2009) I used the Q3 2008 Version and all works as it should. Now I have the Problem that the Item is shown in the Combobox, but it is not selectable with a Mouse Click ?! I can Select It with Key Up/Down only, but that ist a help.

Just If I set the Text Like  "------" or any other Text....
This is not what I want because a Empty Item should be really empty...

I read the workarround in this Forum but I want to set the empty with no Text = string.Empty.

Is It possible to undo the changes on this in the next version?

Kind Regards

Fabian


Simon
Telerik team
 answered on 17 Jun 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?