Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
335 views
This problem is difficult to describe, so bear with me.

I have a user control that I built, that contains a RadAjaxPanel along with a RadAjaxLoadingPanel and some other controls.  I then have an aspx page that contains another RadAjaxPanel and RadAjaxLoadingPanel.  I have wrote some server side code that will add the user control to a panel on the page dynamically when a button within the aspx page's RadAjaxPanel is clicked.  The panel that the control gets added to has been delegated as an UpdateControl in the RadAjaxManager, so as to avoid a complete postback.  I have made sure to write the server side code, so that the user control's ID and all of its containing ctrl's ID's are unique with an incremented number on the end.  This however is not preventing a javascript runtime errors from popping up when I test this in debug.  The errors are as follows:  

"Sys.InvalidOperationException: A control is already associated with the element."
"Sys.InvalidOperationException: Two components with the same id 'dynamicRADAJAXPanelID' can't be added to the application."

I have checked all the control ID's and none are the same.  The web page function properly, and does add the controls dynamically, but still throws the exception.  If I ignore the exceptions, the page renders and functions properly.

If anyone knows of any issues with adding RadControls dynamically, or with adding controls dynamically in an AJAX postback rather than a full postback, please help me out.  If you need to see the code, let me know. 

Thanks.
Richard Nash
Top achievements
Rank 2
 answered on 21 Dec 2009
1 answer
135 views
Hi,

We've just migrated from ComponentArt Menu to Telerik Menu because of client requirenent for two features: Keyboard Access and Multiple browsers support.
We've a fixed horizontal Menu with 6 static MenuItems, out of which, only two have sub-menus. (Menu_Usage.png)
The requirement is that these links should be accessible via Keyboard using Shortcut Keys. This works prefectly with IE - pressing [Alt + <Shortcut Key>] sets focus on the right Menu Item and we can traverse through other Menu Items using 'Tab'-key.
But with Firefox, pressing [Shift + Alt + <Shortcut Key>] doesn't set the focus on the first Menu Item - it makes a click on the first Menu Item! Result is that traversal is not possible at all, as using shortcut keys immediately opens the page by clicking the hyperlink.

I've attached two snapshots from the Telerik Demo opened in IE and FF, with slight code modification to enable Shortcut Keys on one of the Demos. IE - all is fine, but using ShortCut Keys in FF activates (and clicks!) the MenuItem, and navigation via keyboard doesn't work anymore.
FYI, this is the default behavior in Firefox for Hyperlinks
(refer to:   http://kb.mozillazine.org/Accessibility.accesskeycausesactivation)

But I need a solution/workaround. Any ideas?
Thanks in advance.

Best Regards,
Veenu Munjal 
Yana
Telerik team
 answered on 21 Dec 2009
1 answer
198 views
Hi!

I've simple question: Is it possible to create or fill nested table on client side? Even if columns are specified or not.

I need to create nested table view after row click and expand it. All things should be done on client side, RadGrid control will get data from web service.

Any help is appreciated.
Princy
Top achievements
Rank 2
 answered on 21 Dec 2009
1 answer
67 views
Find and replace is working properly in Rad Editor version 2009.2.701.35. Please suggest.

Thanks
Praveen Tomar
Dobromir
Telerik team
 answered on 21 Dec 2009
2 answers
141 views
Greetings,

    I have a grid in which I am doing some RequiredField validations. I also have a single CustomValidator that tests if the specific value already exists in my DB. I only want the custom validation to happen when I am inserting new records. How do I check in my ServerValidation method, which state the grid is in. i am still learning this stuff so please be patient with me.

Here is the the grid column that I am trying to validate.
<telerik:GridTemplateColumn DataField="EID" HeaderText="EID" UniqueName="EID"
    <ItemTemplate> 
        <asp:Label runat="server" ID="lblEID" Text='<%# Eval("EID", "{0}") %>'></asp:Label> 
    </ItemTemplate> 
    <EditItemTemplate> 
        <telerik:RadTextBox runat="server" ID="tbEID" Skin="Office2007" Width="158" 
            Text='<%# DataBinder.Eval(Container, "DataItem.EID") %>'
        </telerik:RadTextBox> 
        <span style="color: Red">*</span> 
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="tbEID" 
            ErrorMessage="EID is required" runat="server"></asp:RequiredFieldValidator> 
        <asp:CustomValidator ID="EIDValidator" ControlToValidate="tbEID" OnServerValidate="CheckEID" 
            ErrorMessage="This user already exists" runat="server"></asp:CustomValidator> 
    </EditItemTemplate> 
</telerik:GridTemplateColumn> 

and the Validation in the code-behind
protected void CheckEID(object source, ServerValidateEventArgs args) 
    DataSet ds = new DataSet(); 
    SqlParameter[] param = new SqlParameter[1]; 
 
    param[0] = ExpertProvider.SqlDB.MakeParameter("@EID", args.Value); 
    ExpertProvider.SqlDB.RunProcedure("Database.Expert.ConnectionString"
            "HSOExpertSystem_Admin_Users_Get_User", param, ref ds); 
 
    if (ds.Tables[0].Rows.Count > 0) 
    { 
        args.IsValid = false
    } 
    else 
    { 
        args.IsValid = true
    } 

I'd be grateful for any assistance. Thanks


Thomas Frohe
Top achievements
Rank 1
 answered on 21 Dec 2009
1 answer
90 views
Hi,

I want to add spellchecker in my rad editor.
I have used
Tools file declaration in XMl file as mentioned below.
<tool name="AjaxSpellCheck" shortcut="F7"/>
On using the tool the Spell check  icon gets displayed but the icon is not as the one what we see on using the old Version(a little Blurred).

Please help me to solve this issue.

Note:
When i used the Old version the Icon for the spellchecker in my rad editor was displaying properly( i.e as expected).
Whereas when  used the updated Version i am getting this issue.
Martin
Telerik team
 answered on 21 Dec 2009
6 answers
173 views
I have an issue where I am using the RadFileExplorer in a dialog on a web page. When the control is added to the page and it is always visible, the control width resizes according to its containing div as expected. However if the control is loaded and subsequently resizes accordingly, then it's containing div is made invisible, the window is then resized and the the div is made visible again the RadFileExplorer's width remains the same as when it was initially loaded.

Is there anyway I can work around this issue so that the control can be resized when its containing div is made visible with an api call for example, or something else?

I have replicated this issue by creating a div and placing the RadFileExplorer control within the div, then wiring up an anchor element to to toggle the display (using jquery), and then resizing the window.

Any help would be greatly appreciated.

Many Thanks
Fiko
Telerik team
 answered on 21 Dec 2009
2 answers
116 views
Hi

I've the situation, when I have to explore folder, which is located on the server, differ from my site's server. There is an opportunity to use  WebDAV-protocol fo this. Is it possible to do with File Explorer? Can you tell me, please, how it can be done?

Best regards, John

John John
Top achievements
Rank 1
 answered on 21 Dec 2009
2 answers
156 views
Hi,

Whenever I perform grouping on a column , alignment of group header is not right.
I've tried to access GroupHeaderItem on PreRender and set VerticleAlignment to 'Middle'
....but of no use.(Please refer attached snapshot - GroupUI.png)
sushma lochab
Top achievements
Rank 1
 answered on 21 Dec 2009
1 answer
140 views
Hello,

I noticed that there is a Telerik.Pdf namespace, with a class called PdfDocument. The basic API documentation says the class is " A class that enables a well structured PDF document to be generated."

I just wondered if there was any documentation or examples of how someone were to go about generating such a document using that class.

Thanks!
Daniel
Telerik team
 answered on 21 Dec 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?