Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
77 views
Hello.

I use LoadOnDemand with ExpandMode.WebService.
I need to load all subnodes without expanding. Can i request subnodes for node with javascript api?

Thanks
BlackStar
Top achievements
Rank 1
 asked on 27 May 2009
1 answer
120 views
Whenever I click on a row, there's a yellow background applied. How do i get rid of that?
Princy
Top achievements
Rank 2
 answered on 27 May 2009
1 answer
63 views
Hi

I have a rad grid grid in my page.after editing or inserting i want to refresh the page.bcoz depends on the grid value i want to populate one combo box.in back end it is happening,but in the front end i cant see bcoz page is not refreshing.help me
Shinu
Top achievements
Rank 2
 answered on 27 May 2009
1 answer
137 views
On the OnRowDblClick client event, I'd like the grid to postback and send the SelectedIndex as an argument.  I stumbled upon this article:  http://www.telerik.com/help/aspnet/grid/grdpostbackfromgridwithajaxenabled.html, and I'm curious to know how the "this" keyword is referencing the grid control.  In my code, "this" refers to the calling function.

Here a snippet of my code:

<rad:RadGrid ID="claimLvlGrid" runat="server" DataSourceID="claimLvlODS"  
            AutoGenerateColumns="false" SelectedItemStyle-CssClass="selectedRow"  
            HeaderStyle-HorizontalAlign="Center" Skin="Outlook">                         
            <ClientSettings Selecting-AllowRowSelect="true" Scrolling-AllowScroll="true"  
                Scrolling-ScrollHeight="75px" Scrolling-UseStaticHeaders="true"  
                ClientEvents-OnRowDblClick="test" />             

    <rad:RadScriptBlock runat="server"
        <script type="text/javascript">             
            function test() 
            {                 
                __doPostBack("<%= claimLvlGrid.UniqueID %>", <index>);                 
            }         
        </script> 
    </rad:RadScriptBlock> 


Shinu
Top achievements
Rank 2
 answered on 27 May 2009
2 answers
67 views
Hi... I have a grid and have set the the MasterTableView Frame attribute to "void".  yet, when I export to PDF, I still get a border around the content.  Any ideas?

<

 

telerik:RadGrid id="RadGrid1" runat="server" Width="698px"

 

 

DataSourceID="XmlDataSource1"

 

 

EnableEmbeddedSkins="False"

 

 

Skin="Telerik"

 

 

AutoGenerateColumns="False"

 

 

ItemStyle-Width="100px">

 

 

<ExportSettings FileName="TWSCourse" Pdf-AllowModify="false" OpenInNewWindow="true">

 

 

<Pdf FontType="Link" AllowPrinting="true" PageLeftMargin=".5in" PageRightMargin=".5in"

 

 

PageBottomMargin=".5in" PageTopMargin="1in" PageTitle="TitleHere" />

 

 

</ExportSettings>

 

 

<MasterTableView DataKeyNames="id" CommandItemDisplay="None" Frame="Void">

 

 

<Columns>

 

 

<telerik:GridTemplateColumn HeaderText="Mile" UniqueName="MileColumn">

 

 

<ItemStyle Width="30px" />

 

 

<ItemTemplate>

 

 

<asp:Label ID="lblMile" runat="server" Text='<%# Eval("mile") %>'/>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridTemplateColumn HeaderText="Location" UniqueName="LocationColumn">

 

 

<ItemStyle Width="550px" />

 

 

<ItemTemplate>

 

 

<div style="font-weight: bold; text-align: left"><asp:Label ID="lblName" runat="server" Text='<%# Eval("name") %>'/></div>

 

 

<asp:Label ID="lblDesc" runat="server" Text='<%# Eval("desc") %>'/>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridTemplateColumn HeaderText="Note" UniqueName="NoteColumn">

 

 

<ItemTemplate>

 

 

<asp:Label ID="lblNote" runat="server" Text='<%# Eval("note") %>'/>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

</Columns>

 

 

</MasterTableView>

 

 

</telerik:RadGrid>

 

David
Top achievements
Rank 1
 answered on 26 May 2009
0 answers
171 views
Guys

I am trying to develop a webpart nd integrate it with my sharepoint page, the webpart will contain Rad tree view but everytime i try to ass any of RAD controls i keep getting the following error when i try to view it within my sharepoint page:
Script controls may not be registered before PreRender.

Troubleshoot issues with Windows SharePoint Services.

Please note I have Followed the instruction of integrating both Ajax and Rad controls into my site.


I replaced the RadScriptManager with ScriptManager -- NO LUCK
I tired to add the treeview directly to the control but no luck



I spent almost a week now trying to figure out wht is wrong but no luck, Please HELP
Please note i have tried the following:





Option Explicit On
Option Strict On

Imports System
Imports System.Runtime.InteropServices
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Web.UI.WebControls.WebParts
Imports System.Xml.Serialization

Imports Microsoft.SharePoint
Imports Microsoft.SharePoint.WebControls
Imports Microsoft.SharePoint.WebPartPages
Imports System.Data
Imports System.Data.SqlClient
Imports System.Data.SqlTypes
Imports Microsoft.VisualBasic
Imports Microsoft.Office.InfoPath.Server
Imports Microsoft.Office.InfoPath.Server.Controls
Imports Telerik.Web.UI

Namespace ProjectStructure2

    <Guid("f74a57f5-9ecc-4d2d-bd33-0ac4e271218e")> _
    Public Class ProjectStructure2
        Inherits Microsoft.SharePoint.WebPartPages.WebPart

        Public MyXmlFormView As New XmlFormView
        Public tvProjectStructurte As New TreeView
        Public SQLConnection As New System.Data.SqlClient.SqlConnection("server=KHATTABO; database=UserMosic") ' Store the connection string
        Dim Names, Values, NamesAndType As New ArrayList
        Dim labeld As New Label
        Dim labeld2 As New Label
        Dim labeld3 As New Label
        Dim URL As New Label
        Dim thisWeb As SPWeb = SPContext.Current.Web
        Dim docLibName As String = "Projects List"
        Public PorjectID As Integer
        Public LevelsCounter As Integer
        Dim ss As New Label
        Dim MainTable As New Table
        Private displayName As Label
        Private inputName As TextBox

        Dim sss As New Table
        Dim TestTable As New Table
        Dim label As New Label
        Dim panel As Panel = New Panel()

        Public Sub New()
        End Sub

        Protected Overrides Sub OnInit(ByVal e As EventArgs)
            MyBase.OnInit(e)


            EnsurePanelFix()


        End Sub

        Protected Overrides Sub OnLoad(ByVal e As EventArgs)
            MyBase.OnLoad(e)

   

            Dim panel As New Panel
            panel.ID = "Panel1"
            Me.Controls.Add(panel)

            Dim treeView As RadTreeView = New RadTreeView()
            treeView.ID = "RadTreeView1"
            treeView.Nodes.Add(New RadTreeNode("What's the time?"))


            panel.Controls.Add(treeView)
            label = New Label()
            label.Text = "Hello"
           
            panel.Controls.Add(label)


            Dim ajaxManager As RadAjaxManager = RadAjaxManager.GetCurrent(Me.Page)
            If ajaxManager Is Nothing Then
                ajaxManager = New RadAjaxManager()
                ajaxManager.ID = "RadAjaxManager1"
                Me.Controls.Add(ajaxManager)
                Me.Page.Items.Add(GetType(RadAjaxManager), ajaxManager)
            End If

            ajaxManager.AjaxSettings.AddAjaxSetting(treeView, panel)
        End Sub

        Private Sub treeView_NodeClick(ByVal sender As Object, ByVal e As RadTreeNodeEventArgs)
            label.Text = DateTime.Now.ToLongTimeString()
        End Sub

        Protected Overrides Sub CreateChildControls()
            MyBase.CreateChildControls()

 
        End Sub

        Private Sub EnsurePanelFix()

            Page.ClientScript.RegisterStartupScript(GetType(ProjectStructure2), Me.ID, "_spOriginalFormAction = document.forms[0].action;_spSuppressFormOnSubmitWrapper=true;", True)
            If Not Me.Page.Form Is Nothing Then
                Dim formOnSubmitAtt As String = Me.Page.Form.Attributes("onsubmit")
                If Not String.IsNullOrEmpty(formOnSubmitAtt) And formOnSubmitAtt = "return _spFormOnSubmitWrapper();" Then
                    Me.Page.Form.Attributes("onsubmit") = "_spFormOnSubmitWrapper();"
                End If
            End If


            Dim scriptManager As ScriptManager = scriptManager.GetCurrent(Me.Page)
            If scriptManager Is Nothing Then
                scriptManager = New RadScriptManager() '  Please Note I also tried to use scriptManager = New ScriptManager()
                scriptManager.EnablePartialRendering = True
         
                Me.Controls.AddAt(0, scriptManager)
           
            End If

        
         




        End Sub


        Protected Overrides Sub OnPreRender(ByVal e As System.EventArgs)
            MyBase.OnPreRender(e)
            EnsureChildControls()

        End Sub


    End Class


End Namespace
osama
Top achievements
Rank 1
 asked on 26 May 2009
2 answers
123 views
A user has complained that they get the 'hand' cursor whenever they mouse over any part of the grid rather than just on a hyperlink.
I do NOT have a skin set. In the grid I have Skin="".
I can't find a design time property to change it.
I tried adding a style to the grid, but that had no effect. For example:
    protected override void OnInit(EventArgs e) 
    { 
        RadBuildingCoverageGrid.Attributes.Add("style", "cursor:pointer"); 
    } 
 

What am I missing here?


Bob
Top achievements
Rank 1
 answered on 26 May 2009
2 answers
135 views
By default, the DatePicker control has built in validation style. We already have validation standards setup on our site and would like to continue using them. How can we disable the DatePicker's validation and use only the .Net validators we have in place?

Drew
Drew
Top achievements
Rank 1
 answered on 26 May 2009
2 answers
333 views
I am implementing my own File Browser Content Provider and have observed "ResolveRootDirectoryAsTree" being called for the subdirectory paths as well as my intended root (the first ViewPath). Am I misunderstanding what ResolveRootDirectoryAsTree is for?

I have my FileExplorer in a UserControl and I'm initializing it during the Init event of the UserControl.

 

<rad:RadFileExplorer ID="radFileExplorer" runat="server" EnableOpenFile="false" OnClientFileOpen="ClientFileOpenHandler" Width="588"></rad:RadFileExplorer> 
        Private Sub Page_Init(ByVal sender As ObjectByVal e As System.EventArgs) Handles MyBase.Init  
            Dim path = String.Format("{0}/{1}", myOwnerID, myOwnerType)  
 
            If myOwnerType = DocumentOwnerType.Employee Then 
                radFileExplorer.Upload.OnClientAdded = "AddFieldsForEEDocuments" 
                radFileExplorer.WindowManager.Height = 100  
            Else 
                radFileExplorer.Upload.OnClientAdded = "AddFields" 
                radFileExplorer.WindowManager.Height = 150  
            End If 
            radFileExplorer.Upload.InitialFileInputsCount = 1  
            radFileExplorer.Upload.ControlObjectsVisibility = Telerik.Web.UI.ControlObjectsVisibility.None  
 
            radFileExplorer.VisibleControls = _  
             Telerik.Web.UI.FileExplorer.FileExplorerControls.ContextMenus Or _  
             Telerik.Web.UI.FileExplorer.FileExplorerControls.Grid Or _  
             Telerik.Web.UI.FileExplorer.FileExplorerControls.Toolbar Or _  
             Telerik.Web.UI.FileExplorer.FileExplorerControls.TreeView  
 
            radFileExplorer.Configuration.ContentProviderTypeName = GetType(DocumentStorageContentProvider).AssemblyQualifiedName  
              
            radFileExplorer.Configuration.ViewPaths = New String() {path}  
              
End Sub 

Chris
Top achievements
Rank 1
 answered on 26 May 2009
3 answers
249 views
I have a GridTemplateColumn with a RadComboBox in the EditItemTemplate. In the footer of this RCB I have some textboxes and a button.
What I need to do - Access other items in the footer of the RCB via javascript on the client side. (I need to validate one of the textboxes with a customvalidator)

I can do this with a RCB that I have designtime access to, I figured that out. :)

My first attempts were trying to find a way to access the RCB from the edit item template and get it's client ID. I can't find a way to get to the RCB that way... and that's kinda all I had.

Can anyone give me a pointer in how I can, (in my Page_Load for example), access the RCB in a GridTemplateColumn's EditItemTemplate.
If there is a RadGrid clientside method I could do this with as well, I can probably make that work.

Anything, at this point, would be much appreciated.
Baatezu
Top achievements
Rank 2
 answered on 26 May 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?