Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
52 views

Hi Team,

I am using Timeline view with 7 time slots and each slot is representing as a day. My requirement is when I click on Timeline column header; Day view should open for that specific date. But the problem is that when I go to click any of the column headers in Timeline view, there is no link button occurs so I am unable to click any time slot. Please give me some suggestion so that I can implement this functionality.

 

Thanks,

Deepak

Peter
Telerik team
 answered on 12 Apr 2011
1 answer
61 views

Hi Team,

Here I have a scenario, in which I set AdaptiveRowHeight property as true. But the problem is because of this property is true, I am unable to drag my appointments vertical in different rows of month view. If there is any row which have at least  one appointment then I can easily drag my appointments in that row, but if any row which haven’t any appointment in that case I am unable to drag it but if I will set AdaptiveRowHeight property as false then it works and I need to make this property true. Please give some suggestion.

 

Thanks,

Deepak

Peter
Telerik team
 answered on 12 Apr 2011
1 answer
154 views
Hi All,
i want to reload treeview on button click

means i want to call "RadTreeView1_NodeExpand" event on button click

.aspx code
<asp:UpdatePanel ID="StepUpdatePanel" runat="server">   
                                   <ContentTemplate>  
                                       <telerik:RadTreeView ID="trvSteps"  runat="server" Height="400px" Style="border: 1px solid #CBE7F5;"
                                           OnNodeExpand="RadTreeView1_NodeExpand" OnDataBinding="RadTreeView1_NodeExpand">
                                            <DataBindings>
                                               <telerik:RadTreeNodeBinding Expanded="True" />
                                           </DataBindings>
                                       </telerik:RadTreeView>
                                      <%-- <asp:TreeView ID="trvSteps" runat="server" ShowLines="true" ExpandDepth="0" SelectedNodeStyle-BackColor="LightBlue" >                                                                      
                                       </asp:TreeView>--%>
                                   </ContentTemplate>
                                   <Triggers>
                                       <asp:AsyncPostBackTrigger ControlID="btnReloadTreeview" EventName="Click"  />
                                    </Triggers>
                               </asp:UpdatePanel>

Code Behind Code

Protected Sub RadTreeView1_NodeExpand(ByVal sender As Object, ByVal e As RadTreeNodeEventArgs)
        Dim objFileRouteStep As Business.FileRouteStep
        Dim dt As DataTable
        Try
 
            objFileRouteStep = New Business.FileRouteStep
            objFileRouteStep.Fields.FileRouteID.FileRouteID = hdnRouteID.Value.ToString()
            objFileRouteStep.Fields.Methods.AddInputParameter("@MonitoringDirectoryID", System.Data.SqlDbType.Int, 18, hdnMDirectoryID.Value)
            dt = objFileRouteStep.GetFileRouteStepDataTable(Data.FileRouteStep.SqlProcedures.USP_select_Step_ByFileRouteID)
 
            If (trvSteps.Nodes.Count = 0) Then
                Dim rootNode As New RadTreeNode("Root")
                rootNode.Value = "0"
                'rootNode.ImageUrl = "~/TreeView/Img/Vista/folder.png"
 
                rootNode.ExpandMode = TreeNodeExpandMode.ServerSideCallBack
                trvSteps.Nodes.Add(rootNode)
                BindTreeToDirectory(e.Node.Value, e.Node)
            End If
 
 
 
        Catch ex As Exception
 
        End Try
    End Sub
 
    Private Sub BindTreeToDirectory(ByVal StepID As String, ByVal parentNode As RadTreeNode)
        Dim objFileRouteStep As Business.FileRouteStep
        Dim dt As DataTable
        Try
            dt = New DataTable
 
            If (StepID = "0") Then
                objFileRouteStep = New Business.FileRouteStep
                objFileRouteStep.Fields.FileRouteID.FileRouteID = hdnRouteID.Value.ToString()
                objFileRouteStep.Fields.Methods.AddInputParameter("@MonitoringDirectoryID", System.Data.SqlDbType.Int, 18, hdnMDirectoryID.Value)
                dt = objFileRouteStep.GetFileRouteStepDataTable(Data.FileRouteStep.SqlProcedures.USP_select_Step_ByFileRouteID)
 
                For Each dr As DataRow In dt.Rows
                    Dim node As New RadTreeNode(dr("Step").ToString() + "-" + dr("Desc").ToString(), dr("StepID").ToString(), "javascript:clickNode(this, '" + dr("StepID").ToString() + "');")
                    node.Value = dr("StepID").ToString()
 
                    If (dr("SubNode").ToString() = "0") Then
                    Else
                        node.ExpandMode = TreeNodeExpandMode.ServerSideCallBack
                    End If
 
 
                    parentNode.Nodes.Add(node)
 
                Next
            Else
                objFileRouteStep = New Business.FileRouteStep
 
                objFileRouteStep.Fields.Methods.AddInputParameter("@FileRouteID", System.Data.SqlDbType.Int, 18, StepID)
                dt = objFileRouteStep.GetFileRouteStepDataTable(Data.FileRouteStep.SqlProcedures.USP_select_childStep_ByFileRouteID)
 
                For Each dr As DataRow In dt.Rows
                    'If (dr("ParentID").ToString() = virtualPath.ToString()) Then
                    Dim node As New RadTreeNode(dr("Step").ToString() + "-" + dr("Desc").ToString(), dr("StepID").ToString(), "javascript:clickNode(this, '" + dr("StepID").ToString() + "');")
                    node.Value = dr("StepID").ToString()
                    node.ExpandMode = TreeNodeExpandMode.ServerSideCallBack
                    parentNode.Nodes.Add(node)
                    'End If
                Next
 
            End If
        Catch ex As Exception
        Finally
            objFileRouteStep = Nothing
            dt = Nothing
        End Try
 
    End Sub
Please help

Thanks in Advance
Pratik Asthana
Kate
Telerik team
 answered on 12 Apr 2011
3 answers
88 views
Hi

I have a user control which has TabStrip control. The Tabstrip control has 2 tabs ,each of the tab has a PageView which is again a user control.Say, when I click on Tab1 ,the PageView1(usercontrol) has 3 input fields like FullName, CompanyName,PhoneNo.
When I click on Tab2,PageView2(user control) has 2 other input fields with a Submit button.

How do I persist the data across tabs and update the database on click of submit button?
Also I want each of the PageViews to be validated before I click Submit button. How do I do this?

Thanks,
Chand
Veronica
Telerik team
 answered on 12 Apr 2011
1 answer
59 views
Hi,

I have set the edit mode for each of the Editable Grid items in the pre-rendere event of the the page life cycle and this allow for each and every row in the grid to start in edit mode which is exactly what i want. I have set the in-line edit mode against the master table view which is what i want.

However, each row seems to have a border around item which is not what i want. I dont know how to stop this. Can anyone help?
Shinu
Top achievements
Rank 2
 answered on 12 Apr 2011
2 answers
88 views
I am using the RadWindow as a dialog box for a complex form in a medical application. The RadWindow contains a RadTab control, and each tab has another part of the form. Additionally, in some areas, I need to display another RadWindow to get some details, then close that extra window and continue working with the original one. (I should also mention that this page auto-refreshes once a minute or so to keep the data on it current).

I don't want the dialog to show when the initial page is displayed, it needs to be launched when a button is clicked, It should then stay open until explicitly closed.

I am opening it using Javascript:

function showWizard() {
    var oWnd = $find("<%= RadWindow1.ClientID %>");
    oWnd.show();
}           

This works, but if anything at all causes a postback, the window goes away, and for some reason, I usually can't get it to come back without closing the browser and starting over again.

Using the "VisibleOnPageLoad" option works much better generally speaking, but like I said, I don't want it to always be open.

Do you have any sample code which is fairly bulletproof in regards to managing the show/hide state of the window(s)?
VisibleOnPageLoad
VisibleOnPageLoad

Marin Bratanov
Telerik team
 answered on 12 Apr 2011
1 answer
92 views
Hi,

How can I create a multi-row(2) menu.
I found /aspnet-ajax/menu/examples/functionality/multirow/defaultcs.aspx but this is no longer active.

I want 2 rows: First expands up, second expands down.

Please help.

BR,
Marc
Kate
Telerik team
 answered on 12 Apr 2011
1 answer
73 views
Hai,

How can we save the position the of a floating Raddock control. I want to get the Radcontrol placed on the position(X,Y cordinates on the screen ) which was last saved, when I open the same page again.

Thanks
Regeesh
Pero
Telerik team
 answered on 12 Apr 2011
1 answer
84 views
HI,

We are using Telerik RadGrid control with .NET 4.0 ASP.NET code. We are attaching dataview to RadGrid Control, but at runtime there is mismatch with header columns and actual table columns in display. 

This issue is coming with IE 7.0 and IE 8.0

Is this the known issue? How could we solve this problem?

Rapid help would be much appreciated :-)

Thanks,
Dev Team First American

Pavlina
Telerik team
 answered on 12 Apr 2011
1 answer
78 views
Hi,

When I try to set ControlObjectsVisibility property at design time, receive Specified cast is not valid exception. When I set it manually from coode behind  and run page it doesn't throw any exception but seems not working.

<telerik:RadAsyncUpload runat="server" ID="RadAsyncUpload1" HttpHandlerUrl="~/UploadHandler.ashx"
    MultipleFileSelection="Disabled" MaxFileInputsCount="1" OnClientFileUploaded="fileUploaded"
    EnableInlineProgress="False" Skin="Default" >
</telerik:RadAsyncUpload>

I am using version 2011.1.405.40
Helen
Telerik team
 answered on 12 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?