Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
213 views

Using any data source, I can create the necessary hierarchy for a menu system using the RadNavigation.  However, I have no examples or knowledge on how to activate associated URLs for each of the nodes. 
If JavaScript is required, please show by example.

Required Info

  • Visual Studio 2013
  • Windows 10 Pro
  • Google Chrome Version 45.0.2454.101 m 
  • Telerik Product: UI for ASP.NET AJAX, v.2015.3.930.45 (Dev)
  • VB.NET

My HTML

<telerik:RadNavigation runat="server" ID="RadMenu3" Skin="BlackMetroTouch"
    DataSourceID="XmlDataSource1"
    DataTextField="Text"
    DataNavigateUrlField="Url">
</telerik:RadNavigation>
 
 
<asp:XmlDataSource ID="XmlDataSource1" runat="server"    
    DataFile="~/App_Data/SiteNavigation.xml" XPath="/SiteNavigation/Item">
</asp:XmlDataSource>

 

XML SiteNavigation (abbreviated)

<?xml version="1.0" encoding="utf-8" ?>
<SiteNavigation>
  <Item Url="#" Text="Surveying the Past" >
    <Item Url="#" Text="Timeline" />
    <Item Url="#" Text="Blog" />
    <Item Url="#" Text="Discussion" />
  </Item>
  <Item Url="#" Text="Experiencing the Present" >
    <Item Url="#" Text="Timeline" />
    <Item Url="#" Text="Blog" />
    <Item Url="#" Text="Discussion" />
  </Item>
 
</SiteNavigation>

 

ERROR: Page Won't Load

System.Web.UI.WebControls.XmlHierarchyData' does not contain a property with the name 'Url'

 

 

 

Ivan Danchev
Telerik team
 answered on 07 Oct 2015
6 answers
134 views
how I assign a RadButtonToggleState checked or unchecked with javascript
Eric
Top achievements
Rank 1
 answered on 07 Oct 2015
4 answers
142 views
Hello,

I want to use your RadEditor on our corporate page but I have an issue : due to the compatibility issue I need that the tool bar button Bold instead of putting the <strong> tag around my text uses the <b> tag. Its the same for the Italic : I need the <i> tag instead of <em>.

Can those buttons be override to do that ? Or maybe I need to create my own buttons ? Can you give me a code example for this.

Thanks.
Frankie
Top achievements
Rank 1
 answered on 07 Oct 2015
46 answers
1.4K+ views
Hi All,

I use RadScheduler in my application...created resource collection and populated with some data.....but in the drop down by default the first list item is dispalyed as '-' which I dont want. Because if we insert appointment by selecting '-' in the resource type, null value is inserted into the database in that particular cell. So, please let me know how to delete that '-' from the list items.

Thanks
Manikandan
Top achievements
Rank 1
 answered on 07 Oct 2015
0 answers
121 views
Hello,
I am having a rad scheduler (appointment) in that i am having one telerik dropdown in that i am having two values .
if i select any one value from present  telerik dropdown i need a new telerik dropdown in next line with out page loading (Means in one word Cascading present telerik drop down i need new telerik drop down) .
 i need this same concept at <telerik:radscheduler> when i click on list of appointments a pop up will be open.
In pop up i am using <telerik:radscheduler>
For more information i am enclosing  code and screen shot in that i need your concept with out page load.

<telerik:radscheduler id="MyRadSchedulerRD" runat="server" datakeyfield="ID" datastartfield="Start"
                                            advancedform-enablecustomattributeediting="true" datasubjectfield="Subject" daystarttime="08:00:00"
                                            dayendtime="21:00:00" timezoneoffset="00:00:00" datadescriptionfield="Description"
                                            dataendfield="End" width="800px" skin="Default" onappointmentcommand="RadScheduler1_AppointmentCommand"
                                            onformcreated="RadScheduler1_FormCreated" onappointmentupdate="RadScheduler_AppointmentUpdate"
                                            overflowbehavior="Expand" onclientappointmentediting="OnClientAppointmentEditing"
                                            startinsertinginadvancedform="true" datarecurrencefield="" onclienttimeslotclick="insertAppointment"
                                            onclientappointmentclick="editAppointment">
                                            <%--<AdvancedForm EnableResourceEditing="false" />--%>
                                             <AdvancedForm Modal="true"></AdvancedForm>                                             
                                             <WeekView HeaderDateFormat="dd/MM/yyyy"></WeekView>
                                            <AppointmentTemplate>
                                                <span><b>
                                                    <%# Eval("Subject") %>:&nbsp;</b></span><span style="font-style: italic;">
                                                        <%# Eval("Description") %></span>
                                                         <span style="font-style: italic;"></span>                                                                                                            
                                     
                                            </AppointmentTemplate>

                                          <%--   <ResourceTypes>
                                                                 <telerik:radcombobox id="ddAssigns" runat="server" width="200" height="200" emptymessage="Select User"
                                            datasourceid="ObjectDataSourceAssignedTo" datatextfield="OName" datavaluefield="AssignTo">
               </telerik:radcombobox>
                                             </ResourceTypes>--%>
                                             <ResourceTypes>
                                                <telerik:ResourceType KeyField="ViewATFlag" Name="Type*" TextField="ViewATFlagText" ForeignKeyField="ViewATFlag"
                                                    DataSourceID="ObjectDataSourceTypes" />
                                            </ResourceTypes>
                                              <ResourceTypes>
                                                <telerik:ResourceType KeyField="AssignTo" Name="Assigned To*" TextField="OName" ForeignKeyField="AssignTo"
                                                    DataSourceID="ObjectDataSourceAssignedTo" />
                                            </ResourceTypes>
                                            <ResourceTypes>
                                                <telerik:ResourceType KeyField="Apptype" Name="Property Type*" TextField="ResType" ForeignKeyField="Apptype"
                                                    DataSourceID="Propertytype" />
                                            </ResourceTypes>
                                            <ResourceTypes>
                                               <telerik:ResourceType KeyField="PropTo" Name="Sale*" TextField="OProp" ForeignKeyField="PropTo"
                                                    DataSourceID="ObjectDataSourcePropTo" />
                                            </ResourceTypes>
                                            <ResourceTypes>
                                               <telerik:ResourceType KeyField="PropTolet" Name="Letting*" TextField="OProplet" ForeignKeyField="PropTolet"
                                                    DataSourceID="ObjectDataSourcePropTolet" />
                                            </ResourceTypes>                                                              
                                                              
                                            <ResourceTypes>
                                                <telerik:ResourceType KeyField="ViewValFlag" Name="Flag" TextField="ResText" ForeignKeyField="ViewValFlag"
                                                    DataSourceID="ObjectDataSourceResource" />
                                            </ResourceTypes>          
                                            <ResourceTypes>
                                                <telerik:ResourceType KeyField="AppStatus" Name="Status*" TextField="ResText" ForeignKeyField="AppStatus"
                                                    DataSourceID="AppointmentTypesDataSource" />
                                            </ResourceTypes>
                                            <ResourceStyles>
                                                <telerik:ResourceStyleMapping Key="1" Text="Viewing" ApplyCssClass="rsCategoryBlue" />
                                                <telerik:ResourceStyleMapping Key="2" Text="Valuation" ApplyCssClass="rsCategoryRed" />
                                                <telerik:ResourceStyleMapping Key="3" Text="Follow Up" ApplyCssClass="rsCategoryGreen" />
                                            </ResourceStyles>                                                                                 
                                        </telerik:radscheduler>

 

and also once look over screen shot
Manne
Top achievements
Rank 1
 asked on 07 Oct 2015
7 answers
322 views
Hi,

when I'm using ClientSettings.ClientEvents.OnCommand, the exporting doesn't work anymore. My grid displays all 4 export buttons (pdf, excel, word, csv) which work fine when I don't use the OnCommand function.

Even if the function body is empty, the exporting doesn't work. But as soon as I remove the ClientSettings.ClientEvents.
OnCommand handler, everything works fine again. How can I use OnCommand and keep the exporting working?

Thanks!
Eyup
Telerik team
 answered on 07 Oct 2015
1 answer
108 views

I have a requirement to have a Grid of 20+ Configuration items with a check box to show if each item is enabled in our app. A user has to click a global "edit" button held in the masterpage to enable the grid for editing and then click a global "save" icon, also in the master page which would then write the data back to the database.  I've spent the last 8 hours searching for something similar only to be confounded with template column issues where i cant disable them on page load and gridcheckcolumns that i cant enable on clicking the "edit" button.

 

Please can somebody point be in the right direction

Thanks

Viktor Tachev
Telerik team
 answered on 07 Oct 2015
1 answer
318 views

I am binding data to a RadGrid via the radclientdatasource, itself via a web api giving a JSON response, the grid binds fine and I get all the columns I need.  The issue is with the date columns appearing as 2012-03-01T00:00:00 despite having the following configured

<telerik:GridDateTimeColumn FilterControlWidth="95px" DataField="PlannedDate"  UniqueName="PlannedDate" HeaderText="Planned Date" PickerType="DatePicker" EnableRangeFiltering="true" DataFormatString="{0:yyyy-MM-dd}" DataType="System.DateTime" FilterDateFormat="{0:yyyy-MM-dd}" MinDate="2012-01-01" SortedBackColor="#CCCCCC" HtmlEncode="false" EditDataFormatString="{0:yyyy-MM-dd}">                                               
</telerik:GridDateTimeColumn>​

Have also tried GridBoundColumn.  My JSON is coming through as "PlannedDate":"2012-03-01T00:00:00"

In addition to the display issue the column is not respecting less than / greater than date filters which makes me suspect it it just being treated as text.  Any thoughts please ?

Konstantin Dikov
Telerik team
 answered on 07 Oct 2015
8 answers
1.2K+ views
I have a radgrid using inplace editting inside of an ajaxpanel.

I need to have a requiredfieldvalidator to prevent a field entry in the radgrid.

Can this be done?  I've removed the ajaxpanel and had the same issue.
Mohd
Top achievements
Rank 1
 answered on 07 Oct 2015
1 answer
818 views

Hello,

 I need to add programmatically Custom Attributes in RadComboBox

 i get an error on click button to get a value for custom Attributes

 this.LBL_MOVIE.Text = this.PCB_MOVIE.SelectedItem.Attributes["movie_p"]; 

Cause this.PCB_MOVIE.SelectedIndex is equals to -1

protected void PCB_MOVIE_ItemDataBound(object sender, RadComboBoxItemEventArgs e)
       {
           e.Item.Attributes.Add("movie_p","rocky");
       }

Ivan Danchev
Telerik team
 answered on 07 Oct 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?