Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
66 views
Hi,
I want to access a GridDropDownColumn ddl (DropDownList) not thourh an event as shown in your documentation (for example, onItemCreated event) but directly through the column:
GridDropDownColumn col = (GridDropDownColumn)grid.Columns.FindByUniqueName("myCol"); 
How do I proceed from here?
Daniel
Telerik team
 answered on 29 Dec 2008
1 answer
110 views
If you enabled Dialog and Spell Check Handler, VS 2008 automatically added following codes to "<system.web><httpHandlers>" section of Web.config:

            <add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Version=2008.3.1016.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4"
                validate="false" />
            <add path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Version=2008.3.1016.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4"
                validate="false" />

However, the above codes are only valid for IIS 6 not IIS 7.  If you want to enable both features, you need to add following codes to "<system.webServer><handlers>" section instead:

        <add name="Telerik.Web.UI.DialogHandler" path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI" />
        <add name="Telerik.Web.UI.SpellCheckHandler" path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI" />

And, you must use 2008 Q3 version of RadControl.

Good luck!

Rumen
Telerik team
 answered on 29 Dec 2008
5 answers
291 views
Hi ,

Here is a repro for a bug, I dont think its the same as the one mentioned here: http://www.telerik.com/community/forums/aspnet-ajax/treeview/stack-overflow-on-nodeclick-after-serversidecallback.aspx



The FindNodeByValue method produces a Stack Overflow. I need a fix from Telerix as the Call Stack is inside the FindNodeByValue method and I cant see this without the pdb files, let alone change the source code...

        protected void Button1_Click(object sender, EventArgs e)
        {

            RadTreeView1.Nodes.Clear();
            RadTreeNode tn = new RadTreeNode();
            RadTreeNode childNode = null;

            Random rnd = new Random();
            for (int i = 1; i < 2000; i++)
            {
                tn = new RadTreeNode();
                tn.Text = i.ToString();
                tn.Value = i.ToString();
                RadTreeView1.Nodes.Add(tn);

            }


//for this repro, I put this loop below, however in my application it is nested in the above loop.
            for (int i = 1; i < 2000; i++)
            {

                childNode = RadTreeView1.FindNodeByValue(Convert.ToUInt32((rnd.NextDouble() -.001) * i).ToString());
                tn.Text = i.ToString();
                tn.Value = i.ToString();
                childNode.Nodes.Add(tn);   
            }






To avoid the StackOverflow I was hoping to bind the treeview to a datasource, eg:

OleDbConnection dbCon = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Server.MapPath("~/Tree.mdb"));
                dbCon.Open();

OleDbDataAdapter adapter = new OleDbDataAdapter("SELECT * FROM Links", dbCon);
DataSet ds = new DataSet();
adapter.Fill(ds);

RadTreeView1.DataFieldID = "NODEID";
RadTreeView1.DataFieldParentID = "PARENTID";
RadTreeView1.DataTextField = "TEXT";


However this project requires a TreeView with roughly 3600 nodes and some branches are 6 levels deep.. I cant bind since the Child and Parent IDs are NON-Unique:

1818    1819
1818    1886
1819    1820
1819    1847
1819    1875
1820    1846
1820    1821
1820    1833
1821    1831
1821    1826
1821    1827



Looking forward to your response, thanks

Jeremy






Meaning Of Lights
Top achievements
Rank 2
 answered on 29 Dec 2008
1 answer
104 views
 I have a column in my group footer where I need to calculate a percentage. The percentage depends on which group I'm currently in. I've got code in ItemDataBound which checks to see if e.Item is a GridGroupFooterItem and if so, it does the calculation. However, I'm having a hard time trying to figure out which group I'm actually in. GridGroupFooterItem.GroupIndex is supposed to have it as a string, but it seems to start at "0", then go to "2", then "4", etc. This grid only has one level of grouping. I guess I could just calculate it based off of the GroupIndex or maintain my own group count but that seems weird - is there a more direct approach?
Yavor
Telerik team
 answered on 29 Dec 2008
2 answers
163 views
Hi,

I've almost got this Treeview Loaded On Demand working!!

My last question is how do you check a node that you load on-demand. I've tried CheckState, Checked, Checkable but no luck.

I cant find a sample that demonstrates how to check a node loaded on demand


My aspx:

  <telerik:RadTreeView runat="server" ID="RadTreeView1"
             OnNodeDataBound="RadTreeView1_NodeDataBound" CheckBoxes="true" CheckChildNodes="true"  
            LoadingStatusPosition="None" PersistLoadOnDemandNodes="false" EnableViewState="false"
            Style="float: left" OnClientNodeClicked="onNodeClicked" Width="300px">
            <WebServiceSettings Method="GetTreeViewNodes" Path="~/PopulateTreeview.asmx" />
            <Nodes>
             
            <telerik:RadTreeNode Text="mgpage_BalanceSheet" Checked="true" Value="1" ExpandMode="WebService"> </telerik:RadTreeNode>
            .....


My Code behind:

[WebMethod(EnableSession = true)]
        public List<NodeData> GetTreeViewNodes(RadTreeNodeData node)
        {
            DataTable dt = Helper.ConfigurationHelper.GetCofiguration(node.Text);
            List<NodeData> nodes = new List<NodeData>();
            NodeData nodeData = new NodeData();
            foreach (DataRow dr in dt.Rows)




 foreach (DataRow dr in dt.Rows)
            {
                nodeData = new NodeData();
                nodeData.Text =  dr["DisclosureCode"].ToString();
                nodeData.Value = dr["DisclosureCodeId"].ToString();
                nodeData.ExpandMode = TreeNodeExpandMode.WebService;
                nodeData.CheckState  = TreeNodeCheckState.Checked;
                nodeData.Checkable = true;
                nodeData.Checked = true;

                nodes.Add(nodeData);


        public class NodeData
        {
            public string Value { get; set; }
            public string Text { get; set; }
            public TreeNodeCheckState CheckState { get; set; }
            public bool Checked { get; set; }
            public bool Checkable { get; set; }
            
            public TreeNodeExpandMode ExpandMode { get; set; }
        }



thanks in advance


<edit>
This post http://www.telerik.com/community/forums/aspnet-ajax/treeview/on-demand-loaded-non-checkable-nodes.aspx#673490
recommends the latest Telerik DLL 2008.3.1105.35 and that resolves the problem.. no wonder it was doing my head in.

I see the FindNodeByText and FindNodeByValue, have second boolean parameter ignoreCase.. unfortunalely with the latest DLL I can still produce the StackOverFlow
</edit>

Meaning Of Lights
Top achievements
Rank 2
 answered on 29 Dec 2008
1 answer
75 views
I wanted to have 2 different popup form templates when editing the radgrid contents. The reason is that on "Update" mode, I don't want users to edit some fields (editable on "new record" mode). Is there a way to do this?
Vlad
Telerik team
 answered on 29 Dec 2008
1 answer
139 views
Hi

i have a raddatepicker with skin="webBlue" . if i enter date like '22/23/5676'  in dateinput textbox accepting without any any validation, even it is allowing to enter alphabets . but i choose any other skin like Hay,Sunset, ... raddatepicker validating before i click go button .


Advance thanks if any help
Vlad
Telerik team
 answered on 29 Dec 2008
0 answers
103 views
Hello,

 I have a RadGrid and there are two template column and i am showing an confirm box on one column's image click.
  in grid another column is Filtered when i click on the Filtered text box and press enter key then it show me that confirm box that i have putted on the other column.
how can i do this when user click in the filtered text box then it should filter the grid if filtered text box is not empty.

my grid is filling in needDataSource event and i am using the default filtering not any server side filtering.


Thanks.
altaf
Top achievements
Rank 1
 asked on 29 Dec 2008
1 answer
491 views
hi

I have this code which was previouly in a Radgrid and the code works fine in the grid.

telerik:GridTemplateColumn HeaderText="Register" UniqueName="TemplateColumn">
            <ItemTemplate>
            <a href="#" onclick="openRadWindow2('<%#DataBinder.Eval(Container.DataItem,"CATID")%>'); return false;">Register</a>
            </ItemTemplate>
        </telerik:GridTemplateColumn>

But when i changed this code to

<

td class="style102">

 

 

<a href="#" onclick="openRadWindow2('<%#DataBinder.Eval(Container.DataItem,"CATID")%>'); return false;">Register</a></td>

 


which is now outside of a gird and became a hyperlink on its own in the page it gave me an error:
Compiler Error Message: BC30456: 'DataItem' is not a member of 'System.Web.UI.Control'

How do i pass parameter value using hyperlink since this hyperlink is no loner in a radgrid? Thanks
Vlad
Telerik team
 answered on 29 Dec 2008
1 answer
56 views
I have RadGrid on my page and doing batch updates for multiple rows of the grid. I want to highlight all the edited rows once updating operation completes successfully. How to highlight all the edited rows?
Vlad
Telerik team
 answered on 29 Dec 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?