Telerik Forums
UI for ASP.NET AJAX Forum
32 answers
385 views

Hi 

 

http://demos.telerik.com/aspnet-ajax/menu/examples/functionality/templates/defaultcs.aspx for this demo is possible for sub menu ? Can you give some example ?

Dhyan
Top achievements
Rank 1
 answered on 17 Mar 2016
7 answers
1.9K+ views
This problem vexxed me for a short while, because the message returned is pretty generic and the stack trace didn't really hep me pinpoint the issue.

I eventually isolated this (I thought) to a RadAjaxPanel control I had declared:

<telerik:RadAjaxPanel ID="radPanel" runat="server" HorizontalAlign="NotSet" 
    LoadingPanelID="radLoadingPanel">
        <asp:DropDownList ID="ddlTierID" runat="server" DataSourceID="BusinessUnitTypesDataSource"
            DataTextField="Name" DataValueField="RowID" TabIndex="7">
        </asp:DropDownList>
</telerik:RadAjaxPanel>

If I replaced this code block with the Microsoft flavor (which is what I'd tried to convert over to Telerik) like this:

<asp:UpdatePanel UpdateMode="Conditional" runat="server">
    <Triggers>
        <asp:AsyncPostBackTrigger ControlID="ddlUserRole" EventName="SelectedIndexChanged" />
    </Triggers>
    <ContentTemplate>
        <asp:DropDownList ID="ddlTierID" runat="server" DataSourceID="BusinessUnitTypesDataSource"
            DataTextField="Name" DataValueField="RowID" TabIndex="7">
        </asp:DropDownList>
    </ContentTemplate>
</asp:UpdatePanel>

then the page runs fine. However, I didn't understand why the Telerik panel should cause an issue, until I found this article:

http://www.telerik.com/help/aspnet-ajax/troubleshooting.html

At the top of the page containing the panel, I had this seemingly innocuous JavaScript snippet that simply set the focus to the first field on the form:

<script type="text/javascript">
    function pageLoad()
    {
        $get('<%=txtUserName.ClientID %>').focus();
    }
</script>

Based on the Telerik article, above, I wrapped this snippet in a RadCodeBlock and then the RadAjaxPanel code worked fine!

Hope this helps someone else!

Jon
Marin Bratanov
Telerik team
 answered on 17 Mar 2016
2 answers
828 views

Hello Everyone,

Can anyone suggest how to highlight the dropdown options upon mouse over. By default, I see a grey color highlighted when I hover on any of the options in the Dropdownlist. Please refer to the screenshot attached.

I would like to change the default color (grey) and give some brighter color for more visibility. 

Here are the additional details

ASP.NET version - Visual Studio 2013 Version 12.0
OS - Windows 8
exact browser version - IE >= 10
exact version of the Telerik product = 2009.1.527.35
preferred programming language = C#

Thanks in Advance!!

Kumar

 

Kumar
Top achievements
Rank 1
 answered on 17 Mar 2016
5 answers
99 views

Browser - safari version: 9.0.2 (11601.3.9)
Operation System  os version: OS X EI Captain version 10.11.2

I have a combobox, which uses treeview to show the data. 
When I click on combo box I get the following error


Failed to load resource: Could not connect to the server.
_initRightToLeftScriptResource.axd:8396TypeError: null is not an object (evaluating 'c.set_additionalQueryString')
_initRightToLeftScriptResource.axd:8395
initializeScriptResource.axd:8332
endUpdateTelerik.Web.UI.WebResource.axd:2:49050
endCreateComponentsTelerik.Web.UI.WebResource.axd:2:63458
_raiseInitTelerik.Web.UI.WebResource.axd:2:65559
_doInitializeTelerik.Web.UI.WebResource.axd:2:63974
(anonymous function)Telerik.Web.UI.WebResource.axd:2:65784
(anonymous function)Telerik.Web.UI.WebResource.axd:2:50713
pTelerik.Web.UI.WebResource.axd:2:558
_2PassTelerik.Web.UI.WebResource.axd:2:50697
FTelerik.Web.UI.WebResource.axd:2:1539
dTelerik.Web.UI.WebResource.axd:2:1898
cTelerik.Web.UI.WebResource.axd:2:1294
http://server/Ticketing/jquery.min .map Failed to load resource: the server responded with a status of 404 (Not Found)

Dimitar
Telerik team
 answered on 17 Mar 2016
2 answers
306 views

hi

I am applying a background color to all grid using this;

<style type="text/css">
      .RadGridHeaderStyle
        {
            background-color:#5e9cd2 !important;
            background-image:none !important;
            font-weight:bold !important;
            color:white !important;
        }

</script>

The header background color work fine but the font color on some columns don't seems to apply. I realised that it is because the column is sortable and the color won't change to white. How should make the sortable header font color to white? Thanks

Viktor Tachev
Telerik team
 answered on 17 Mar 2016
3 answers
96 views
does the RadComboBox support a view of 5 rows but have single select and option grouping?
or does any other control do that?
Veselin Tsvetanov
Telerik team
 answered on 17 Mar 2016
11 answers
375 views
Hi,

I have been working with the RAD AJAX tools for a while and I have noticed on some pages that controls change in appearance  when the page does an AJAX postback.  It is usually an unlrelated part of the page from that which is posting back.

If I had to take a stab at what is happening, I would guess that the AJAX postback was causing other Rad Controls to loose their styling.

Can anyone point me in the right direction here?
Pavlina
Telerik team
 answered on 17 Mar 2016
3 answers
97 views
Hello

I have radtabstrip that loads usercontrols in dynamic radpageviews. Each user control has different validation groups. On  validation failure i need to indicate user to go ahead and fix validation errors on other tab in wizard.
For e.g. if user goes from tab A to tab C and save it i need to display validation error on tab B. For that i need to either add Red Exclamation Mark or change the font of tab to red or tab the entire tab color to red.

Any idea how do i do that? I am using custom skins.

Regards
Mac
Veselin Tsvetanov
Telerik team
 answered on 17 Mar 2016
1 answer
197 views
1. SelectedIndex property not available in raddropdowntree
2. Can not loop on all items in raddropdowntree
3. Not able to set node as selected by selectedindex
4. Is any alternative solutions for above problems
Nencho
Telerik team
 answered on 17 Mar 2016
2 answers
176 views

Hello,

I have a RadComboBox with an associated required field validator. On Internet Explorer 11 (maybe other versions) an X appears that allows the user to clear the Combo. Please see the attached image if you don't know what I mean.

If the user clears the selection with the X and then clicks elsewhere (on another control for example) then the required field validator for the RadComboBox will activate. I only want this validator (and the other validators) to fire when the page is posted back.

There are a couple of the approaches that I have investigated but couldn't make get to work 100% correctly for various reasons are

1. Disable the validator temporarily with Javascript and re-enable later on. As per this thread Radcombobox clearSelection causes validation.
2. Use a custom validator.

The second one isn't really an option because the RadComboBox is used in an .ascx file that is re-used in a lot of places. Also, some attributes that are specific to a RequiredFieldValidator are required.

So, I am asking if there is a simple low impact way of preventing the validator from firing in this scenario?

Thanks in advance,
John.

Veselin Tsvetanov
Telerik team
 answered on 17 Mar 2016
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?