Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
82 views
Hi

I'm using the radnumbertextbox, and I allow
DecimalDigits=8
Allowronded=false
KeepNotRoundedValue=true

when I type numbers like 0.12345678 everything goes perfect
but when i type 0.0000007 this gives me something like 1e-7
javascript convert this very low value to this expression which is not a number and brake my application
MaxLength is the full length, is MaxDecimalLength missing here ?
is this a bug from the rad control ?
how to resolve this problem ?

regards
Daniel
Telerik team
 answered on 25 Mar 2009
2 answers
129 views
When a user clicks the "edit" link on a grid row and the fields for the row are displayed as textboxes (for changing the data), how can I access the textbox properties? (to change the font, etc.) 
Bruce
Top achievements
Rank 1
 answered on 25 Mar 2009
1 answer
162 views

Hi,

I am checking for invalid extensions using following syntax:
 
<asp:CustomValidator runat="server" ID="CustomValidatorForRadUpload" Display="None"           ClientValidationFunction="ValidateFileExtensions">Invalid extensions.</asp:CustomValidator>

<telerik:RadUpload Width="100%" ID="radMultipleFileUpload" InitialFileInputsCount="1"
 Skin="Gray" runat="server" OnClientFileSelected="fnClicked" OnClientDeleting="fnCheckInputRowsExists"
 AllowedFileExtensions=".jpg,.jpeg,.gif,.png" EnableEmbeddedSkins="false" EnableEmbeddedBaseStylesheet="false">
</telerik:RadUpload>

Javascript function is as follows:
 function ValidateFileExtensions(source, arguments)
    {
      var blnIsValid;
      blnIsValid = $find("<%= radMultipleFileUpload.ClientID %>").validateExtensions();
      if (!blnIsValid)
      {
         alert("Please upload images with jpg, jpeg, gif, or png extensions.")
         return false;
      }
      return true;
    }

1)  Here after this function gets called and if user have selected invalide file extensions then.
function returns false.
But still page gets postback which i dont want to happen.

2) Also I dont want any message to be displayed on the radupload area. How can I prevent that.
Please reply.

Genady Sergeev
Telerik team
 answered on 25 Mar 2009
11 answers
180 views
Hi,

I have a Document Library on my sharepoint site called Data. It contains images, js and css files. I'm trying to point the ImagesPaths property of the RadEditor to this Document Library but when I click to insert an image in the editor, the file list is blank. I'm using the RadEditor MOSS 4.5.4.

private void AddRadEditorControl()
        {
            // RadEditor instance to be added
            radEditor = new RadEditor();
            radEditor.Height = Unit.Pixel(400);
            radEditor.Width = Unit.Percentage(100);
            radEditor.RadControlsDir = "/_wpresources/RadEditorSharePoint/4.5.4.0__1f131a624888eeed/RadControls";
            radEditor.ShowSubmitCancelButtons = false;
            radEditor.ConvertToXhtml = false;
            radEditor.ImagesPaths = new string[1] { "/Data" };
            radEditor.UploadImagesPaths = new string[1] { "/Data" };
            radEditor.DeleteImagesPaths = new string[1] { "/Data" };

            // finding the place holder that will contain the RadEditor
            PlaceHolder plhRadEditor = (PlaceHolder)FindControlRecursive(PLACEHOLDER_CONTENT_EDITOR);

            radPanel = new Panel();
            radPanel.Controls.Add(radEditor);
            // adding the radEditor control
            plhRadEditor.Controls.Add(radPanel);

        }

I also tried with the path:
radEditor.ImagesPaths = new string[1] { "Data" };

Thank you,

Thomas.

Thomas
Top achievements
Rank 1
 answered on 25 Mar 2009
2 answers
140 views
Hi,
  I was going through one article at http://www.telerik.com/help/aspnet-ajax/grdviewstatereductiontechniques.html. There is "single expand" link in this page,  which is  redirecting to "http://www.telerik.com/help/error.aspx?aspxerrorpath=/help/default.aspx". This is broken. Can we get the link corrected?

Thanks and regards,
Giridhar.
Daniel
Telerik team
 answered on 25 Mar 2009
1 answer
79 views
Hi All,
I want to drag a appointment from radscheduler and want to drop onto another table where I am placing a 'div' tag.
Below is my radscheduler definition. I am taking a division tag and applying ondrag event to it but this event does not gets fired.

<script>
    function fnSetInfo()
      {
            alert("Inside the function");
                
        }

</script>

<

telerik:RadScheduler ID="radSchedulCalender" runat="server" DataEndField="Endtime"

 

 

DataKeyField="UNIQUEID" DataStartField="STARTTIME" DataSubjectField="subject"

 

 

DayStartTime="06:00:00" DisplayDeleteConfirmation="False" EnableEmbeddedScripts="true"

 

 

EnableViewState="False" MonthVisibleAppointmentsPerDay="4" OnClientAppointmentDeleting="OnClientAppointmentDeleting"

 

 

OnClientAppointmentEditing="OnClientAppointmentEditing" OnClientAppointmentInserting="OnClientAppointmentInserting"

 

 

OnClientAppointmentMoveEnd="OnClientAppointmentMoveEnd" Skin="Outlook" StartEditingInAdvancedForm="False"

 

 

WorkDayEndTime="18:00:00" WorkDayStartTime="06:00:00">

 

 

   <AppointmentTemplate>

 

 

        <div id="divDragSource" ondragstart="fnSetInfo()">

 

              <asp:Label ID="lblAppTime" runat="server" Width="100%"></asp:Label>

 

 

              <asp:Label ID="lblSub" runat="server" Width="100%"></asp:Label>

 

 

              <asp:HyperLink ID="lblActivity" runat="server"></asp:HyperLink>

 

 

        </div>

 

 

   </AppointmentTemplate>

 

 

<MonthView VisibleAppointmentsPerDay="4" />

 

 

<TimelineView UserSelectable="false" />

 

 

</telerik:RadScheduler>

Also I tried by applying the ondragstart event from "radSchedulCalender_AppointmentCreated" server side event.

 

 

Dim divSrc As HtmlGenericControl = New HtmlGenericControl("DIV")

 

 

 

 

divSrc = e.Container.FindControl("divDragSource")

 

 

 

 

divSrc.Attributes.Add("ondragstart", "return fnSetInfo()")

 

 

Also I tried with applying 'onclick event to the division but it is also not getting fired.


I also tried with applying event to the label which is in the appointment from server side.

lblSub = CType(e.Container.FindControl("lblSub"), Label)
lblSub.Attributes.Add("ondragstart", "return fnSetInfo();")

This is also not getting fired.

Do radscheduler supports such behaviour i.e. deagging an appointment item to the outside of radscheduler?
Can anyone please help me in this?

Best Regards,
Hrushikesh.

Atanas Korchev
Telerik team
 answered on 25 Mar 2009
2 answers
116 views
Is there an easy way to do a full postback form inside an ajax panel?
Todd Hile-Hoffer
Top achievements
Rank 2
 answered on 25 Mar 2009
1 answer
89 views
Hi Guys,

I have an app where the appointments are auto-generated on the back end. They act like schedule blocks. Anyway, I want to be able to have the users click on the appointments in the scheduler to select it and fill in a form. The form is on a panel with a modal popup.

I can get the form to popup correctly but not without the scheduler also showing an edit form. I was able to shut off the advanced form but not the simple one. If I set the schedule to false on enable edit then I get no click event.

Any thoughts on how I can correct this situation? I don't really want to use the advanced form as I like the modal.

Thanks,
Eric
Peter
Telerik team
 answered on 25 Mar 2009
2 answers
104 views
Hi,

How can I change the filterRow's padding style element? I am using 2009 Q1 RadGrid control and I try this in the style section of the page (I am using the Hay built in skin):

. rgFilterRow
{
    font-size: 13px;
    padding: 0px;
}

The font resized, but the padding unchanged. What should I do?

Thanks
György
Top achievements
Rank 1
 answered on 25 Mar 2009
2 answers
129 views
Hi there,

I developed some projects with entity framework up till now - so my skills with this technology (WPF/WinForms) are quiet good. But I'm rather new to ASP.net. In WinForms there are two events for data binding "Parse" and "Format" and in WPF we have custom implemented IValueConverts. But what ways are there in ASP.net (not MVC)?!?

I successfully attached an EntityDataSource to a RadGrid. Inserts/Updates/Deletes are working as expected! But trying to implement some piece of user defined value parsing drives me crazy!

For an example I give you the following column definition:

<

 

EditItemTemplate>

 

<asp:TextBox ID="TextBoxPrice" Text='<%# Bind("Price", "{0:#.00} €") %>' runat="server"></asp:TextBox>
</EditItemTemplate>

As you can see, there is a value from the data source (property 'Price') bound with formating information to an appropriate TextBox control. But when I try to update - of course - the operation fails. The string "10,00 €" could not be parsed as an numeric value. Now I would expect an event wich gives me the instance of the current bound item or a value that I can change - anything to customized changing string "10,00 €" to "10,00" or custom filling values to the object. But I can't find anything related :-S

Am I missing something here???

Best regards,
Oliver

 

 

Tsvetoslav
Telerik team
 answered on 25 Mar 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?