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

I am trying to clear the scheduler from codebehind but I am having problems.
RadScheduler1.Appointments.Clear()
looks like it should do what I want, but it does not. If i check RadScheduler1.Appointments.Count before clearing, it says 5. If I check it again AFTER clearing the items, it sais 0. So the items are cleared. But they are still displayed in the scheduler. If I change the viewState of the scheduler from day to week, the items are still there. I do not use a datasource but fill the items from a function. This function does not run after the .Appointments.Clear(). But still the items are there. How do I remove the visible items???


Made a horrible workaround for this. It works, but cannot possibly be the way to do it:


        Dim col As New Collection

        For Each o As Telerik.Web.UI.Appointment In RadScheduler1.Appointments
            col.Add(o)
        Next
        For Each i As Telerik.Web.UI.Appointment In col
            RadScheduler1.DeleteAppointment(i, True)
        Next
        RadScheduler1.SelectedView = RadScheduler1.SelectedView

Peter
Telerik team
 answered on 09 Oct 2011
4 answers
597 views
Hi,

How can i change radwindow title color and font size of outlook skin? I am using an older version 1.5.2.0.

Thanks in advance!

Fakhrul
eugen100
Top achievements
Rank 1
 answered on 09 Oct 2011
5 answers
108 views
Hi,

I've a radgrid with two Details table.
I've set the ParentTable Relationship via ASPX and via C#, but when i'm going to open the detail, sometime my detail table shows three page or more, but one or more of that is empty.

My solution is populate the datasource detail table in runtime mode into detailtable_databind event, but i don't like this.

How can I do?

Thanks
best regards
Pavlina
Telerik team
 answered on 08 Oct 2011
4 answers
200 views
hello Telerik Team,
             I have a Telerik AsynUpload Version 2011.1.315.35,
I set it as multifile upload but it select one file at a time
<script type="javascipt">
    function DoFrameSize(){
        doBody();  
    }
    Telerik.Web.UI.RadAsyncUpload.Modules.Silverlight.isAvailable = function () { return false; }
    Telerik.Web.UI.RadAsyncUpload.Modules.Flash.isAvailable = function () { return false; }
<script>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
                        <AjaxSettings>
                            <telerik:AjaxSetting AjaxControlID="RadAsyncUpload1">
                            </telerik:AjaxSetting>
                        </AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server"  MultipleFileSelection="Automatic"                                     OnClientFileSelected="DoFrameSize"  ForeColor="Black">
        <Localization Select="Add Files" />
</telerik:RadAsyncUpload>
<telerik:RadProgressArea runat="server" ID="RadProgressArea1">
</telerik:RadProgressArea>
                    </div>


Regards

Daniel
Top achievements
Rank 1
 answered on 08 Oct 2011
3 answers
217 views
Hi.

I'm programming a website section in DNN based on this sample:
http://demos.telerik.com/aspnet-ajax/tooltip/examples/default/defaultcs.aspx

I'm trying to display a google plus one button in the details page or user control by using a Literal control. This is my code:
private void shareGoogle(int ProductId)
{
        //url for sample purpose
        string url = "http://www.telerik.com/";
 
        StringBuilder script = new StringBuilder();
        script.Append("<script type=\"text/javascript\" src=\"https://apis.google.com/js/plusone.js\"></script>");
        script.Append("<g:plusone");
        script.Append(" size=\"standard\"");
        script.Append(" count=\"false\"");
        script.AppendFormat(" href=\"{0}\"", url);
        script.Append("></g:plusone>");
 
      
        ltGoogle.Text = script.ToString();
}

The problem is that if I put this code in the view page, it displays correctly but if I put it in the details page it does not display anything.

I also put the javascript call to google api in the skin file so it can be seen by any module I insert in the website.

The other option I tried was that I downloaded a c# project which overrides Render method but it has the same behaviour in both view and details page.

Thank you.
Gerardo


Gerardo
Top achievements
Rank 1
 answered on 07 Oct 2011
0 answers
170 views
I have searched for a solution to this...so if I overlooked I apologize. Please advise as to where to find solution.
I have 2 RadListBox elements each wrapped in asp:UpdatePanel with UpdateMode="Conditional". When I call .Update on the update panel containing the drop destination control, it seems the drag and drop (even move with buttons) functionality is no longer available.

ASPX:
<div style="float:left; width:285px;">
<asp:UpdatePanel ID="up1" runat="server" UpdateMode="Conditional">
       <ContentTemplate>
           <telerik:RadListBox ID="rlb1" runat="server" AllowTransfer="true" EnableDragAndDrop="true" TransferMode="Copy" TransferToID="rlb2" SelectionMode="Multiple" ButtonSettings-VerticalAlign="Middle" ButtonSettings-ShowTransferAll="false" AllowTransferOnDoubleClick="true" Height="300px" Width="100%"></telerik:RadListBox>
       </ContentTemplate>
 </asp:UpdatePanel>
</div>
<div style="float:left; width:285px; padding:0px 0px 0px 10px;">
    <asp:UpdatePanel ID="up2" runat="server" UpdateMode="Conditional">
         <ContentTemplate>
           <telerik:RadListBox ID="rlb2" runat="server" EnableDragAndDrop="true" AllowReorder="true" AllowDelete="true" AllowTransferDuplicates="false" ButtonSettings-VerticalAlign="Middle" Height="300px" Width="100%"></telerik:RadListBox>
         </ContentTemplate>
     </asp:UpdatePanel>
 </div>


VB.NET:
rlb2.ClearSelection()
rlb2.Items.Clear()
up2.Update()

I downloaded the latest release and doesn't change this behavior.

Thanks...Kelly

I have opened a support ticket for this issue. Once resolved I will post the answer for anyone else having this issue.

10/11/2011....
So it seems the issue is created when an async postback occurs and only one of the two controls is updated (.Update on the update panel). The immediate solution is to update both controls (.Update on both update panels).  I have asked for this to be addressed in a future release as I strongly believe this is a bug. Hope someone finds this helpful.

10/12/2011....
Seems the "answer" is to update both controls. ie...Seperate update panels, call .Update on both.
You can view the ticket at http://www.telerik.com/account/support-tickets/view-ticket.aspx?threadid=471747
Kelly Arnold
Top achievements
Rank 1
 asked on 07 Oct 2011
2 answers
108 views
Hey everyone. 
I have been having some CSS problems. 

No matter what i do all my elements take more height on FF than then do on IE. 
Does I was wondering where the  telerik CSS are?

Moises
Top achievements
Rank 1
 answered on 07 Oct 2011
1 answer
44 views
The title says it all really. I currently have "Mon", "Tue", etc... and I want "Monday", "Tuesday", etc...

I don't see a good method of doing this, and wondered if it was possible? Thanks!
Neil
Top achievements
Rank 1
 answered on 07 Oct 2011
1 answer
119 views
Hi,

How to update one or more controls after postback of one or more controls ?

Thank for your help

Anne
Dan Lehmann
Top achievements
Rank 1
 answered on 07 Oct 2011
0 answers
93 views
Hello,
in a radgrid I have 3 columns in which I inserted a radcombobox for each column. The objectdatasources of each combo receives the values of all 3 selecteditem combos, in this way if I filter for the first combo, the other 2 are automatically updated and they shows only the values available for the filtered records. All works fine but...... if I filter for a combo, and then I use a text filter and in this second case there are no records to show, an error occurs because the selecteditem chosen for the combo is not available anymore (because the combo is automatically updated...)

So, how can I manage this case? Is there a way to say "If the combo has no items and I set a non existing value, go ahead anyway without thowing an exception?"

Thanks
Mario
Top achievements
Rank 1
 asked on 07 Oct 2011
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?