Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
88 views
Hello,

I am in trouble with RadUpload. I want to use multiple file uploads..

The problem is in picture: http://www.cebe.org/img/out/radupload_1.jpg
when i add one RadUpload see: http://www.cebe.org/img/out/radupload_2.jpg

How can i set up the RadUpload like in demo..
CEBE
Top achievements
Rank 1
 answered on 20 Aug 2009
5 answers
362 views
Hello,

Is there a way to use .net skinID with GridButtonColumn when buttontype=ImageButton

When I set buttontype=ImageButton without specifying ImageUrl or with a temporary ImageUrl and I try to find the ImageButton in Item_Created handler, I find nothing and the button is rendered as a linkButton.

How to specify the SkingID I use everywhere in my app for the Update action ?


Thanks
CS
Dimo
Telerik team
 answered on 20 Aug 2009
3 answers
145 views

Hi,

We found another problem in the scheduler control.
For you information: We are using webservices with the advanced form.

We are showing images in the appointments on the schedular, like on the following image:
http://bart.nimio.info/images/fora/scheduler3.JPG

But when i tried to move an appointment by clicking on the image, nothing happens until i release the mouse button.
Then the appointment is stuck to the mouse pointer, after that i can't put the appointment back to the original place without updating the appointment or i can't put the appointment back to the scheduler at all. After that i am getting a lot of javascript errors when trying to move another appointment.

We are using the following code to enable images on the appointment:

/// <summary> 
      /// Occurs when a timeslot is created.  
      /// Sets the AppointmentType image, as well as the AppointmentState catagory color.  
      /// </summary> 
      /// <param name="sender">telerik:RadScheduler</param> 
      /// <param name="e">telerik:TimeSlot</param> 
      /// <returns>null</returns> 
      function TimeSlotCreated(sender, e) {  
        var app = e.get_appointment();  
        var element = e.get_appointment().get_element();  
        var attributeCollection = app.get_attributes();  
        var StateIconName = attributeCollection.getAttribute("StateIconName");  
        var SubStateIconName = attributeCollection.getAttribute("SubStateIconName");  
        var RsCategory = RgbStringToRadStyleString(attributeCollection.getAttribute("Color"));  
        var customerName = attributeCollection.getAttribute("CustomerName");  
        var startTime = app.get_start().format("MMM dd, yyyy HH:mm:ss");  
        attributeCollection.setAttribute("OriginalStartTime", startTime);  
 
        // Set the tooltip of the appointment  
        if (customerName == null) { customerName = "Geen klant"; }  
        app.set_toolTip("Afspraak: " + app.get_toolTip() + "\n" + "Klant:       " + customerName);  
 
        // Set the stateimage  
        var image = document.createElement("img");  
        image.setAttribute("src", '<%= System.Configuration.ConfigurationManager.AppSettings["IconDirectory"].Replace("~","") %>' + StateIconName);  
        image.setAttribute("alt", 'IconImage');  
 
        // If the appointment has a substate then show the substateimage  
        if (SubStateIconName != null) {  
          var image2 = document.createElement("img");  
          image2.setAttribute("src", '<%= System.Configuration.ConfigurationManager.AppSettings["IconDirectory"].Replace("~","") %>' + SubStateIconName);  
          image2.setAttribute("alt", 'IconImage');  
        }  
 
        element.setAttribute("class", element.className + " rsCategory" + RsCategory);  
 
        // All appointments with ID 0 are script generated, they are not actually appointments within the database, thus must not be allowed to  
        // be edited/moved or resized in any way shape or form.  
        if (app.get_id() == 0) {  
          app.set_allowDelete(false);  
          app.set_allowEdit(false);  
        }  
 
        var divs = element.getElementsByTagName('div');  
        var result;  
        var innerHTML;  
        for (i = 0; i < divs.length; i++) {  
          // IE and its eternal spacing issues *sigh*  
          if ($telerik.$(divs[i]).is("div.rsAptContent")) {  
            result = divs[i];  
            innerHTML = result.innerHTML;  
            result.innerHTML = '';  
            result.appendChild(image);  
 
            // If the appointment has a substate then show the substateimage  
            if (SubStateIconName != null) { result.appendChild(image2); }  
 
            result.innerHTML = result.innerHTML + innerHTML;  
            result.innerHTML = result.innerHTML + "<br />";  
 
            if (customerName != "Geen klant") {  
              result.innerHTML = result.innerHTML + customerName;  
            }  
            return;  
          }  
        }  
 
      } 

Is this a bug and is there a fix or workaround for this problem?
Datamex
Top achievements
Rank 2
 answered on 20 Aug 2009
1 answer
91 views
I am VERY new to Telerik and charting in particular, and need some help understanding how this control works.

My first question is a very basic one, but I can't seem to figure it out. I have a stored proc that returns to columns of data. One column has each person's name (i.e. Ted Smith) and the second column has a monetary amount (i.e. $12000). I am using the Adventureworks DB for data at the moment.

My code behind looks like this:
        protected void BindData(RadChart radChart)
        {
            using (var sqlDataSource = new SqlDataSource
                                           {
                                               ID = "myDataSource",
                                               ConnectionString =
                                                   ConfigurationManager.ConnectionStrings[
                                                   "AdventureWorksConnectionString"].ConnectionString,
                                               SelectCommand = "GetSales"
                                           })
            {
                Page.Controls.Add(sqlDataSource);
                radChart.DataSourceID = "myDataSource";
                radChart.PlotArea.XAxis.DataLabelsColumn = "FullName";
                radChart.DataBind();
                radChart.Series[0].DataYColumn = "TotalDue";
                radChart.Series[0].DataXColumn = "FullName";
            }
        }




When I run the application, the chart shows the Y axis (TotalDue) as I would expect it to, in a numeric format. But the X axis just shows the numbers 0-8, not the names of the people. This doesn't help me much. How do I get the names of the people to show up?
Vladimir Milev
Telerik team
 answered on 20 Aug 2009
2 answers
164 views
Goal:
To display the slider control vertically and align the items so that they are visually displayed in the middle (css: vertical-alignment: center) of the item.

Implementation:
When changing the orientation of the slider control to vertical it is not possible to properly line-up the labels of each item in the slider. To work around this limitation I have created a little bit of javascript which changes the top position of the <span> tags that are used to display the caption for each item as follows:

function

applyVerticalSliderFix(sliderId) 
{
   var labels = $get(sliderId).getElementsByTagName('span'); 
   for(i=0; i<labels.length; i++) 
   {
      var label = labels[i]; 
      var topOffset = Math.floor((label.parentNode.clientHeight - label.clientHeight) / 2); 
      label.style.top = topOffset + 'p
x'; 
   }
}

 

 

For the above to work I created a new skin where the  ".rslItem SPAN" definition uses a "position:absolute" for the top style attribute to have any effect.

Problem:
The above solution seems to work in IE and FF but every now and then throws off the location of the draghandle by a couple of pixels (10 - 15 pixels). In which case the draghandle is no longer properly lined up.

Any suggestions are much appreciated.
Regards, Elmar

 

 

 

 

 

 

 

Elmar De Groot
Top achievements
Rank 1
 answered on 20 Aug 2009
3 answers
196 views
We were having problems with our Q1 2009 telerik radeditor so I installed Q2 2009, file version 2009.02.0701.20. Now when the page loads with the radeditor it says, Campatibility View "a problem displaying duplimark.com caused Internet Explorer to refresh the web page using Compatibility View."

How can we make it not refresh into compatibility view?
Mic
Top achievements
Rank 1
 answered on 20 Aug 2009
2 answers
176 views
Hi,
i am using radcontrols for asp.net ajax,

within the radgrid item template i have one drop down list and one label.

i have selected index change event for that dropdown list.

the label should be changed based on the selected item of the drop downlist for each row.

how should i do this?

pls give me the solution.

thanks
naveen veda
Top achievements
Rank 1
 answered on 20 Aug 2009
4 answers
161 views
Hi,
        I'm using RadScheduler in my application and I want to increase the width of the cell from the default. I tried some combinations, but in vain. Can somebody throw light on CSS changes.

R/ BottleRocket.
Bottlerocket
Top achievements
Rank 1
 answered on 20 Aug 2009
1 answer
137 views
Hello there,

I have 2 pages: Page1 & Page2 that share similar structure, except for a RadTabStrip+RadMultiPage that wrap the controls in Page2.

Both pages have a number of ComboBoxes that are also identical. The combos are populated through DataBind() to a DataSource DataTable that is retrieved at runtime from database. Everything is OK in Page1. However, when I run Page2 I always receive and Exception: "System.ArgumentOutOfRangeException: Selection out of range, Parameter name: value" , with the line containing DataBind() being highlighted.

As I said, I'm populating the combos identically in both pages, yet, the exception only appears in Page2. Strangely enough, if I walk the datasource rows and define then add combo items, exception disappears; only when I use DataBind() it pops up, and for all the combos of Page2.

Does placing combos inside a RadTabStrip+RadMultiPage has an impact on how they should be populated? Or am I missing something here?

Thanks.

Regards,
Saed
Yana
Telerik team
 answered on 20 Aug 2009
1 answer
176 views
I am really confused and aggravated by this error that apparently is a bug in the current release (Quarter 2, 2009), as evidenced on page 156 of the "RadControls for ASP.NET AJAX" developer's manual, "Handling ViewState Conflicts."  It states, in part, that "one last wrinkle that you may run into is that as your control tree becomes more complex...[you're screwed]."

I have 5 RadGrids on a webform and I simply want them to work.  However, after the page loads, the grids are filled with data, and when any row or menu item is selected, the application crashes because of this "little wrinkle."

So I copied your work-around code to kill viewstate on control first load, but (damnit!) you only give an example FOR ONE CONTROL!!!  What about the more likely event that there will be multiple controls on a page?  How is that addressed?

And then, at the bottom of page 157 in the work-around code, where the hell does IDynamicControl come from?  It's not in the APIs of System.Web.UI nor Telerik.Web.UI and fails to compile.

Finally, there is no mention of this "little wrinkle" in the RadGrid section of the manual - I stumbled upon the above entriely by chance.

Sheesh!!!
Veli
Telerik team
 answered on 20 Aug 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?