Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
97 views
Hi,

I implemented seperate projects, for each first time loading a page of each project it takes almost 10 seconds even the page is blank.  Once the project is loaded, it is fast to load other pages in the same project.  May I have your suggestion to improve the performance?

Regards,

Duy
Sebastian
Telerik team
 answered on 19 Mar 2010
1 answer
122 views
Hi,

We have an old menu in JS files that cause problems.
We want to use RadMenu as a replacement but we want to replace only the client side code.
We want to use only the client side code of the RadMenu without the server control.
Is it possible at all?

Thanks
Yana
Telerik team
 answered on 19 Mar 2010
1 answer
100 views

I currently use the TabStrip with Mulipage controls to display and edit some 300 or so TextBoxes and other controls. I really like the advantage the PanelBar has to offer as far as the ability to display all sections at the same time and I would like to replace the TabStrip with the PanelBar. However, using the “FindItemByValue” is not very practical at all in this case. Can you recommend how to achieve the effect of the PanelBar without hiding the controls behind a parent control, maybe a combination of other controls? Is there a way to expose the controls inside the PanelBar and not having to do a “find” to get to them?

 

Thanks for the help,

-sam

Yana
Telerik team
 answered on 19 Mar 2010
7 answers
413 views
I put several rad list boxes in filter templates on a grid.
When the grid becomes too wide for the page and adds scroll bars, the rad listboxes become fixed on the page and the grid scrolls horizontally under them...
Tsvetoslav
Telerik team
 answered on 19 Mar 2010
1 answer
101 views
I'm not sure whether I have posted this in the correct forum. I have placed a RadAjaxManager at the top of my page, put a RadAjaxPanel on the page and then dropped a treeview into it. I also have a button and a textbox. The treenodes are generated dynamically by the code. I select a node at runtime and then hit the button which is supposed to write the node's value to the textbox, but this does not occur. If I used a design time generated node, it works but I have to generate the tree from a query. Here's the button click code:

TextBox1.Text = TreeView1.SelectedNode.Value.ToString();

I am under the impression that selected node's value should persist using the ajax panel. Can you help me?

Thanks,

Dave





Pavlina
Telerik team
 answered on 19 Mar 2010
3 answers
255 views
Hi, Here is my setup:
1. in the file

<

 

telerik:radtreeview id="RadTreeView2" runat="server" width="100%" height="100%"

 

 

datasourceid="ObjectDataSource1" datafieldid="ID" datafieldparentid="ParentID"

 

 

datatextfield="Text" OnNodeClick="RadTreeView2_OnNodeClick">

 

 

<DataBindings>

 

 

<telerik:RadTreeNodeBinding Expanded="true" />

 

 

</DataBindings>

 

</

 

telerik:radtreeview>

 

<

 

asp:ObjectDataSource ID="ObjectDataSource1" runat="server"

 

 

TypeName="xxxx.Component.Classes.SiteDataItemCache" SelectMethod="GetSiteDataItems">

 

</

 

asp:ObjectDataSource>
2. in the codebehind

 

protected

 

void RadTreeView2_OnNodeClick(object sender, RadTreeNodeEventArgs e)

 

{

 

SiteDataItem item = (SiteDataItem) e.Node.DataItem;

 

}


3. THE PROBLEM
the e.node.DataItem is always null.
Can anyone tell me why and how i can make this the SiteDateItem that is bound to the tree node?

Yana
Telerik team
 answered on 19 Mar 2010
1 answer
112 views
Is there a way to prevent the nodes from expanding when a node checkbox is checked?

Thanks,
Greg
Shinu
Top achievements
Rank 2
 answered on 19 Mar 2010
3 answers
127 views
Hi,

I'm new to the grid control/asp.net programming and need this solution rather urgently, help is appreciated.

I'm creating a link URL in my table but only want the field to have a hotlink if it is active, else show data and no hotlink.

how do i do this?
the item template is:

<telerik:GridTemplateColumn ItemStyle-HorizontalAlign="Right" HeaderText="Matches"
                            DataField="Matches">
                            <ItemTemplate>
                                <div class="grid_4 center">
                                    <a href="<%#Eval("MatchesURL") %>" class="blueLink" style="font-weight:bold;">
                                        <%#Eval("Matches")%>
                                    </a>
                                </div>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn> 
Princy
Top achievements
Rank 2
 answered on 19 Mar 2010
0 answers
47 views
thank you !
j hg
Top achievements
Rank 1
 asked on 19 Mar 2010
1 answer
91 views
Hello there,

I am trying to use RadGrids own Insert/Update/Delete method in order to edit or delete any records i want.

I have 2 columns on my table Group_id and Group_Name where group_id is Auto Increment.

I copy and pasted the code from http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/alleditablecolumns/defaultcs.aspx for VB.NET and modified but it does nothing. 
When I edit and press update button it says: Group with ID 15 is updated! but nothing changes! also when I press Delete button nothing happens...

This is my code
Imports System.Data.SqlClient 
Imports Telerik.Web.UI 
Imports System.Drawing 
 
Partial Class category 
    Inherits System.Web.UI.Page 
    Private Sub Page_Load(ByVal sender As System.ObjectByVal e As System.EventArgs) Handles MyBase.Load, Me.Load 
        'Put user code to initialize the page here 
        RadGrid1.DataBind() 
    End Sub 
    Protected Sub btninsert_Click(ByVal sender As ObjectByVal e As System.EventArgs) Handles btninsert.Click 
        Dim sConnStr As String = "Data Source=Barlet-HP\SQLEXPRESS;Initial Catalog=KDN;Integrated Security=True" 
        Dim cnBKTest As New SqlConnection(sConnStr) 
        Dim cmdTest As New SqlCommand("addGroup", cnBKTest) 
 
        cmdTest.CommandType = Data.CommandType.StoredProcedure 
 
        cmdTest.Parameters.Add(New SqlParameter("@Group_Name", Data.SqlDbType.VarChar)) 
        cmdTest.Parameters("@Group_Name").Value = TextBox1.Text.ToString 
 
 
 
 
        cnBKTest.Open() 
        cmdTest.ExecuteNonQuery() 
        cnBKTest.Close() 
        RadGrid1.DataBind() 
 
        Label2.Text = "Last Inserted Category is: " & TextBox1.Text 
 
        TextBox1.Text = "" 
        TextBox1.Focus() 
        '''''''''''''''''''''''''''''''''''''''''''''' 
    End Sub 
 
    Protected Sub RadGrid1_NeedDataSource(ByVal source As ObjectByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles RadGrid1.NeedDataSource 
 
    End Sub 
 
    Protected Sub RadGrid1_ItemDeleted(ByVal source As ObjectByVal e As Telerik.Web.UI.GridDeletedEventArgs) Handles RadGrid1.ItemDeleted 
        Dim item As GridDataItem = DirectCast(e.Item, GridDataItem) 
        Dim id As String = item.GetDataKeyValue("Group_id").ToString() 
 
        If Not e.Exception Is Nothing Then 
            e.ExceptionHandled = True 
            SetMessage("Group with ID " + id + " cannot be deleted. Reason: " + e.Exception.Message) 
        Else 
            SetMessage("Group with ID " + id + " is deleted!"
        End If 
    End Sub 
 
    Protected Sub RadGrid1_ItemUpdated(ByVal source As ObjectByVal e As Telerik.Web.UI.GridUpdatedEventArgs) Handles RadGrid1.ItemUpdated 
        Dim item As GridEditableItem = DirectCast(e.Item, GridEditableItem) 
        Dim id As String = item.GetDataKeyValue("Group_id").ToString() 
 
        If Not e.Exception Is Nothing Then 
            e.KeepInEditMode = True 
            e.ExceptionHandled = True 
            SetMessage("Group with ID " + id + " cannot be updated. Reason: " + e.Exception.Message) 
        Else 
            SetMessage("Group with ID " + id + " is updated!"
        End If 
    End Sub 
 
    Protected Sub RadGrid1_ItemInserted(ByVal source As ObjectByVal e As Telerik.Web.UI.GridInsertedEventArgs) Handles RadGrid1.ItemInserted 
        If Not e.Exception Is Nothing Then 
            e.ExceptionHandled = True 
            e.KeepInInsertMode = True 
            SetMessage("Product cannot be inserted. Reason: " + e.Exception.Message) 
        Else 
            SetMessage("New product is inserted!"
        End If 
    End Sub 
 
    Private Sub DisplayMessage(ByVal text As String
        RadGrid1.Controls.Add(New LiteralControl(String.Format("<span style='color:red'>{0}</span>", text))) 
    End Sub 
 
    Private Sub SetMessage(ByVal message As String
        gridMessage = message 
    End Sub 
 
    Private gridMessage As String = Nothing 
    Protected Sub RadGrid1_DataBound(ByVal sender As ObjectByVal e As EventArgs) Handles RadGrid1.DataBound 
        If Not String.IsNullOrEmpty(gridMessage) Then 
            DisplayMessage(gridMessage) 
        End If 
    End Sub 
End Class 
Allow Automatic Delete is set to 'TRUE'
Allow Automatic Insert is set to 'TRUE'
Allow Automatic Update is set to 'TRUE'

any suggestions

Thanks
Barlet Hamzai
Tsvetoslav
Telerik team
 answered on 19 Mar 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?