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

Hi,

Does the latest version of Telerik UI for ASP.NET AJAX support drag/drop between two TreeViews on the same page? How about two Grids?

Thanks,

Rumen
Telerik team
 answered on 01 Apr 2022
26 answers
793 views
Dear All,
How can I set RadAutoCompleteBox readonly. I can not find which function support that.
Thank you very much. 
David
Top achievements
Rank 1
Veteran
Iron
 updated answer on 31 Mar 2022
1 answer
126 views

How do I trouble shoot an upload error I am getting on Azure. RadAsyncUpload works fine on my local machines but when deployed to the server I get

"Failed to load resource: the server responded with a status of 500 (Internal Server Error)"  & "Uncaught Error while uploading, HTTP Error code is: 500" 

 

 

 

 

Peter Milchev
Telerik team
 answered on 31 Mar 2022
1 answer
214 views

Hello,

I want to filter my RadDropDownTree using multiple strings delimited by a space.

I have modified a script but it isn't working quite right.

Note the pic below.  I want to match on both "balances" and "sspro" or "ssedge" or "ss.com"

 

When I add a space and an "s" then nothing is retrieved:

 

 

However, when I type in "balances t" I get some results but actually should get all lines that have "balances" and "t".  There should be a lot more results:

 

Here is the script I'm using:


 var $T = Telerik.Web.UI;
    Telerik.Web.UI.RadDropDownTree.Manager.prototype._filterNodes = function (text) {
        var nodes = this._embeddedTree.get_allNodes(),
            count = nodes.length,
            regEx,
            i;

       
        var EnteredText = text.split(" ");

        if (EnteredText[1] == null) {

            EnteredText[1] = "";
        }

        if (this._filter == $T.DropDownTreeFilter.StartsWith)
           /* regEx = new RegExp("^\\s*" + $T.RadDropDownTree.Manager._regExEscape(text), "im");*/
            regEx = new RegExp("^\\s*(?=.*" + EnteredText[0] + ")(?=.* " + EnteredText[1] + ").*$", "im");
        else
           /* regEx = new RegExp($T.RadDropDownTree.Manager._regExEscape(text), "gim");*/
            regEx = new RegExp("^(?=.*" + EnteredText[0] + ")(?=.* " + EnteredText[1] + ").*$", "gim");

       /* alert(regEx);*/

        for (i = 0; i < count; i++) {
            var currentNode = nodes[i];
            var matchIsFound;

            if (currentNode.get_level() !== 2)
            {
                matchIsFound = false;
                /*alert(currentNode.get_text());*/
            }
            else
            {                
                matchIsFound = this._matchNode(currentNode, EnteredText, regEx);
              //  alert(currentNode.get_text());

            }
            if (matchIsFound)
            {
                this._handleVisibleParents(currentNode);
                this._filteredVisibleNodes.push(currentNode);
            }
            else
            {
                this._handleHiddenNode(currentNode);
            }
        }

        this._hideNodes(this._filteredHiddenNodes);
        this._showNodes(this._filteredVisibleNodes);

        this._filteredVisibleNodes = [];
        this._filteredHiddenNodes = [];
    }

    

Thanks!

--Clark

Clark
Top achievements
Rank 1
Iron
Iron
 answered on 31 Mar 2022
1 answer
190 views

Hello,

I would like to display the filter results of only the 3rd level nodes of my radDropDownTree.

In the example below, I only want 3rd level nodes that have "web"  in their text field displayed.

I've marked out what I don't want to see.

Thanks!

--Clark

 

 

 

 

Clark
Top achievements
Rank 1
Iron
Iron
 updated question on 31 Mar 2022
0 answers
269 views

Hi Telerik Team,

In the application, we have disabled upload, delete and rename functions, but we still can drag and drop files. Is there any way can disable drag and drop files, please?

 


 

 

Regards,

Lan

lan luo
Top achievements
Rank 1
Iron
 asked on 30 Mar 2022
1 answer
77 views

Hi all,

 

I 'm looking to convert millis into the tooltip of a RadHtmlChart

 

The convertion work well on the xAxis.

I set the DataFormating in the code behind since a have dynamical number of serie ..

But it's doesnt work.

 

Also, looking for simple Label (unit) insertion bellow the xAxis and left to the yAxis. (like my sample)

 

Thanks in advance,

 

Didier

 

 

 

Vessy
Telerik team
 answered on 30 Mar 2022
1 answer
146 views

Hi,

In RadEditor I need to use radcolorpicker to add custom colors.  When we click "Add Custom Color" now its giving a popup and

we need to type the hex color code.

without doing that is there a way to use radcolorpicker after click the  "Add Custom Color".

 

Thank You,

Sahan

Rumen
Telerik team
 answered on 30 Mar 2022
1 answer
233 views

I'm wondering if there is more direct way to access the datasource values or at least the DataKeyValues or GroupByField values in a grouped grid from a button click event (not ItemDataBound).

The only thing I could piece together was a bit awkard...

- loop through group header items

- get child items for the group and do one loop through that list to access a dataitem

- then access GetDataKeyValue() method to get the key value for that particular group;

Accessing controls in the header template seems pretty straightforward with the .FindControl() method.

 


protected void btnSave_Click(object sender, EventArgs e) { foreach (GridGroupHeaderItem item in gridMain.MasterTableView.GetItems(GridItemType.GroupHeader)) { string sKey= "";

string sValue = ""; // is there a better way to get to GroupByField or DataKeyName value for the current group? var childItems = item.GetChildItems(); foreach (GridDataItem child in childItems) { GridDataItem childItem = child as GridDataItem; sKey = childItem.GetDataKeyValue("SomeDataKeyName") as string; break; // only need the first one }

// get stuff from group header template

if (item.FindControl("txtSomeValue") is TextBox txtBox)
            {
                sValue = txtBox.Text;
            }

// additional code here to do stuff with retrieved values

} }


Doncho
Telerik team
 answered on 29 Mar 2022
1 answer
149 views

We are using the radtreeview with a webmethod to populate nodes with persistloadondemandnodes set to true.   Once the user clicks an item on the tree context menu it calls the codebehind which modifies the data.   At this point we call DataBind on the tree expecting it to call back to the web method to retieve the updated data.  However it never calls back to server's webmethod.  The tree does refresh client side since has been added to the ajax manager - but refresh is just the same data as before context menu click.   

How do we get the treeview to refresh it's data after the server-side context menu handler changes the data in the source ???

Peter Milchev
Telerik team
 answered on 28 Mar 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?