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

I have to get the gidbound column values in a function called Update cell(i.e)
i have to acces the values of the grid in
private void Updatecell()
{
............
}
how to do it
Princy
Top achievements
Rank 2
 answered on 11 Feb 2011
3 answers
435 views
Hi all,

I'm developing a custom control based off the TreeView in ComboBox sample.
I now have a requirement to enable autocomplete searching inside the RadComboBox. I basically want to clone the existing Filter behaviour of the RadComboBox to search within the tree and display partial matches. It's clear that the existing Filter functionality doesn't work for a combobox containing a single TreeView item.

The behaviour I'd like to see is that on keypress, a filtered version of the TreeView appears as the autocomplete suggestions. It would be nice if the tree structure were preserved to give the user an idea of what areas of the tree their suggestions came from, but it's not a current requirement.

In my case, the contents of the TreeView are all loaded on the client side (I'm not using a web service to populate it as the largest possible tree will only contain a few hundred items, and usually far fewer), so I have everything I need on the client (and would prefer everything happen client side to keep it as zippy as possible).

My question (to anyone) is.. What's the best way to tackle this problem?

My markup currently looks like this:

        <telerik:RadComboBox ID="RadComboBox1" runat="server" EmptyMessage="Type to search"
            ShowToggleImage="true" Width="500" OnClientDropDownOpened="DropDownOpenedHandler"
            OnClientDropDownClosing="RadComboBoxClosing" AllowCustomText="true" ShowDropDownOnTextboxClick="false" 
            OnClientKeyPressing="ComboBoxKeyPressing" IsCaseSensitive="false" MinFilterLength="2" Filter="Contains">
            <ItemTemplate>
                <div id="div1">
                    <telerik:RadTreeView ID="RadTreeView" runat="server" SingleExpandPath="true" ShowLineImages="false"
                        OnClientNodeClicking="nodeClicking" OnClientNodeClicked="NodeSelected" OnInit="TreeViewInit"
                        OnLoad="TreeViewLoad" OnClientNodeExpanded="nodeChanged" OnClientNodeCollapsed="nodeChanged">
                    </telerik:RadTreeView>
                </div>
            </ItemTemplate>
            <Items>
                <telerik:RadComboBoxItem Text="" />
            </Items>
        </telerik:RadComboBox>

Thus far I'm able to display my treelist and make selections with the mouse. I suspect my implementation lies in writing Javascript for the ComboBox's OnClientKeyPressing event. I am not very Javascript-competent and am getting better with jQuery, so hope someone can give me a bit of advice on how best to proceed.

I think this is what I'll have to do in the ComboBoxKeyPressing event:

function ComboBoxKeyPression(sender, args){
    if (text in combobox < number of chars to trigger autocomplete)
      return;
   if (text in combobox = empty){
      MakeAllTreeNodesVisible();
      CloseComboBoxDropDown();
      return;
   }
   // else apply filter to tree
   var searchText = text entered by user;
   foreach(TreeNode in tree)
      if (node text contains my search keyword)
         show node;
      else
         hide node;

   // iterate through tree and trim 'empty' internal nodes (need to recurse to all child levels)
   foreach (TreeNode in tree)
      if (node contains children but none are visible)
         node.hide();
      else
         node.expand(); // so it's visible in the autocomplete list
}

This seems... Expensive and a bit hokey to performs on every keypress.

Can anyone comment as to a better solution, an existing example, or any resources that might make this easier?

I did look at the jQueryUI Autocomplete plugin but didn't think there was an effective way I could integrate it into the TreeView that is essential to this user control.

Thanks for any feedback!
Veronica
Telerik team
 answered on 11 Feb 2011
2 answers
123 views
asynupload disappear after postback but its still there when click on position its appear again this occur today after telerik update to new version
any idea?
sener
Top achievements
Rank 1
 answered on 11 Feb 2011
3 answers
71 views

Hello,

I wonder if is it possible to extend existing smart-tag and/or designer verbs of any Rad control with some custom property or link and how can I achieved this?

Thanks,
Jag

Shinu
Top achievements
Rank 2
 answered on 11 Feb 2011
1 answer
104 views
Hi,
I am using RadTreeView and dynamically we are enabling disabling Nodes based on condition. I observed that if disable a node which is also a parent node, it disables Expand/Collasp functionality for that node, This is not what I want. User should be able to Expand/Collasp node but should not able to select it.
 
Any solution for how to make Node Expand Collasp when Node.Enabled = false;

Thanks,
Yogesh
Princy
Top achievements
Rank 2
 answered on 11 Feb 2011
1 answer
76 views

Requirements

RadControls version Asp.net Latest version
.NET version

framework 4.0
Visual Studio version

2010
programming language

Vb.net
browser support

all browsers supported by RadControls


Hello,

I added the radcombobox to my webpage, it filters nicely the input i give it from the database. Now i would like to get the id from the item the radcombobox selects. Like for example
Customer10 - 1
Customer50 - 2

Is there a way to add an invisible field to the combobox, where i can add the id and fetch it, but not show it to a user?

Thanks in advance,
Princy
Top achievements
Rank 2
 answered on 11 Feb 2011
4 answers
334 views
Hai

I am exporting a grid with minimum 5 Columns. Two of these columns are having number data an they are aligned to right. When i am exporting the grid to excel the numbers are aligned to right. But in case of word and pdf the values are aligned at the left. How can i align this number values to right in PDF and Word?


Thanks
Lakshmi Thangaraj
Top achievements
Rank 1
 answered on 11 Feb 2011
12 answers
217 views
I am adding the rows to the hierarchical grid programmatically from a collection. Can I edit the rows in the detail table in-line? do you have any examples?

Raja
RJ
Top achievements
Rank 1
 answered on 11 Feb 2011
2 answers
46 views

Hi, 

I have a grid data of which is loaded during Page_Load. And I have also DetailTables with telerik:GridTableView which gets data from DB when the row is expanded. It works, but one thing is it the Page goes to top when the child table is loaded, I want it to stay showing expanded row. How  to resolve it?

And how to add select button in child table?

tnx

Kanat
Top achievements
Rank 1
 answered on 11 Feb 2011
4 answers
75 views
Hi,
if my parent id is 0 for root level,how can i specify treelist1.filterexpression =0..is this option is available in tree list?
zxp
Top achievements
Rank 1
 answered on 11 Feb 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?