We are using Telerik RadEditor control in our project and having some problems with its integration with our user documents storage engine. We've implemented custom content provider for Telerik image manager and it shows correct documents in dialog. But in doesn't switch between images while selection. You can see this on this picture. We've tested this behaviour on the blank ASP.NET page without any additional CSS or JS. Rad editor tag could be found below. Please help! Why do this could happen?
<telerik:RadEditor ID="radEditor" runat="server"
ToolbarMode="ShowOnFocus"
ToolsWidth="402"
EditModes="Design"
ToolsFile="~/RadEditor.xml"
Skin="Default">
<ImageManager ViewPaths="IMAGES" EnableImageEditor="False" ContentProviderTypeName="FileStorageContentProvider, App_CODE" />
</telerik:RadEditor>
Does it work as intended without your ContentProvider? I'm wondering if the logic in your contentprovider is causing the issue. I don't see anything out of the oridinary from your control properties.
Thanks to FiveTools! The issue was in content provider. Full path to item (including item name) should be passed to the 'location' parameter of the FileItem constructor. Otherwise selection would be broken.
Related
I am creating a simple DotNetNuke module and every time I add a control that contains ajax it somehow interferes with the edit page menu. The control in question is one from Syncfusion and it is the numeric textbox.
The page and the menu functionality works well as long as I use the standard Microsoft user controls. For example if I change the ajax numeric textbox for the asp.net or the html one then it works well. As soon as I add the ajax textbox then the edit page menu does not work.
Has anyone else experienced this issue?
Additional information: The Syncfusion control does not require any specific jQuery version.
There is no error logged on the DNN event viewer. I have been trying with FireBug to follow the tracks but it reveals nothing.
I have attached the screenshot to help visualize the issue.
This happens because of jQuery conflicts. The syncfusion controls load their own jQuery library. To avoid issues within your module add a key to the appSettings section of the DNN web config file:
"SFjQueryLoad" value="false"
This will cause the control to use only the jQuery library provided by your DNN website.
What are you doing?
Using a RadComboBox, I'm hiding items from the user view under certain conditions.
What's the problem?
The combo items hide perfectly, however, when I click the combo box and then click anywhere else on the page (in other words, loose focus after focusing on the combobox) all the items I have hidden become visible again.
What else have you tried?
Thinking maybe I am not using the Telerik RadCombo Client Side API correctly, I decided to check whether deleted or disabled items would also magically re-appear when focusing and unfocusing from the RadComboBox.
The result; this issue only happens when hiding items, not when deleting or disabling RadComboBox items.
Demo of problem
For clarity and convenience, I've setup a page which very simply demonstrates the problem.
Download TestRadComboItemHide.zip and extract TestRadComboItemHide.aspx.
Place this ASPX into a website/webapp project and run ensuring you have telerik dll in the bin or Telerik installed on your dev computer.
Additional info
I've requsted assistance on Telerik support forums. (24 hours ago,
nothing helpful response as yet)
Using RadControls for ASP.NET AJAX Q1 2010: 2010.1.415.40
The work around to the problem is posted on the telerik forums. The solution was provided by another forum member, not Telerik.
This could be an amazingly dumb question, but ....
I don't think a standard ASP.NET dropdownlist has a "copy" function when using the context menu or CTRL-C, but a colleague insists it does and he's seen it on other sites.
The website we've written doesn't allow copy, so if the dropdownlist does allow it, what is the property to enable it?
This is standard ASP.NET control, not using javascript or any special voodoo.
I would ask your colleague to provide an example.
The standard <asp:DropDownList /> control renders to the client as a standard HTML <select /> element which does not provide copy functionality via CTRL-C or a context menu.
There is no property to enable/disable copying via an HTML <select /> element. Whenever I want to copy something from these, I have to do it from "view source".
No, I don't think so... But there's one control which may have all the functionality you want
Have a look at this:
http://www.asp.net/ajaxlibrary/AjaxControlToolkitSampleSite/ComboBox/ComboBox.aspx
I have created UserControl that contains a textbox and a restricted length validator for that textbox.
I'm adding user controls dynamically via UpdatePanel to my Parent WebForm. And the problem is that Validator just won't work. It just won't trigger.
I work on .net 3.5.
Does anyone have any clue what is happening and how can I make this validator work.
I have face similar problem and my validator in the detailsview-->updatepanel-->Validator
Check this thread for details
On the Client Click I have enable validator using javascript function
ValidatorEnable(document.getElementById('<%=rfv.ClientID%>'), true);
I too faced such an issue. I was using .Net 3.0 and VS2005. I referred to this problem discussion and the solution and could solve my issue. You too can refer the same.
As far as I understand it you can't add controls dynamically as this changes the page structure and .net gets confused. Instead you have to have all controls loaded "onLoad" and then simply change their visible flag to show or hide them as needed.
This way .net can keep track of them all and is happy.
When I use the Visual Studio menu Tool -> Generate Local Resource, it changed aspx file by adding meta attributes to controls. But it doesnt do so for user controls that I have created.
For example, If I have used a control in the page
<myControl:SpecialLabelControl ID="myLabel" runat="server" Text="Localize Me!" />
I want "Localize Me!" to go in the resource file and a meta attribute added to the SpecialLabelControl.
How can I do this?
How does the tool create resource strings for built in controls automatically? Does it read an attribute of the property? How can I make the tool do the same to my control?
Firstly, make sure 'Text' is a publicly accessible property on your control.
Add [Localizable(true)] above the declaration, as shown in the example on this page
This will tell the IDE that this property is supposed to be picked up by resource files, and Tools -> Generate Local Resources will do the rest!
EDIT - after further research I came across this article (and excerpt from a book). It seems that UserControls you created with publicly accessible properties can't be hit by the GLR tool :(
The ones I've worked on before were classes I created as '.cs' files, not user controls, I suppose.
Add it manually into the resource file as:
myLabel.Text
Then change the control to:
<myControl:SpecialLabelControl ID="myLabel" runat="server" meta:resourceKey="LiteralIdentifyBody" />