Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
700 views
Hi,

When I paste the value "12,234" into the Numeric Input box (see below), the control thinks that the comma is a decimal place. This is very confusing for our users, as they have to remove the decimal place. How can I fix this?

Thanks,
Tim

<telerik:RadNumericTextBox ID="txtSalaryTo" runat="server" ShowSpinButtons="true">  
    <NumberFormat DecimalDigits="0" DecimalSeparator="." GroupSeparator="," GroupSizes="3" AllowRounding="false" /> 
    <IncrementSettings Step="1000" /> 
    <ClientEvents OnKeyPress="KeyPress_Salary" /> 
</telerik:RadNumericTextBox> 

George Perley
Top achievements
Rank 1
 answered on 22 Mar 2010
1 answer
196 views

Hi
    i am exporting radgrid, i need to exclude pirticula column..how do i do that?

Regards
chennaiah
Daniel
Telerik team
 answered on 22 Mar 2010
1 answer
113 views
Hi all,

I have a column in my radgrid called 'academic year' with values '01/02', '02/03', 03/04'..... etc

When I export to CSV, the above values become '01-Feb', '02-Mar', '03-Apr' .... etc.

Instead of exporting the value as  text, it is considering it as date. Could you  please suggest how can I solve this issue.

Thanks
Daniel
Telerik team
 answered on 22 Mar 2010
2 answers
166 views

I have been having difficulty getting my custom styles to apply to the Paragraph Styles dropdown in the RadEditor control within a Sitefinity website.
 

I have declared my H1, H2, H3, H4 styles in an external stylesheet in ~/Sitefinity/Admin/ControlTemplates/radeditor.css.

I have also added those same H1, H2, H3, H4 styles to the ~/Sitefinity/Admin/Themes/Default/AjaxControlsSkins/Sitefinity/EditorCssFile.css file. 

In the ~/Sitefinity/Admin/ControlTemplates/EditorToolsFile.xml, I have added the following:

  <cssFiles> 
   <item name="~/Sitefinity/Admin/ControlTemplates/radeditor.css" /> 
  </cssFiles> 
    
  <paragraphs>    
   <paragraph name="Normal" value="&lt;p>" />    
   <paragraph name="&lt;H1>Heading 1&lt;/H1>" value="&lt;H1>" />    
   <paragraph name="&lt;H2>Heading 2&lt;/H2>" value="&lt;H2>" />    
   <paragraph name="&lt;H3>Heading 3&lt;/H3>" value="&lt;H3>" />    
   <paragraph name="&lt;H4>Heading 4&lt;/H4>" value="&lt;H4>" />    
  </paragraphs>    
 

I even added the .reDropDownBody h1, .reDropDownBody h2, .reDropDownBody h3, and .reDropDownBody h4 styles to both the ~/Sitefinity/Admin/ControlTemplates/radeditor.css and the ~/Sitefinity/Admin/Themes/Default/AjaxControlsSkins/Sitefinity/EditorCssFile.css files, as recommended in this thread

The styles are applied appropriately to the window of the editor, but not to the dropdown. (See attached images.) 

What am I missing?

Thanks for your help.

 

Christine
Top achievements
Rank 1
 answered on 22 Mar 2010
2 answers
89 views
Using IE 8. (Dont know if this happens in others)
When I click on edit to open the popup frame to edit the item the Popup window always loads at the top of the grid even if you select edit mutiple pages down (IE grid has template rows thus each item takes up alot of space).
Is there any way to make the popup window load at the top of the row I just selected to edit?
Jyothi Nattava
Top achievements
Rank 1
 answered on 22 Mar 2010
1 answer
184 views
I know this subject has been commented upon and discussed ad infinitum, but I have not run across anyone asking the question, "Is there a way to break up a large dataset into pieces for contiguous download to the client?"  By this, I mean, is there anything in the Export2Excel API that will facilitate such functionality?  This is imperative for datasets with more than 65k records (Excel's row limit).

tia,
Mark
Daniel
Telerik team
 answered on 22 Mar 2010
6 answers
238 views
I am using ASP.Net Ajax Q3 2009 SP1.

I'm sure that an earlier release of RadScheduler wrapped the subject text, but this does not seem to be the case now.

I have both the Subject and additional text in templates:

<telerik:RadScheduler ID="rsc" runat="server" StartEditingInAdvancedForm="False" 
                    DataEndField="End" DataKeyField="ID" DataStartField="Start" DataSubjectField="Subject" 
                    OnClientAppointmentInserting="AppointmentInserting" OnClientAppointmentEditing="AppointmentEditing" 
                    CustomAttributeNames="Notes,ProjectID,OutOfOffice,Flexitime,ParentFlag,ParentID"  
                    EnableCustomAttributeEditing="True" 
                    MonthVisibleAppointmentsPerDay="6" Height="100%" 
                    Width="100%" DayHeaderDateFormat="dddd dd MMMM yyyy" Style="top: 0px; left: 0px" 
                    ValidationGroup="RadScheduler1" HoursPanelTimeFormat="h mm tt"  
                        EditFormDateFormat="dd/MM/yyyy" EditFormTimeFormat="HH:mm"  
                        meta:resourcekey="rscResource1" SelectedDate="2010-01-06"
                    <AdvancedForm EnableCustomAttributeEditing="True" /> 
                    <Localization ConfirmDeleteText="Are you sure you want to delete this entry?"  
                        ConfirmDeleteTitle="Confirm Delete" /> 
                    <TimelineView NumberOfSlots="7" UserSelectable="False" /> 
                    <DayView HeaderDateFormat="dddd dd MMMM yyyy" /> 
                    <MonthView VisibleAppointmentsPerDay="6" /> 
                    <AppointmentTemplate> 
                        <div style="text-align: center"
                            <%#Eval("Subject")%> 
                        </div> 
                        <hr /> 
                        <%# Eval("Notes") %> 
                    </AppointmentTemplate> 
                </telerik:RadScheduler> 

My customers are now complaining that long text in either fields does not word wrap but is split in the middle of words.  

Is there anything I can do to implement word wrap within the template?

David Penny
Peter Briggs
Top achievements
Rank 1
 answered on 22 Mar 2010
1 answer
143 views
Hello ,

i would like to know how to validate RadFileUpload which is inside the FormTemplate of EditFormSettings in rad grid .

i wonder if this could be possible and i was not able to find any similar post of my kind of issue.

i would like to know the client side validation and server side validation of it .

i have pasted the code which am using right now ,  you can see for the control ID -  RUPhoto

please advise your ideas.

<telerik:RadGrid ID="RadGridHodesTeam" runat="server" GridLines="None" AllowPaging="true" 
                    EnableEmbeddedSkins="false" PageSize="4" OnNeedDataSource="RadGridHodesTeam_NeedDataSource" 
                    Skin="Office2007" OnPreRender="RadGridHodesTeam_PreRender" OnInsertCommand="RadGridHodesTeam_InsertCommand"
                    <PagerStyle Mode="NextPrevAndNumeric" /> 
                    <MasterTableView TableLayout="Auto" DataKeyNames="ID,Name,Title,OfficePhone,Extension,SecondPhone,Extension1,Fax,Email" 
                        CommandItemDisplay="TopAndBottom" ShowHeader="false"
                        <ItemTemplate> 
                            <%# (((GridItem)Container).ItemIndex != 0)? "</td></tr></table>" : "" %> 
                            <asp:Panel ID="ItemContainer" CssClass='<%# (((GridItem)Container).ItemType == GridItemType.Item)? "item" : "alternatingItem" %>' 
                                runat="server" Height="200px"
                                <div class="itempadding"
                                    <table> 
                                        <tr visible="false" style="display: none;"
                                            <td> 
                                                <b>Id:</b></td
                                            <td> 
                                                <%#Eval("ID")%> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td> 
                                                <b>Name:</b></td
                                            <td> 
                                                <%#Eval("Name")%> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td> 
                                                <b>Title:</b></td
                                            <td> 
                                                <%# Eval("Title")%> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td> 
                                                <b>Phone:</b></td
                                            <td> 
                                                <%# Eval("OfficePhone")%> 
                                            </td> 
                                        </tr> 
                                        <tr visible="false" style="display: none;"
                                            <td> 
                                                <b>Extension:</b></td
                                            <td> 
                                                <%# Eval("Extension")%> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td> 
                                                <b>Mobile:</b></td
                                            <td> 
                                                <%# Eval("SecondPhone")%> 
                                            </td> 
                                        </tr> 
                                        <tr visible="false" style="display: none;"
                                            <td> 
                                                <b>Extension:</b></td
                                            <td> 
                                                <%# Eval("Extension1")%> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td> 
                                                <b>Fax:</b></td
                                            <td> 
                                                <%# Eval("Fax")%> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td> 
                                                <b>EMail:</b></td
                                            <td> 
                                                <%# Eval("Email")%> 
                                            </td> 
                                        </tr> 
                                    </table> 
                                    <table id="Table1" style="height: 25px; display: block;" runat="server"
                                        <tr id="trBtns"
                                            <td align="center"
                                                <href="#" onclick="openRadWindow('<%#DataBinder.Eval(Container.DataItem,"ID")%>');return false;"
                                                    Edit </a> 
                                            </td> 
                                            <td align="center"
                                                <href="#" onclick="openRadWindow1('<%#DataBinder.Eval(Container.DataItem,"ID")%>');return false;"
                                                    Delete </a> 
                                            </td> 
                                        </tr> 
                                    </table> 
                                </div> 
                            </asp:Panel> 
                        </ItemTemplate> 
                        <EditFormSettings EditFormType="Template"
                            <FormTemplate> 
                                <div style="width: 100%"
                                    <table align="center"
                                        <tr> 
                                            <td> 
                                                Name: 
                                            </td> 
                                            <td> 
                                                <telerik:RadTextBox ID="RadtxtName" runat="server"
                                                </telerik:RadTextBox> 
                                                <asp:RequiredFieldValidator ID="rfvtxtName" ControlToValidate="RadtxtName" runat="server" 
                                                    Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator></td
                                        </tr> 
                                        <tr> 
                                            <td> 
                                                Title: 
                                            </td> 
                                            <td> 
                                                <telerik:RadTextBox ID="RadTxtTitle" runat="server"
                                                </telerik:RadTextBox> 
                                                <asp:RequiredFieldValidator ID="rfvRadTxtTitle" ControlToValidate="RadTxtTitle" runat="server" 
                                                    Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator></td
                                        </tr> 
                                        <tr style="width: 200px;"
                                            <td> 
                                                Phone: 
                                            </td> 
                                            <td class="recordsfields"
                                                <telerik:RadTextBox ID="RadTxtOfficePhone" runat="server"
                                                </telerik:RadTextBox> 
                                                <asp:RequiredFieldValidator ID="rfvRadTxtOfficePhone" CssClass="padding10px" ControlToValidate="RadTxtOfficePhone" 
                                                    runat="server" Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator> 
                                                <asp:RegularExpressionValidator ID="revRadTxtOfficePhone" runat="server" ErrorMessage="Number Is Not Valid!!" 
                                                    Display="Dynamic" CssClass="padding10px" ControlToValidate="RadTxtOfficePhone" 
                                                    ValidationExpression="^[0-9-+]*$"></asp:RegularExpressionValidator></td
                                        </tr> 
                                        <tr visible="false" style="display: none;"
                                            <td> 
                                                Extension: 
                                            </td> 
                                            <td> 
                                                <telerik:RadTextBox ID="RadTxtOfficeExt" runat="server"
                                                </telerik:RadTextBox> 
                                                <asp:RegularExpressionValidator ID="revRadTxtOfficeExt" runat="server" ErrorMessage="Number Only !!" 
                                                    ControlToValidate="RadTxtOfficeExt" ValidationExpression="^\d+$"></asp:RegularExpressionValidator> 
                                                <%--<asp:RequiredFieldValidator ID="rfvRadTxtOfficeExt" ControlToValidate="RadTxtOfficeExt" 
                                                        runat="server" Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator>--%> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td> 
                                                Mobile: 
                                            </td> 
                                            <td class="recordsfields"
                                                <telerik:RadTextBox ID="RadTxtSecondPhone" runat="server"
                                                </telerik:RadTextBox> 
                                                <%--<asp:RequiredFieldValidator ID="rfvRadTxtSecondPhone" ControlToValidate="RadTxtSecondPhone" 
                                                        runat="server" Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator>--%> 
                                                <asp:RegularExpressionValidator ID="revRadTxtSecondPhone" runat="server" ErrorMessage="Number Is Not Valid !!" 
                                                    CssClass="padding10px" ControlToValidate="RadTxtSecondPhone" ValidationExpression="^[0-9-+]*$"></asp:RegularExpressionValidator></td
                                        </tr> 
                                        <tr visible="false" style="display: none;"
                                            <td> 
                                                Extension: 
                                            </td> 
                                            <td> 
                                                <telerik:RadTextBox ID="RadTxtSecondExtension" runat="server"
                                                </telerik:RadTextBox> 
                                                <asp:RegularExpressionValidator ID="revRadTxtSecondExtension" runat="server" ErrorMessage=" Number Only !!" 
                                                    ControlToValidate="RadTxtSecondExtension" ValidationExpression="^\d+$"></asp:RegularExpressionValidator> 
                                                <%--<asp:RequiredFieldValidator ID="rfvRadTxtExtension" ControlToValidate="RadTxtSecondExtension" 
                                                        runat="server" Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator>--%> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td> 
                                                Fax: 
                                            </td> 
                                            <td> 
                                                <telerik:RadTextBox ID="RadTxtFax" runat="server"
                                                </telerik:RadTextBox> 
                                                <%--<asp:RequiredFieldValidator ID="rfvRadTxtFax" ControlToValidate="RadTxtFax" runat="server" 
                                                    Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator>--%> 
                                                <asp:RegularExpressionValidator ID="revRadTxtFax" runat="server" ErrorMessage="Invalid Format" 
                                                    Display="Dynamic" ControlToValidate="RadTxtFax" ValidationExpression="^[0-9-+]*$"></asp:RegularExpressionValidator> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td> 
                                                EMail: 
                                            </td> 
                                            <td> 
                                                <telerik:RadTextBox ID="RadTxtEmail" runat="server"
                                                </telerik:RadTextBox> 
                                                <asp:RequiredFieldValidator ID="rfvRadTxtEmail" ControlToValidate="RadTxtEmail" runat="server" 
                                                    Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator> 
                                                <asp:RegularExpressionValidator ID="revRadTxtEmail" runat="server" ErrorMessage="Email Not Valid!" 
                                                    Display="Dynamic" ControlToValidate="RadTxtEmail" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator></td
                                        </tr> 
                                        <tr> 
                                            <td> 
                                                Photo: 
                                            </td> 
                                            <td> 
                                                <telerik:RadUpload ID="RUPhoto" runat="server" ControlObjectsVisibility="None" AllowedFileExtensions=".jpg,.jpeg" 
                                                    Skin="Office2007"
                                                </telerik:RadUpload> 
                                                <br /> 
                                                <%--<asp:Label ID="lblerr" runat="server" Text="Invalid File" Visible="false" ></asp:Label>--%> 
                                                Image size should be 145 x 55 px 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td> 
                                                Team Member URL: 
                                            </td> 
                                            <td> 
                                                <telerik:RadTextBox ID="RadTxtTeamMember" runat="server"
                                                </telerik:RadTextBox> 
                                                <asp:RegularExpressionValidator ID="RevRadTxtTeamMember" runat="server" ErrorMessage="URL Invalid" 
                                                    ControlToValidate="RadTxtTeamMember" ValidationExpression="^(ht|f)tp(s?)\:\/\/(([a-zA-Z0-9\-\._]+(\.[a-zA-Z0-9\-\._]+)+)|localhost)(\/?)([a-zA-Z0-9\-\.\?\,\'\/\\\+&amp;%\$#_]*)?([\d\w\.\/\%\+\-\=\&amp;\?\:\\\&quot;\'\,\|\~\;]*)$"
                                                </asp:RegularExpressionValidator> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td> 
                                            </td> 
                                            <td> 
                                                <asp:Button ID="btnUpdate" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>' 
                                                    runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'
                                                </asp:Button> 
                                                <asp:Button ID="BtnCancel" runat="server" Text="Cancel" CausesValidation="false" 
                                                    CommandName="Cancel" /></td
                                        </tr> 
                                    </table> 
                                </div> 
                            </FormTemplate> 
                        </EditFormSettings> 
                    </MasterTableView> 
                    <GroupingSettings CaseSensitive="false" /> 
                </telerik:RadGrid> 


Thanks in Advance ,

Ashok.c
Genady Sergeev
Telerik team
 answered on 22 Mar 2010
3 answers
95 views
Hi,

The documentation says that setting MinDate will disallow selecting dates earlier or equal to MinDate. But actually it disallows selecting dates only earlier than MinDate; dates equal to MinDate can be selected.

Regards
Tomasz
Martin
Telerik team
 answered on 22 Mar 2010
3 answers
182 views
Hi,

I've purchase 'RadControls for ASP.NET AJAX' product and install it on my server (following the instruction which located here under the FAQ section) and still get the following error, from time to time:

"Telerik.Web.UI 2008.1.515.20 trial version. Copyright telerik © 2002-2008. To remove this message, please purchase a developer version"

This issue is very critical for us.
Please advice,
Yossi
Pavel
Telerik team
 answered on 22 Mar 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?