Telerik Forums
UI for ASP.NET AJAX Forum
12 answers
335 views
I recently submitted a forum post asking how I could set images on my menu items via CSS (using sprites):

http://www.telerik.com/community/forums/thread/b311D-behdtb.aspx

The recommended solution did work, the only downside being that, in order to make it work, I had to assign an ImageUrl that pointed to a clear gif image on every menu item (without an ImageUrl the img tag isn't even rendered). This is inconvenient, but at least it does work and allows me to have a single sprite image for all of my menus and context menus.

I now want to achieve the same effect with my tree nodes. Rather than assigning a different image to each node via the ImageUrl property, I want to have a single sprite image. The problem is that when I set the CssClass on each node, it ends up being applied to the span tag surrounding the text of the node, instead of the div tag that surrounds the text and the image of the node as I would've expected. Given this, I now do not know/if I can achieve the result I desire.

I love where Telerik has gone w/ the sprite approach, and the performance benefits that developers can gain from it, but it seems that your support for it is not quite complete in your control set. As I recommended in my other forum post, I think that the RadMenuItem and RadTreeNode objects should have ImageCssClass properties to make it easy for us to consolidate all of our images for our RadMenus and RadTreeViews into a single sprite image.

Please let me know if you have a recommended workaround for doing sprite-based RadTreeView images.

Thanks,
Ross
Atanas Korchev
Telerik team
 answered on 25 Mar 2009
1 answer
86 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
134 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
165 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
185 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
143 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
84 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
119 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
95 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
107 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?