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

If I mouse over my radeditor it says "Rich text editor with ID ....". I've included a screen shot.

How do I stop this from showing?

Thanks.

Rumen
Telerik team
 answered on 27 May 2021
1 answer
198 views

Hello,

We have a zip code entry text box that utilizes radmasktextbox to require entry of zipcode in us format. We'd like to support international postal code standards. I have created some JavaScript that in theory should switch the text box on client side to allow up to 10 of any characters when the nation isn't USA, but its simply not totally changing the text entry formatting. It can get to the point where it prints your characters in the box when you type, but when you blur it will strip out any chars that violate the old rules (US, 5+4). 

Not permitting changing of the mask in clientside easily seems to be a fantastically big oversite. how does one do this? 

code to  change the mask:


       funciton changeFormat(sender, args) {
            var unitedStates = ['US', 'USA', 'UNITED STATES', 'UNITED STATES OF AMERICA'];
            var i = 0;

            var mask = [];
            if (unitedStates.indexOf($find(countryControlId).get_value().toUpperCase()) < 0) {
                for (i = 0; i < 10; i++) {
                    mask[mask.length] = new Telerik.Web.UI.RadFreeMaskPart();
                }
            } else {
                for (i = 0; i < 5; i++) {
                    mask[mask.length] = new Telerik.Web.UI.RadDigitMaskPart();
                }
                mask[mask.length] = new Telerik.Web.UI.RadLiteralMaskPart('-');
                for (i = 0; i < 4; i++) {
                    mask[mask.length] = new Telerik.Web.UI.RadDigitMaskPart();
                }

            }

            $find(zipControlId).set__initialDisplayMasks(mask);
            $find(zipControlId).set__initialMasks(mask);
            $find(zipControlId)._setDisplayMask(mask);
            $find(zipControlId)._setMask(mask);
            $find(zipControlId)._length = 0;
            $find(zipControlId).clear();
}

Attila Antal
Telerik team
 answered on 26 May 2021
3 answers
155 views

Hi I am trying to add html table to the context via c#.

I am getting the value without the table.

Can anyone help me out .

StringBuilder sb = new StringBuilder();
               

                sb.Append(@"<table style='width: 100 %; '>");

                sb.Append(@"<tr>");
                for (int i = 0; i < 10; i++)
                {
                    sb.Append(@"<table style='width: 450px' > Val1 </ td > ");
                    sb.Append(@"<table style='width: 450px' > &nbsp;</ td >");
                    sb.Append(@"</tr>");
                    sb.Append(@"<tr>");

                    sb.Append(@"<table style='width: 450px' > Val2</ td > ");
                    sb.Append(@"<table style='width: 450px' > &nbsp;</ td > ");
                    sb.Append(@"</tr>");
                    sb.Append(@"<tr>");

                    sb.Append(@"<table style='width: 450px' > Val3 </ td > ");
                    sb.Append(@"<table style='width: 450px' > &nbsp;</ td > ");
                    sb.Append(@"</tr>");

                    sb.Append(@"<tr>");
                    sb.Append(@"<table style='width: 450px' > Val4 </ td > ");
                    sb.Append(@"<table style='width: 450px' > &nbsp;</ td > ");
                    sb.Append(@"</tr>");
                }

                sb.AppendLine(@"</ table >");

                RadEditor .Content= sb.ToString(); 
Rumen
Telerik team
 answered on 26 May 2021
1 answer
323 views

Hi,

I am using .Netframework -4.8

with apppool-4.0 and upgraded telerik controls from Q32015.3.1111.35 to R32020.3.915(BIN 45).

We are performing a sorting , attached screenshot has the details .so once we click on data, source we get a processing window and sort function gets completed.

But after upgrade of telerik controls, when we try to click on data, source ,name tabs after completing sorting also processing window continuously running. 

This issue is observed in Edge Browser with new(2020.3.915) and old Telerik controls(2015.3.1111.35) as well.

Attached errors observed in Console.

Can anyone please help on this issue?

 

 

 

Doncho
Telerik team
 answered on 26 May 2021
7 answers
5.2K+ views
I'm performing the rather laborious task of upgrading from asp.net q3 2007 to ajax q1 2010. One of the several issues I've faced so far is my standard asp.net buttons which require a clientside confirmation before the postback is fired.

Example, I have a reasonably simple page with a radscriptmanager, a radajaxmanager and a radgrid. On this page I have an asp.net standard button with events for onclick and onclientclick. The onclientclick is there to make sure the user meant to press the button and is simply "return confirm('Delete this email?');", but even pressing OK causes no postback. If I remove the onclientclick event then the postback happens fine (javascript for client code is in a radcodeblock). If I change the client event to just be 'return true;' the postback still does not happen.

Something about client side javascript (possibly because it's in a radcodeblock?) firing first is stopping the postback from the button happening.

Any ideas?
Thanks.
HrMeibom
Top achievements
Rank 2
Iron
 answered on 26 May 2021
2 answers
352 views

Hi

So I have RadListBox implemented into my page and I need to add some additional on keyDown functionality

I attached on OnClientLoad a keydown event to the .rlbGroup class - it is getting into the function and doing the stuff that I am telling it to however there are some issues:

1. I am unable to remove the .rlbActive class from previously selected item

so RadListBox.get_items().get_item(0).removeClass('.rlbActive') is not an option 

I tried using _activateItem() since I believe it is deactivating the current rlbActive in itself without success also. The DOM does not give me idea how to properly get rid of the active class at all.

Some assistance would be appreciated. It is an option to disable the rlbActive class completely - How can I do that without risking creating a bug in the control?

Self answered: 2. on clicking on the control I am unable to fire my the keydown function (I can fire it if I move focus to the control via TAB key)
What is the proper way to set focus on the RadListBox.get_items()?
What I have tried so far is using event 'focusing' in OnClientLoad attaching to .rlbGroup 
 

Any idea or even general information is welcome

Thanks

 

rhin
Top achievements
Rank 1
Iron
 answered on 26 May 2021
2 answers
328 views
I have an ASP.NET webforms application which has been in production for a while that uses a hierarchical menu structure to allow the user to select the business "level" they wish to operate on (Area, District, and Territory). Most people have used their desktops to access this application.

The menu is set up to allow people to click on the "area", or "district", or "territory" they wish to operate on. For example, they can click on the area to select the entire area, or they can hover over the area (on their laptop) to 'drill down' to the district level, and then click on a district, or hover over a district to then drill down to the territory level within the district to click on and select a territory.

A client side click event is present to process the selection.

The problem I am experiencing is on mobile devices one cannot "hover" over the menu item to 'drill down'. It is necessary to "click" on a menu item to drill down. However, when you click on the item, even if it is the little arrow on the right-hand side, the click event kicks off and you end up selecting a whole area (it is impossible to drill down further than the area level, since any time you "click" on the little arrow to attempt to drill down to the district level, the click event fires off and selects the area.

Can someone provide some guidance as to how to replicate the functionality I see on a laptop on a mobile device? Everything works great on a laptop or PC, because you can 'hover' with your mouse over the area/district menu options and you get the correct sub-menu fly-out to the right... but there's no such hover capability I'm aware of on an ios or android device.

Thanks!
ToltingColtAcres
Top achievements
Rank 2
Veteran
Iron
 answered on 25 May 2021
1 answer
347 views

I am trying to disable the button that causes post back and starts the file upload. This is to avoid user hitting the button twice and causing the file to be uploaded again.


<telerik:RadAsyncUpload 
                        RenderMode="Lightweight" runat="server" 
                        ID="RadAsyncUpload1" 
                        OnFileUploaded="serversideFileUploadedEvent"
                        OnClientFileSelected="OnFileSelected" 
                        OnClientFileUploadRemoving="OnFileUploadRemoving"
                        PostbackTriggers="uploadbutton" 
                        DropZones=".DropZone1"  
                        HideFileInput="true" />

<asp:Button CssClass="btn btn-primary" runat="server" ID="uploadbutton" Text="Upload" />    

 

I tried binding click event to the button for disabling the button on the client side but then the server side method does not fire.

Is there a way to disable the button or fire both client side and server side events?

Peter Milchev
Telerik team
 answered on 25 May 2021
0 answers
210 views

Workflow:

1) Client clicks on RadWizard Finish button
2) JavaScript code in either OnClientButtonClicking or OnClientButtonClicked performs some asynchronous background processing => file upload
3) RadWizard waits for JavaScript code to complete its operation (callback or something else – we are waiting in the OnClientButtonClicking or/and OnClientButtonClicked event handlers)
4) After successful operation RadWizard continues with the postback => OnFinishButtonClick server side event is called and data is saved in the database

Is it possible to achieve above-described workflow (or something similar) in the JavaScript and RadWizard ASP.NET AJAX control?

Michael
Top achievements
Rank 1
 asked on 25 May 2021
9 answers
1.6K+ views
First let me post the error I'm getting in logs:

RadAsyncUpload could not create App_Data folder. Ensure the App_Data's location is writable or set the TemporaryFolder property to a writable location.   at Telerik.Web.UI.RadAsyncUpload.CreateAppDataFolder()     at Telerik.Web.UI.RadAsyncUpload.EnsureDefaultTemporaryFolderExists()     at Telerik.Web.UI.RadAsyncUpload.OnPreRender(EventArgs e)     at System.Web.UI.Control.PreRenderRecursiveInternal()     at System.Web.UI.Control.PreRenderRecursiveInternal()     at System.Web.UI.Control.PreRenderRecursiveInternal()     at System.Web.UI.Control.PreRenderRecursiveInternal()     at ....

And here is something about my scenario. I have SharePoint application with some pages containing Telerik controls. Two of the pages contain RadAsyncUpload control. Everything is working fine except situation when I'm browsing two mentioned pages. I receive 403 forbidden error (above I posted what I found in logs). It's worth mentioning that I'm running web application with user account (local admin, not built-in account) as application pool identity and we have Form Based Authentication set up. Even if I try to access the page with administrator account it fails. I've tried to add write permission to app_data folder for app pool identity user but it didn't work. Any other clues what permissions should be set up?
Regards
Marek Witczak
Arijit
Top achievements
Rank 1
Iron
 answered on 25 May 2021
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?