Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
211 views
Dear Telerik,

I have this menu in xml file
i need to implement it as XMLDatasource
How i can do this ?
Note : i try several method without solution
it give me this error
DataBinding: 'System.Web.UI.WebControls.XmlHierarchyData' does not contain a property with the name 'NavigateUrl'.

<?

 

xml version="1.0" encoding="utf-16"?>

 

<

 

Menu Skin="Red" EnableEmbeddedSkins="False" Style="left: 0px">

 

<

 

Group>

 

<

 

Item Text="Incoming">

 

<

 

Group>

 

<

 

Item Text="Incoming" NavigateUrl="Incoming/Income.aspx" />

 

</

 

Group>

 

</

 

Item>

 

<

 

Item Text="Outgoing">

 

<

 

Group>

 

<

 

Item Text="Outgoing" NavigateUrl="Outgoing/Outgoing.aspx" />

 

</

 

Group>

 

</

 

Item>

 

<

 

Item Text="Setup">

 

<

 

Group>

 

<

 

Item Text="Departments" NavigateUrl="Setup/Departments.aspx" />

 

<

 

Item Text="Managments" NavigateUrl="Setup/Managements.aspx" />

 

<

 

Item Text="Sections" NavigateUrl="Setup/Sections.aspx" />

 

<

 

Item Text="Subjects" NavigateUrl="Setup/Subjects.aspx" />

 

<

 

Item Text="Main Groups" NavigateUrl="Setup/MainGroups.aspx" />

 

<

 

Item Text="Branch Groups" NavigateUrl="Setup/BranchGroupsMain.aspx" />

 

<

 

Item Text="Incoming and Outgoing Method" NavigateUrl="Setup/InOutMethod.aspx" />

 

</

 

Group>

 

</

 

Item>

 

<

 

Item Text="Reports">

 

<

 

Group>

 

<

 

Item Text="Report Incoming And Outgoing" NavigateUrl="http://galaxyserver/ReportServer/Pages/Report.aspx?/ArchiveReportProject/ImportsReports_En&amp;rs:Command=Render" />

 

<

 

Item Text="Report Incoming and Outgoing Canceled" NavigateUrl="http://galaxyserver/ReportServer/Pages/Report.aspx?/ArchiveReportProject/ReportInOutCanceled_En&amp;rs:Command" />

 

<

 

Item Text="Report Outgoing With Incoming" NavigateUrl="http://galaxyserver/ReportServer/Pages/Report.aspx?/ArchiveReportProject/ReportOutWithIn_En&amp;rs:Command=Render" />

 

<

 

Item Text="Report Incoming With Outgoing" NavigateUrl="http://galaxyserver/ReportServer/Pages/Report.aspx?/ArchiveReportProject/ReportInWithOut_En&amp;rs:Command=Render" />

 

<

 

Item Text="Report Incoming Without Outgoing" NavigateUrl="http://galaxyserver/ReportServer/Pages/Report.aspx?/ArchiveReportProject/ReportInWithoutOut_En&amp;rs:Command=Render" />

 

<

 

Item Text="Report Outgoing Without Incoming" NavigateUrl="http://galaxyserver/ReportServer/Pages/Report.aspx?/ArchiveReportProject/ReportOutWithoutIn_En&amp;rs:Command=Render" />

 

<

 

Item Text="Report Internal Outgoing" NavigateUrl="http://galaxyserver/ReportServer/Pages/Report.aspx?/ArchiveReportProject/ReportInternalOut_En&amp;rs:Command=Render" />

 

</

 

Group>

 

</

 

Item>

 

</

 

Group>

 

</

 

Menu>


Best Regards,
Ahmad

 

nick b-w
Top achievements
Rank 1
 answered on 05 Jan 2010
2 answers
105 views
Hi all,

  I am developing a site that uses XmlHttpPanel to display the product information.  The XmlHttpPanel is load using the Telerik rotator a product menu in the left hand side navigation.  This works great.

  Yesterday I develop a third tool to display all the images for the product in a jquery jCarouselLite carousel.  On page load the page displays perfect with a working carousel.  If I select another product the XmlHttpPanel refreshes with the new product content info, however the carousel does not.

  What is the best way to reload the function for jquery carousel? Maybe in the Service call in the code behind for the XmlHttpPanel?

David
David
Top achievements
Rank 1
 answered on 05 Jan 2010
1 answer
121 views

I have a radgrid with editmode = inplace.  I just need to hide a radcombobox within an 

 

EditItemTemplate

 

during editmode, but not insert.
I tried doing a findcontrol("RadComboBox") during the ItemCommand event for 

 

RadGrid

 

.EditCommandName, but it just came back as null.

Any ideas?

Daniel
Telerik team
 answered on 04 Jan 2010
6 answers
306 views

Hello,

I am trying to figure out how to disable the ability to click a root item in the RadMenu control or at least stop the selected style from applying to it.  The radmenu is populated via a sitemap file and the root nodes do not have a URL defined for them.  I have tried to set all root items with the postback of false via the code below:

    Protected Sub rmMainMenu_DataBound(ByVal sender As Object, ByVal e As System.EventArgs) _  
        Handles rmMainMenu.DataBound  
 
        For Each rootItem As RadMenuItem In sender.Items  
            rootItem.PostBack = False 
        Next 
 
    End Sub 
 

However, this doesn't do anything and I can still click the node and when I do, the clicked style will still apply.  The only time I want the clicked selected style to apply to the root node is if a child node has been selected.  Any assistance would be greatly appreciated.

Thanks,
Ron
Ron
Top achievements
Rank 2
 answered on 04 Jan 2010
3 answers
393 views
Hi how can I create gridtemplatecolumn in code behind. currently I'm creating my grid purely on codebehind. There where no problem using bound column and dropdown column but I need to create a template column which at the moment I dont know how to instantiate like asp checkbox or a label. Any information would be much appreciated.

Thank in advance,
RJ
RJ
Top achievements
Rank 1
 answered on 04 Jan 2010
3 answers
219 views
The following works fine:

<telerik:raddock id="RadDock1" runat="server"     
                            onclientdockpositionchanged="OnClientDockPositionChanged" title="RadDock1" text="RadDock1">    
</telerik:raddock>    
  
function OnClientDockPositionChanged(dock) {  
  
    var selectedFields = $find('<%= RadDockZoneSelectedFields.ClientID %>');  
    var totalFields = selectedFields.get_docks().length;  
    var fieldArray = selectedFields.get_docks();  
      
    for (var i =0; i < totalFields; i++) }  
        alert(fieldArray[i].get_uniqueName());  
    }  
}  

But, if I create a raddock dynamically (see code below) and try to attach a client-side event to it, I get the following javascript error: "OnClientDockPositionChanged is not defined." Why?

        Dim dock As New RadDock() 
 
        dock.DockMode = DockMode.Docked 
        dock.OnClientDockPositionChanged = "OnClientDockPositionChanged" 
        dock.CommandsAutoPostBack = False 
        dock.EnableViewState = False 
        dock.DefaultCommands = Telerik.Web.UI.Dock.DefaultCommands.None 
        dock.AutoPostBack = False 
        dock.UniqueName = Uniquename" 
        dock.ID = "dockid" 
        dock.Title = "dock title" 
        dock.Width = Unit.Pixel(300) 
 

Ivan Queiroz
Top achievements
Rank 1
 answered on 04 Jan 2010
1 answer
125 views

Can I binding my obeject's property to CheckedItems?
The property can be List<int> (my DataValueField in int) or List<RadListBoxItem> or other.
I need on load the ListBox checked what there are in my property and on save I need in my property there are checked items.

is it possibile?

(I'm sorry fot my bad english)

Genady Sergeev
Telerik team
 answered on 04 Jan 2010
6 answers
204 views
Hi,

I'd like to accomplish the following:
1. Consume temperature data from a reliable source (using web service or whatever method is better?)
2. Display the data in RadChart
I'm new at this so I don't know what's the best way to do this. Any website/tutorial/samples from you would be greatly appreciated.

Thanks,
Han
Schlurk
Top achievements
Rank 2
 answered on 04 Jan 2010
2 answers
87 views
I'm using a hierarchical grid with a template. My implementation looks quite similar to the demo (http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/nestedviewtemplate/defaultcs.aspx). In my case, however, I want the nested grid (ID=OrdersGrid in the demo) to create records.

I'm having a terrible time getting access to the 'EmployeeID' value during the insert operation, which I need to manually initialize the column value. Using the demo as an example, how would I access the EmployeeID value in my initialization code in OrdersGrid_ItemCommand()?

TIA 
Dave Hayward
Top achievements
Rank 1
 answered on 04 Jan 2010
3 answers
272 views
I have a GridCalculatedColumn with a datetime expression (returns a timespan), the option DataFormatString don't work!

Why?

                                <telerik:GridCalculatedColumn DataFields="DataOraFineSessione,DataOraInizioSessione" Expression="{0}-{1}"
                                    HeaderText="Durata" UniqueName="Durata" DataType="System.TimeSpan"
                                    DataFormatString="{0:T}">
                                </telerik:GridCalculatedColumn>

I work with the last versione of telerik controls for asp.net 3.5.

Andrea
Daniel
Telerik team
 answered on 04 Jan 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?