Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
404 views

I've been following https://demos.telerik.com/aspnet-ajax/editor/examples/validators/defaultcs.aspx to enable validation on my RadEditor control to make sure (1) it is not empty and (2) the entered content length is larger than a certain amount of characters.  The RadEditor control is on a (.ascx).  The validation happens when you click the update button.

It seems to be working when there are no text entered, but when I enter any text of any length it stills shows me the empty text message and clears the editor control text. 

<table id="" style="border-collapse: collapse; border: 0; width: 100%">
        <tr class="EditFormHeader">
            <td colspan="3">
                <b>Ticket Details</b>
            </td>
            <td>
                <telerik:RadButton ID="btnUpdateTicket" runat="server" ValidationGroup="ValidateInput" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>' CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'></telerik:RadButton>
            </td>
        </tr>

<tr>
            <td class="auto-style2">Notes:</td>
            <td colspan="3">
                <telerik:RadEditor ID="fldNote" runat="server" RenderMode="Lightweight" Skin="Metro" Width="98%" Height="200px" EditModes="Design" ContentFilters="RemoveScripts" >
                    <Tools>
                        <telerik:EditorToolGroup Tag="MainToolbar">
                            <telerik:EditorTool Name="FindAndReplace" />
                            <telerik:EditorSeparator />
                            <telerik:EditorSplitButton Name="Undo">
                            </telerik:EditorSplitButton>
                            <telerik:EditorSplitButton Name="Redo">
                            </telerik:EditorSplitButton>
                            <telerik:EditorSeparator />
                            <telerik:EditorTool Name="Cut" />
                            <telerik:EditorTool Name="Copy" />
                            <telerik:EditorTool Name="Paste" ShortCut="CTRL+V / CMD+V" />
                        </telerik:EditorToolGroup>
                        <telerik:EditorToolGroup Tag="Formatting">
                            <telerik:EditorTool Name="Bold" />
                            <telerik:EditorTool Name="Italic" />
                            <telerik:EditorTool Name="Underline" />
                            <telerik:EditorSeparator />
                            <telerik:EditorSplitButton Name="ForeColor">
                            </telerik:EditorSplitButton>
                            <telerik:EditorSplitButton Name="BackColor">
                            </telerik:EditorSplitButton>
                            <telerik:EditorSeparator />
                            <telerik:EditorDropDown Name="FontName">
                            </telerik:EditorDropDown>
                            <telerik:EditorDropDown Name="RealFontSize">
                            </telerik:EditorDropDown>
                        </telerik:EditorToolGroup>
                    </Tools>
                </telerik:RadEditor>
                <asp:RequiredFieldValidator ID="NoteValidator" runat="server" Display="Static" CssClass="validator" ControlToValidate="fldNote">Please add a note!</asp:RequiredFieldValidator>
               <%-- <asp:CustomValidator runat="server" ID="EditorLengthValidator" ControlToValidate="fldNote" Display="Static" CssClass="validator" ClientValidationFunction="TelerikDemo.checkLength">***Your note is too short!!***</asp:CustomValidator><br />--%>

 

If commented out the CustomValidator controls to eliminate it as an issue, so now it doesn't have to check the lenght. 

I'm using version 2018.3.910.45 of the ASP.NET AJAX controls.

I've gone through some of the thread, but not helped so far.

Peter Milchev
Telerik team
 answered on 27 Feb 2019
6 answers
1.4K+ views
Hi,
I want to remove the empty rows in exporting radgrid to excel file. See attached file. How to do it? Thanks.
Flemming
Top achievements
Rank 1
Veteran
 answered on 26 Feb 2019
5 answers
158 views

I have a telerik:RadScheduler control in my page. We can expand this slot by dragging from the bottom. Internally the appointment is getting changed. But while expanding, it is not displaying the shadow at the background. This issue is occuring in Internet Explorer, while it is working properly in Google Chrome. Can anyone please help me on this.

<telerik:RadScheduler ID="RadSchedulerReceivingBay" runat="server" GroupBy="Bay"
                  DataSourceID="ObjectDataSourceBookingScheduleItem" DataKeyField="BookingID" DataSubjectField="Vendor"
                  DataStartField="Start" DataEndField="End" Height="100%" 
                      Culture="en-GB" ShowAllDayRow="False" ShowDateHeaders="False" 
                      ShowFooter="True" ShowHeader="False" ShowNavigationPane="False" 
                      ShowViewTabs="False" MinutesPerRow="15"  
                      DayStartTime="05:00:00" Font-Size="8pt" 
                      onappointmentdatabound="RadSchedulerReceivingBay_AppointmentDataBound" 
                      onappointmentinsert="RadSchedulerReceivingBay_AppointmentInsert" 
                      onappointmentupdate="RadSchedulerReceivingBay_AppointmentUpdate" 
                      RowHeight="20px" 
                      StartInsertingInAdvancedForm="True"                       
                      onformcreating="RadSchedulerReceivingBay_FormCreating"
                      onformcreated="RadSchedulerReceivingBay_FormCreated"  
                      onappointmentdelete="RadSchedulerReceivingBay_AppointmentDelete" 
                      onclientappointmentmoving="OnClientAppointmentMoving" 
                      onclientappointmentdeleting="ResetTimer" 
                      onclientappointmentediting="ResetTimer" 
                      onclientappointmentinserting="ResetTimer" 
                      onclientappointmentmoveend="ClientAppointmentChangeConfirm" WorkDayEndTime="23:59:00" 
                      CustomAttributeNames="TimeStampString,IsBlocker" EnableCustomAttributeEditing="True" 
                      AdvancedForm-Modal="False" WorkDayStartTime="00:00:00" 
                      onclientappointmentresizeend="ClientAppointmentChangeConfirm" 
                      NumberOfHoveredRows="1" 
                      onappointmentcreated="RadSchedulerReceivingBay_AppointmentCreated" 
                      ondatabound="RadSchedulerReceivingBay_DataBound" 
                      onappointmentcommand="RadSchedulerReceivingBay_AppointmentCommand"
                       EnableEmbeddedSkins="true" EnableEmbeddedBaseStylesheet="true">

                      <AdvancedForm EnableCustomAttributeEditing="True" />

                    <ResourceTypes>
                        <telerik:ResourceType KeyField="ReceivingBayID" Name="Bay" TextField="Name" ForeignKeyField="ReceivingBayID"
                        DataSourceID="ObjectDataSourceBays" />
                    </ResourceTypes>

                    <AdvancedEditTemplate>                    
                    <uc2:BookingDetailControl ID="BookingDetailControl"  runat="server" Action="edit" />
                    </AdvancedEditTemplate>

                      <DayView WorkDayEndTime="18:00:00" />

                    <AdvancedInsertTemplate>
                    <uc2:BookingDetailControl ID="BookingDetailControl" runat="server" Action="insert" />
                    </AdvancedInsertTemplate>
                    
                  </telerik:RadScheduler>

Peter Milchev
Telerik team
 answered on 26 Feb 2019
7 answers
285 views
In footer of the gridview, I have some textboxs. When I use horizontal scroll,
then header and footer will move on following this horizontal scroll.
But when I use tab key to move to next textbox (instead of using horizontal scroll) then footer, header and items don't move on following.
Please help me to resolve this problem.
Thank!!!
Max
Top achievements
Rank 1
 answered on 25 Feb 2019
4 answers
267 views

maybe vessy help radwizard loop problem. please see below vessy

on last step - StepType="Complete" want to have button to start Wizard over client-side only please

 

this button in Complete step goes back to step 1 - RadWizard.get_wizardSteps().getWizardStep(0).set_active(true);

 

but step missing progress bar and navigation tools - please help

<h4 style="text-align: right;">Quieres añadir otra?</h4>
 
                                            <div style="float: right; padding-right: 25px;">
                                                <telerik:RadButton runat="server" Text="Añadir" Font-Size="Large" Width="100px" Height="65px" AutoPostBack="false" CausesValidation="false"
                                                    OnClientClicked="RadButtonAdd" />
                                            </div>

 

 

 

 

Vessy
Telerik team
 answered on 22 Feb 2019
1 answer
191 views

Hi,

could somebody give me an advice, how to manage if I need to know whether some RadTextbox has focus on not. I know, I can do it through onfocus and onblur client side events, but I want it to achieve through jQuery.

For now I found this link:

https://stackoverflow.com/questions/967096/using-jquery-to-test-if-an-input-has-focus

I tried to to use this $(mytelerikradtextbox).is(":focus") to check whether control has focus, but it still returns false even it has focus. Shouldn't I apply it on input child ?

Thanks for the right direction :-)

Vasssek

Vessy
Telerik team
 answered on 22 Feb 2019
2 answers
377 views

I have a RadGrid control in my web page(.aspx). It is displaying a list of data. First column of this grid is a link and when link is clicked a scheduler at the last side is updated. When the vertical scrollbar is at the middle or at the end and if a row is clicked the scrollbar is resetting to top, although the particular row is selected and the scheduler is updated as well. This issue is happening only in Internet Explorer. In Google Chrome the scrollbar is working properly. I have set the property SaveScrollPosition to True. Can anyone help me on this.

<telerik:RadGrid ID="RadGridRequests" runat="server" 
            AutoGenerateColumns="False" GridLines="None" 
            Height="520px"
            onitemdatabound="RadGridRequests_ItemDataBound" 
                onselectedindexchanged="RadGridRequests_SelectedIndexChanged"
                 EnableEmbeddedSkins="true" EnableEmbeddedBaseStylesheet="true">

            <ClientSettings EnablePostBackOnRowClick="True">
                 <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True">
                </Scrolling>
            </ClientSettings>

Pallav
Top achievements
Rank 1
 answered on 22 Feb 2019
4 answers
287 views
Hello,
  I've searched the forums but apparently I have the reverse problem of the majority. I have tried to implement reverse answers but to no avail.
  I have a RadComboBox implemented in a user control:

<div class="fiFilterTitleBar">
    <asp:Label ID="lblFIFilter" runat="server" CssClass="fiHeading floatLeft" Height="24px" BackColor="#26A9E0">Featured Insights</asp:Label>
    <telerik:RadComboBox ID="radComboBoxFIFilter" runat="server" Width="200px" AppendDataBoundItems="false" CssClass="floatRight zIndex5" AutoPostBack="true" ZIndex="5" DropDownCssClass="zIndex5" />
    <asp:Label ID="lblFIFilterBy" runat="server" AssociatedControlID="radComboBoxFIFilter" CssClass="fiFilterLabel floatRight">Filter By: </asp:Label>
</div>

This user control is then used in an ASPX page. The page is using a (non-Telerik, Cyrinx) menu system located in a header control which is located in a master page which the ASPX implements.

When the ComboBox DropDownList (.rcbSlide) is opened and then the menu system is activated, the DropDownList, but NOT the input box, stays in front of (covers) the menu system. I can confirm that the menu system has a "z-index: 1000;" set to it. In response (shown above) I tried to force all aspects of the RadComboBox to z-index:5. While I can confirm that the RadComboBox attributes are properly setting these style values (via Firebug) they appear to have no effect on who covers who so I still have this problem.

Can you please recommend other things that I might adjust to get the menu to overlay the ComboBox drop down list when it is open?

  Thanks much,

  Gregory
World WIde
Top achievements
Rank 1
 answered on 22 Feb 2019
2 answers
1.4K+ views

i have a radgrid that i have a buttoncolumn applied. the buttons work fine but i was curious if it is possible to only enable the button for the selected row?

If no rows are selected all buttons are shown, but disabled. when i click on a row the button on that row becomes enabled, and if i select another row, the button on the row i was on becomes disabled and the new row button is enabled?

i hope i am clear on this, im still very new to the telerik controls and c#. i have not been able to find anything on this matter.

 

Thanks!

Eli
Top achievements
Rank 2
 answered on 21 Feb 2019
1 answer
435 views

Hello,

I want show the upper limit line and a lower limit line on a Line Chart which gets its data from databinding to SQLDataSource.

The upper limit values and lower limit value is fixed for a given chart.

How do I achieve it?

Thank you

Marin Bratanov
Telerik team
 answered on 21 Feb 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?