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

I think I encountered a bug.
I use a Scheduler populated with a web service on client side.
The RadSchduler component is initialized as following:
<telerik:RadScheduler runat="server" ID="RadScheduler" Skin="Sunset" MinutesPerRow="60">  
         <WebServiceSettings Path="SchedulerWebService.asmx" ResourcePopulationMode="ServerSide"  /> 
</telerik:RadScheduler>    

In my GetAppointments(RadSchduler owner) method, the value of the MinutesPerRow property is always "30".
public class SchedulerDbProvider : SchedulerProviderBase  
{  
        public override IEnumerable<Appointment> GetAppointments(RadScheduler owner)  
        {  
            int mpr = owner.MinutesPerRow;    /* MinutesPerRow always = 30 */ 
 
            /* ... */ 
        }  
} 

Did I miss something?
T. Tsonev
Telerik team
 answered on 11 Jan 2010
5 answers
209 views

I have a form with a RadNumeric Textbox on it and here are the following results…

 

34.5 = 35 (rounding away from zero)

34.6 = 35 (rounding away from zero)

 

**** -34.5 = -34 (rounding closer to zero) ****

-34.6 = -35 (rounding away from zero)

 

The question I have, is why does .5 round closer to zero when it is a negative number?  Is there a way to achieve the expected results…

 

34.5 = 35 (rounding away from zero)

34.6 = 35 (rounding away from zero)

 

****  -34.5 = -35 (rounding away from zero) ****

-34.6 = -35 (rounding away from zero)

Thanks,
Steve

Dimo
Telerik team
 answered on 11 Jan 2010
2 answers
158 views
I've an aspx page with inside a <RadWindow ...><ContentTemplate><telerik:RadSlider id="rl" ...></ContenTemplate></RadWindow> .
The RadWindow is set with VisibleOnPageLoad="true".
In the RadWindow I can see all the controls except the RadSliders that remains not visible: why?
I've tried to call a javascript function on the OnClientShow of the RadWindow to repaint the sliders as suggested in an anwser in these forums as follows:

function

 

OnClientShow(sender, eventArgs) {
var wnd = $find("<%= rl.ClientID %>");

 

slider.repaint();}

Unfortunately it does not compile since the "rl" control is inside a ContentTemplate and I do not know how to access this element from javscript.
Any help?

Marco Miccini
Top achievements
Rank 1
 answered on 11 Jan 2010
1 answer
423 views
HI ,

I have a RadGrid with a column of type GridDateTimeColumn :

  <telerik:RadGrid ID="RadGrid1 > 
       <Columns> 
                  <telerik:GridDateTimeColumn DataField="CreationDate" DataType="System.DateTime " />  
       <Columns> 
  </telerik:RadGrid> 

On this column I have a DateTime picker which allows me to select some date and then I want to apply a filter , for example "GreaterThan" . I am expecting that the result will be all rows with a date CreationDate greater than selected.

In my code I am sending a filter expression generated by a grid to dynamic linq query like this : 
//data is IEnumerable collection of data objects 
// filter is a filter expression generated by grid , which is converted to string like this :  
//string filter  = string.format("{0}.{1}(\"{2}\")",item.FieldName, item.FilterFunction, item.FieldValue) 
  IQueryable query = data.AsQueryable(); 
  queryquery = query.Where(filter); 

At this point I am getting an exception : 
No applicable method 'GreaterThan' exists in dataObjectType 'DateTime'

Is there any way to make it work with dynamic linq ? it will be work with most cases when column type is string, but I need to make it work with INT and DateTime column types .

Any suggestion ? ? ?
Thanks  . 

Nikolay Rusev
Telerik team
 answered on 11 Jan 2010
0 answers
140 views
how to remove bold font of radcombox of  bind values
shanker bangari
Top achievements
Rank 1
 asked on 11 Jan 2010
1 answer
152 views
I want to bring up a modal confirmation window when a user clicks a link on my site. This window would basically say that they are leaving our site and we are not responsible, blah blah and when the user clicks "ok" they are redirected to the link.

How would I accomplish this with radcofirm?

I'm still a beginner and having a little hard time understanding the example here: http://www.telerik.com/help/aspnet-ajax/window_dialogsconfirm.html

Where would I insert the link if the dialog returns true?

Thanks for any help.

Shinu
Top achievements
Rank 2
 answered on 11 Jan 2010
1 answer
104 views
I have a RadGrid in which I use a GridTemplateColumn for later editing the content. In the EditItemTemplate I have a RadComboBox which i fill with data by the OnInit event, but how can I based on the RadGrid datasource selected an item in the combobox?

I have following code:

<telerik:GridTemplateColumn HeaderText="<%$ Resources:LanguageWeb, Depot %>" EditFormColumnIndex="1" 
    Visible="false">  
    <ItemTemplate> 
    </ItemTemplate> 
    <EditItemTemplate> 
        <telerik:RadComboBox ID="RcbDepot" runat="server" HighlightTemplatedItems="true" 
            OnInit="RcbDepot_Init" />
    </EditItemTemplate> 
</telerik:GridTemplateColumn> 

It would be nice with some kind of "SelectedValue" attribute, so I could do something like:

SelectedValue='<%# Bind("DepotID") %>' 

Anyone have an idea what to do?
Yavor
Telerik team
 answered on 11 Jan 2010
1 answer
99 views
Hello,

Great set of tools!  Having an issue with the RadMenu and IE8.  The menu works fine but after a postback (handled via RadAjax manager) the submenu items shift left and stay there.  This occurs in my IE8 but not Firefox.

Thank you,

Dean.

Yana
Telerik team
 answered on 11 Jan 2010
1 answer
83 views
After spending too much time on trying to figure out why my upload was not working I finally discovered something rather surprising.
Turns out that if you have the following single line of code in your master page. RadUploads will not work.

Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init  
   Me.ID = "Master" 
End Sub  
 

For some unknown reason naming the master page causes everthing to fall apart. Comment out that one line and everthing works.

I don't know if this is telerik bug or microsoft.
It sure is odd.
Thanks ... Ed
Genady Sergeev
Telerik team
 answered on 11 Jan 2010
1 answer
125 views
I'm using a RadTimePicker inside a grid, and since I have

<

 

TimeView Interval="0:15" runat="server" Columns="6">

 

on overy row it renders a table with many cells for time selection.
Is it possible that can have all those rows reference one TimeInterval, so I don't have to render all those tables for every row. Thanks.
Princy
Top achievements
Rank 2
 answered on 11 Jan 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?