Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
65 views
How do i add the normal filter icon with its drop down filters list (-greater then, euqal to, contains, not contains etc...) to a custom filter i implemented?
Maria Ilieva
Telerik team
 answered on 11 Feb 2011
1 answer
190 views
hi
what is the alternative for this infargistics line in telerik version,pl help me with this
Ultrawebgrid2.Rows[Ultrawebgrid2.DisplayLayout.ActiveRow.BandIndex].Cells[7]
Princy
Top achievements
Rank 2
 answered on 11 Feb 2011
1 answer
88 views
Hi There, 

I have a treeview that has around 1100 nodes, I've added a type ahead search for the treeview using onClientKeyPressingHandler on a textbox. I loop through all the nodes of the treeview returned by the get_allNodes() method and look for match by getting the node text using get_text(). This is working well in IE, but in Chrome, the get_allNodes is returning some empty nodes which hence are not being returned as matches, any suggestions/ideas on what I could be doing wrong? I'm including my javascript code i'm using to search. 

function FindAppendages(treeview, textSearch) {
 
    var radtree = $find(treeview);
 
    var nodes = radtree.get_allNodes();
 
    var subsetArray = new Array();
 
    for (var i = 0; i < nodes.length; i++) {
 
        var oNode = nodes[i];
 
        if (oNode.get_text().toLowerCase().match(textSearch.value.toLowerCase()) != null) {
 
            oNode.set_visible(true);
 
            var parent = oNode.get_parent();
 
            if (parent != null) {
 
                parent.set_visible(true);
 
                if (parent._text != undefined) {
 
                    subsetArray.push(parent.get_text());parent.set_expanded(true);
 
                }
 
            }
 
            parent = parent.get_parent();
 
            if (parent != null) {
 
                parent.set_visible(true);
 
 
 
                if (parent._text != undefined) {
 
                    subsetArray.push(parent.get_text());parent.set_expanded(true);
 
                }
 
            }
 
            parent = parent.get_parent();
 
            if (parent != null) {
 
                parent.set_visible(true);
 
 
 
                if (parent._text != undefined) {
 
                    subsetArray.push(parent.get_text());parent.set_expanded(true);
 
                }
 
            }
 
            parent = parent.get_parent();
 
            if (parent != null) {
 
                parent.set_visible(true);
 
 
 
                if (parent._text != undefined) {
 
                    subsetArray.push(parent.get_text());parent.set_expanded(true);
 
                }
 
            }
 
        }
 
        else {
 
            var match = false;
 
            for (var j = 0; j < subsetArray.length; j++) {
 
                if (oNode.get_text() == subsetArray[j])
 
                    match = true;
 
            }
 
            if (!match)
 
                oNode.set_visible(false);
 
        }
 
    }
 
}


Thanks,
Phani
Nikolay Tsenkov
Telerik team
 answered on 11 Feb 2011
1 answer
72 views
Hello,

I need to reload my RadGrid (with internal RadComboBox) after Modal Window close.
I try with AjaxUpdatedControl with RadGrid id and RadGrid.DataBind() method in RAM_AjaxManager method, but don't work!

Any ideas?
Thanks
M.
Jayesh Goyani
Top achievements
Rank 2
 answered on 11 Feb 2011
1 answer
81 views
Hello,
I am trying to use Radtooltip in ListView Controll but and set the pagesize=4. When the site is first time rendered, it shows correct result as well as tooltip according to product in listview (ListviewToolTip-Attached picutre); as soon as you hit Second page from DataPager control, it display next four items in line but does't change the tooltip. Tooltip yet refer to the products on first page it bounded to very first time of page execution.

Question : On clicking next page through Datapager, Why not Tooltip again bound itself with existing ( On Screen ) products (ListviewToolTip2-Attached Picture).

I have attached picture that shows first time execution. It works fine for first page but does't bound correct products for the second page.

Help Plz.

Adnan
 
Svetlina Anati
Telerik team
 answered on 11 Feb 2011
1 answer
93 views

hi
is there any alternative for this line

UltraWebGrid1.Rows[i].Cells[7].DataChanged

Prangadj
Top achievements
Rank 1
 answered on 11 Feb 2011
1 answer
40 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
413 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
119 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
68 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?