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

i have taken a master page and a webform. and given radtreeview in masterpage. when select a node of radtreeview, i need to open the redirected page in right side panel. that i am succeeded with..
when i click on node, the redirected page is opened in the right panel .but the radtreeview is collapsed again.
what my problem is..
i need to keep the expanded tree as it is after the redirected page is opened in the right panel.

my code is as follows:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Web.UI;


public partial class MASTERS_EPM0001 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string p_node_value;
        p_node_value = Session["p_node_value"].ToString();
        RadTreeView1.Nodes.FindNodeByValue(p_node_value);
        RadTreeView1.SelectedNodes.v = p_node_value;
        EPM0001LBL1.Text = p_node_value;
    }
    
}


or can you give me an example please??

i am using .net framework 4.0.30319 and visual studio 2010




Iam
Top achievements
Rank 1
 answered on 17 Dec 2012
4 answers
86 views
I'd like to put the pagesize dropdown into the header (top right) of my radgrid but leave the rest of the paging controls in the footer... is this possible?
Eyup
Telerik team
 answered on 17 Dec 2012
1 answer
54 views
Hi Telerik Team,
we have started to redefine the look and feel of the website .
Through out the application we are using Telerik ASP.net controls .can you please let me know whether we have any telerik ctrls i can use for themes or standarad ASp.net themes.
Also if telrik ctrls exist, Are  they designed to work together?

Regards!
--Naren
Rumen
Telerik team
 answered on 17 Dec 2012
1 answer
76 views
Hi,

I am looking for a search custom control which would have 3 columns: Search Field | Operator | Search Value

Since, I am looking at 16 different tables, I don't know how I can work with the Filter control. I was wondering if Telerik had a custom search box control which would allow you to search for values for the fields specified.

The design of the search box control would be like.

Search field Operator Search Value
ComboBox 1 (contains all the fields from the Table) ComboBox (AND, OR, NOT, EQUAL TO) Text Box 1
ComboBox 2 (contains all the fields from the Table) ComboBox (AND, OR, NOT, EQUAL TO) Text Box 2
ComboBox 3 (contains all the fields from the Table) ComboBox (AND, OR, NOT, EQUAL TO) Text Box 3

Does Telerik have anything similar to this?

Thanks,
Swamy
Eyup
Telerik team
 answered on 17 Dec 2012
7 answers
546 views
Hello,

can someone explain me the RadGrid behaviour on pressing the enter.
I've a radgrid with property AllowSubmitOnEnter is set to false. This causes strange behaviour. Sometimes the Enter Key causes an InitInsert and sometimes it causes an Edit command.
I expect the enter key always to do an update. Can someone tell me how to force this behaviour?

Regards,
  Jos Meerkerk
Eyup
Telerik team
 answered on 17 Dec 2012
2 answers
192 views
Hi, I am using RadControls for ASP.NET AJAX Q2 2012 SP1. I am developing an asp.net web page that using RadGrid. I use Entity Framework to get the data from the database. I have 2 entities and the relationship between them is many to many , the below code is for example :
public class User
    {   
        public System.Guid UserId { get; set; }
        public string UserName { get; set; }
 
        public virtual ICollection<Role> Roles { get; set; }
    }
public class Role
    {   
        public System.Guid RoleId { get; set; }
        public string RoleName { get; set; }
     
        public virtual ICollection<User> Users { get; set; }
    }

An user can have many roles and a role can have many users. Then I have a RadGrid that binds a list of User entity to it, I want to filter the RoleName property , for example I want to filter users that have the "Administrator" role name, how can I achieve this ? What I have to to put in "DataField" attribute of that column ? I searched a lot on google and I haven't found any solution for filtering navigation property with ICollection datatype. Please help me
Thank you very much !
Best regards.
Eyup
Telerik team
 answered on 17 Dec 2012
1 answer
147 views
Hi there,

let's just straight to the case:

  • I Have a RadGrid Which i have declared in Design Time:
<telerik:RadGrid ID="grdResult" runat="server" Width="100%" AutoGenerateColumns="false"
        AllowPaging="true" PageSize="25" ShowHeader="true">
        <MasterTableView AutoGenerateColumns="False">
            <Columns>
            </Columns>
            <NoRecordsTemplate>
                <div> Search did not match with any of the existing data.</div>
            </NoRecordsTemplate>
        </MasterTableView>
    </telerik:RadGrid>
  • What i want to do with it is that i want to add the column dynamically while in run time, and the data is comming from Sharepoint List
GridBoundColumn col = new GridBoundColumn();
 
            col = new GridBoundColumn();
            col.HeaderText = SystemConstants.ExtenalName_Col1;
            col.DataField = SystemConstants.InternalName_Col1;
            grdResult.MasterTableView.Columns.Add(col);
 
            col = new GridBoundColumn();
            col.HeaderText = SystemConstants.ExtenalName_Col2;
            col.DataField = SystemConstants.InternalName_Col2;
            grdResult.Columns.Add(col);
 
            col = new GridBoundColumn();
            col.HeaderText = SystemConstants.ExtenalName_Col3;
            col.DataField = SystemConstants.InternalName_Col3;
            grdResult.MasterTableView.Columns.Add(col);
 
            col = new GridBoundColumn();
            col.HeaderText = SystemConstants.ExtenalName_Col4;
            col.DataField = SystemConstants.InternalName_Col4;
            grdResult.MasterTableView.Columns.Add(col);
 
            col = new GridBoundColumn();
            col.HeaderText = SystemConstants.ExtenalName_Col5;
            col.DataField = SystemConstants.InternalName_Col5;
            grdResult.MasterTableView.Columns.Add(col);
 
            col.HeaderText = "View"; //this will be hyperlink column
            grdResult.Columns.Add(col);

The Problem is:
  • When I have not bind it to any data why the does not show up at all? not event the header text?
  • How do i bind / populate the grid ? *tried the documentation but as far as i see everything is using database..

Notes:
  • I do not use the onNeedData event because i want to populate the grid after the user finish inputing the search criteria in the form and click the search button.

thanks in advance
Nahwin
Top achievements
Rank 1
 answered on 17 Dec 2012
6 answers
187 views
Hi,

I have a treeview in which I load the first two levels server side on PageLoad. Children will be loaded using Webservice load on demand and it works well. I have one problem though, when handling the RadTreeView_OnContextMenuClicked event serverside, the e.ClickedNode property is null. So when clicking context menu items, the event fires but when I want to handle the c.clickednode its null. It works with the server side loaded nodes...

What am I missing?
Martin
Top achievements
Rank 1
 answered on 17 Dec 2012
1 answer
162 views
Can someone help me with how I would display a processing message to my users?  I have a page that allows them to edit lots of items then I have to submit those changes to the database.  This can take up to a couple minutes depending on how many items they updated.  How can I give them a message to let them know that everything is working?

Thanks.
Shinu
Top achievements
Rank 2
 answered on 17 Dec 2012
3 answers
301 views
Hello,

I have this scenario:

I use as datasource a dataset defined in a string where a column is a boolean.
My Radgrid is build at runtime and i want to see a checkbox for boolean column and not a textbox. How can i do this?

My dataset structure:

<?xml version="1.0" encoding="utf-16"?>
<xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
  <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="Table1">
          <xs:complexType>
            <xs:sequence>
              <xs:element  name="ID" msdata:AutoIncrement="true" type="xs:int" minOccurs="0" />
              <xs:element name="Cognome" type="xs:string" minOccurs="0" />
              <xs:element name="Nome" type="xs:string" minOccurs="0" />
              <xs:element name="Info" type="xs:string" minOccurs="0" />
              <xs:element name="Confermato" type="xs:boolean" default="false" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
  </xs:element>
</xs:schema>

Help me.

Mirko
Princy
Top achievements
Rank 2
 answered on 17 Dec 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?