Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
452 views
hi,
I need to show only tokens in single html row. 
How can I remove the border of RadAutoCompleteBoxx control? Not the border of tokens!.
I tried with following css class "ReadOnlyAutoCompleteBox", but it didn't work.

[Markup]
<telerik:RadAutoCompleteBox ID="AutoCompleteBox1" runat="server" 
InputType="Token" Width="280" CssClass="ReadOnlyAutoCompleteBox" Enabled="false" >
<Entries>
<telerik:AutoCompleteBoxEntry Text="Token 1" />
<telerik:AutoCompleteBoxEntry Text="Token 2" />
<telerik:AutoCompleteBoxEntry Text="Token 3" />
</Entries>
</telerik:RadAutoCompleteBox>

[Css]
.ReadOnlyAutoCompleteBox {
    outlinenone!important;
    border-stylenone!important;
    border-width0px!important;
}


Thanks in advanced.
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
 answered on 02 Jun 2020
1 answer
333 views

Hi,

We might be missing something but when saving Gantt, containing Cyrillic fonts, those are not showing correctly. Could you please advice?

Fonts are showing correctly on the form.

Best regards, Mikko

Peter Milchev
Telerik team
 answered on 02 Jun 2020
2 answers
155 views

Hello,

Is there a way to persist the uploaded files after redirecting to another page and returning?

Setting the PostbackTriggers property doesn't work as this is not a postback but a redirect and return.

I tried using session to do this by saving the UploadedFileCollection to session and setting it back after returning from a redirect but I can't find a way to set the UploadedFiles property of the RadAsyncUpload control in code behind. I know this behavior is not supported due to browser security.

Please let me know if there is any other way to do this.

Thanks.

Gautam
Top achievements
Rank 1
 answered on 01 Jun 2020
3 answers
438 views

I have tried to get the validation to work with this control, but have failed miserably trying to implement as you have described here - https://docs.telerik.com/devtools/aspnet-ajax/controls/checkboxlist/functionality/aspnet-validators-support

It never validates on the client. I have two controls, one a textbox the other a checkboxlist. the textbox does fail correctly, the checkboxlist never fails. Using your code, i can still not get to happen what you describe - "To use the RequiredFieldValidator, you just need to set the ControlToValidate property to the CheckBoxList's ID. This will trigger validation when the user submits and the validation control will validate against the SelectedItem property and return the appropriate validation result."

1) Please help get this thing to validate correctly using the asp validators are described in your documentation.

2) Seems there is indeed an issue with the get_selectedIndex(), as it should have the correct index after the "checked" has been fired. use my code below and checkout what the alert sends back. At the checked changed event it should have the correct index, no? I even get "undefined" when after unchecking and checking a box. It should always be "-1" or a number of the first selected item index number, if checked. This issue breaking the validation?

 

 

<div style="float: left; width: 100%;">
    <telerik:RadCheckBoxList runat="server" ID="RadCheckBoxListMembers" AutoPostBack="false" RenderMode="Lightweight" ClientIDMode="Static">
        <ClientEvents OnItemCheckedChanged="OnItemCheckedChanged" OnLoad="function(sender) { radCheckBoxList = sender; }" />
        <Items>
            <telerik:ButtonListItem Text="All Family" Value="-1" />
            <telerik:ButtonListItem Text="Bob" Value="0" />
            <telerik:ButtonListItem Text="Mary" Value="1" />
            <telerik:ButtonListItem Text="Jimmy" Value="2" />
        </Items>
    </telerik:RadCheckBoxList>
 
    <asp:RequiredFieldValidator runat="server" ErrorMessage="Please select a member(s)" ValidationGroup="ValidationGroup"
        Display="None" ControlToValidate="RadCheckBoxListMembers" EnableClientScript="true" />
</div>
     
<div style="float: left; width: 100%;">
    <telerik:RadTextBox runat="server" ID="RadTextBoxName" Label="Name:" />
    <asp:RequiredFieldValidator runat="server" ErrorMessage="Please enter a name" ValidationGroup="ValidationGroup"
        Display="None" ControlToValidate="RadTextBoxName" EnableClientScript="true" />
</div>
 
<div style="float: left; width: 100%;">
    <telerik:RadButton runat="server" ID="RadButtonSubmit" CausesValidation="true" ValidationGroup="ValidationGroup" Text="Submit"
        RenderMode="Lightweight" AutoPostBack="true" Width="200px" Enabled="true" OnClick="RadButtonSubmit_Click">
        <Icon PrimaryIconCssClass="rbOk" />
    </telerik:RadButton>
</div>           
 
<div style="float: left; width: 100%;">
    <asp:ValidationSummary runat="server" ValidationGroup="ValidationGroup" />
</div>
 
<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
    <script type="text/javascript">
        //![CDATA[
 
        var radCheckBoxList;
 
        function OnItemCheckedChanged(sender, args) {                       
 
            alert(radCheckBoxList.get_selectedIndex());
             
        }
 
//]]>
    </script>
</telerik:RadScriptBlock>

 

 

 

Doncho
Telerik team
 answered on 01 Jun 2020
6 answers
668 views

A very very strange problem. I have RadContextMenu that are identical working on two page, but failing on another page. It was working fine and then just stopped giving a "contextMenu.show is not a function" error in javascript. 

Here is the code

<p>
    Touch the <asp:Button  OnClientClick="javascript:HelpExplainSelected(event)" runat="server" CssClass='EditP' UseSubmitBehavior="False"/> buttons to access menus for creating form fields.
</p>

 

I add RadCodeBlock on the suggestion of another post with a similar problem

<telerik:RadCodeBlock ID="RadCodeBlockMenu" runat="server">
<script type="text/javascript">
    function HelpExplainSelected(event) {
        var contextMenu = document.getElementById("<%= HelpExplainMenu.ClientID %>");
        contextMenu.show(event);
    }

 

<telerik:RadContextMenu ID="HelpExplainMenu" CssClass="RadContextMenu1" runat="server">
    <ExpandAnimation Type="None" Duration="0" />
    <CollapseAnimation Type="None" Duration="0" />
    <DataBindings>
        <telerik:RadMenuItemBinding   />
    </DataBindings>
    <Items>
        <telerik:RadMenuItem Text="Edit the Properties"  PostBack="False" ></telerik:RadMenuItem>
        <telerik:RadMenuItem Text="Add a Form Row for some Type" PostBack="False" ></telerik:RadMenuItem>
        <telerik:RadMenuItem Text="Insert a Form Row of Another Type"  PostBack="False" ></telerik:RadMenuItem>
        <telerik:RadMenuItem Text="Remove the Form Row"  PostBack="False" ></telerik:RadMenuItem>
   </Items>
</telerik:RadContextMenu>

 

This exact code works fine on two pages but on the third page, gives the function show() an error on contextMenu.show(event) that show is not found.

I tried re-starting Visual Studio, rebooting the computer. Solutions that have fixed other flaky Telerik problems.  I stare endlessly the code in the working and not working page, but it the same, except for the RadCodeBlock.

In the HTML generated for the menu (in all three pages),

<div tabindex="0" id="ctl00_MainContent_HelpExplainMenu">
    <div class="RadMenu RadMenu_MetroTouch RadMenu_Context RadMenu_MetroTouch_Context    RadContextMenu1">
        <ul class="rmActive rmVertical rmGroup rmLevel1">
            <li class="rmItem rmFirst"><a class="rmLink" href="#"><span class="rmText">Edit the Properties</span></a></li><li class="rmItem "><a class="rmLink" href="#"><span class="rmText">Add a Form Row for some Type</span></a></li><li class="rmItem "><a class="rmLink" href="#"><span class="rmText">Insert a Form Row of Another Type</span></a></li><li class="rmItem rmLast"><a class="rmLink" href="#"><span class="rmText">Remove the Form Row</span></a></li>
        </ul>
    </div><input id="ctl00_MainContent_HelpExplainMenu_ClientState" name="ctl00_MainContent_HelpExplainMenu_ClientState" type="hidden" />
</div>

 

HelpExplainMenu is a div.  How does the div object get a Show function?  What plumbing can be broken? Ideas on how to debug it? Every example I can find uses EventArgs with eventArgs.get_domEvent(); to get the event, could this be an issue?  If so how should a anchor supposed to open a RadContextMenu.

It was working and died with no apparent reason, will the other pages die in time too? Programming is not supposed to be like this.

Please do not ask for a project with the problem, off course it will not be possible since it does work fine elsewhere.

Please suggest how to debug this.

Doncho
Telerik team
 answered on 01 Jun 2020
2 answers
456 views
I’ve been moving along fine upgrading my software to it’s new version.  Everything worked fine a  few days ago (Earlier in the week).  I upgraded a few more pages to my software and when I went back to test some of the controls are not working.  Tabstrip, Grid (Hyperlinks), and ImageButton are now not working properly.  Tabstrip loads fine when you select tabs other than 0 index.  When you try to come back and select 0 index the mouse does not go into hover / selector (Pointing hand) mode. It stays in arrow mode.  It only does this for the first tab - 0 index.  Also RadImageButton and any hyperlink in RadGrid do the same thing.  I cannot navigate via the links anymore in RadGrid and the mouse does not go into hover / selector mode when hovering over any RadImageButton.  The CSS style is fine for the controls but the link element (Clicking) of the control no longer works.  It’s the same scenario for the controls throughout the entire software.  Visual Studio is not throwing any error.  Weird because it all worked earlier this week and not much has changed.  It’s also the same in whether I load it in Chrome or MS Edge.  Any ASP ImageButton or Hyperlink control works fine.  Has anyone else run into this recently?
Rumen
Telerik team
 answered on 01 Jun 2020
5 answers
575 views

Hi!

I want to switch an existing project based on the "Default" Skin from "classic" rendermode to "lightweight" rendermode. The problem is that this extremely changes the dimensions of the controls (RadTextBox, RadComboBox and so on) especially the height.

We need the compact size of the "Default" skin and decreasing the font size is not an option because to get the same height like we get using "classic" rendermoder the font will be quite too small.

You can try your demo and switch the rendermode to see what I mean:
http://demos.telerik.com/aspnet-ajax/textbox/functionality/render-modes/defaultcs.aspx?skin=Default

Any suggestions?

Rumen
Telerik team
 answered on 01 Jun 2020
1 answer
98 views

My RadGird allows filtering by column.

In IE 11, using keyboard only cannot move focus into filter button’s context menu.

In Chrome, using keyboard can move the focus into context menu, but it seems there's no way to cancel the operation (close the context menu without applying any filter).

Is there any way to enable good keyboard support for filter button's context menu?

Attila Antal
Telerik team
 answered on 01 Jun 2020
3 answers
145 views

Hi ,

 

I have a save button outside the grid i want to validate the Grid columns when button click , i have textbox , dropdown and auto autocompete textboxes columns,It should be like this link below,i am using kendo grid and required message should be like kendo popup for each field.Quick help asap appreciated!!!!

 

https://www.aspsnippets.com/Articles/Validate-TextBox-inside-GridView-using-jQuery-on-Button-Click-in-ASPNet.aspx

Nikolay
Telerik team
 answered on 01 Jun 2020
1 answer
322 views

 

We cannot get the client select column checkbox to style according to our needs on Chrome.  On IE 11, Edge and Firefox the style of the checkbox looks the way we want it.  However on Chrome the style shows up differently.   See attachment.  We are using a custom skin,  and have tried to force the checkbox style to look like IE 11/Edge/Chrome, however none of our attempts has corrected the styling.  We don't want to change the styles in our custom button skin (created on Telerik site).  Is there something special about the "GridClientSelectColumn" that makes is NOT like  a standard checkbox control for styling??

 

 

 

Doncho
Telerik team
 answered on 01 Jun 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?