Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
231 views
When I add an appointment to the RadScheduler it writes the record to the database in the AppointmentInsert() function. This properly saves the record but doesn't update the RadScheduler for the user. They have to manually refresh their browser for the changes to appear. How do I get it to update after every event without the user hitting refresh in the browser? 

protected void Page_Load(object sender, EventArgs e)
{
    DrAppointment app = new DrAppointment();
 
    RadScheduler1.DataSource = app.GetAll();
    RadScheduler1.DataBind();
 
    RadScheduler1.AppointmentInsert += new Telerik.Web.UI.AppointmentInsertEventHandler(RadScheduler1_AppointmentInsert);
    RadScheduler1.AppointmentUpdate += new Telerik.Web.UI.AppointmentUpdateEventHandler(RadScheduler1_AppointmentUpdate);
    RadScheduler1.AppointmentDelete += new Telerik.Web.UI.AppointmentDeleteEventHandler(RadScheduler1_AppointmentDelete);
    RadScheduler1.FormCreated += new Telerik.Web.UI.SchedulerFormCreatedEventHandler(RadScheduler1_FormCreated);
}
 
 
void RadScheduler1_AppointmentInsert(object sender, Telerik.Web.UI.SchedulerCancelEventArgs e)
{
    if (ExceedsLimit(e.Appointment))
    {
        lblError.Text = "Another appointment exists in this time slot.";
        e.Cancel = true;
    }
    else
    {
        DrAppointment app = new DrAppointment(e.Appointment);
        app.Save();
        
    }
}
Greg Ogle
Top achievements
Rank 1
 answered on 18 Oct 2010
3 answers
99 views
Hi,

We are considering using RadScheduler for a new project and we have one question. The client has a specific request to be able to copy and paste appointments using keyboard shortcuts (ctrl+c and ctrl+v). 

Can this be done?

Thanks,
Daryl
Veronica
Telerik team
 answered on 18 Oct 2010
3 answers
81 views
Hi, I am manoj kumar rai. i am using the given control radpanelbar in sharepoint 2010 as instructions given in this link by telrik http://www.telerik.com/help/aspnet-ajax/replace-sharepoint-quick-launch-menu-with-radpanelbar.html

But this control is working fine only in default.master . if i am trying the same steps in V4.master of publishing site ,which is used by sharepoint 2010 then this control is not working .Please help me as soon as possible.


Thanks
Manoj kumar rai
Kalina
Telerik team
 answered on 18 Oct 2010
1 answer
90 views
I have 2 RadScheduler controls on a page, and what I need to do is keep their dates in sync, ie When it changes on one the date should be updated on the other to match.

Right now I am attempting to use the OnNavigationComplete method like so:

 protected void RadScheduler1_OnNavigationComplete(object sender, SchedulerNavigationCompleteEventArgs e)
 {
        RadScheduler3.SelectedDate = RadScheduler1.SelectedDate;       
        RadScheduler3.Rebind();
 }


When I change RS1's date I see this event get fired, but RS3's date does not get changed. Any suggestions?
Veronica
Telerik team
 answered on 18 Oct 2010
5 answers
125 views
I am having a problem attempting to get into design mode of VS2005.  It keeps adding a reference to Telerik.Web.UI.Dll and takes roughly a minute before the designer finally opens.  I used to get an error stating "The file at /bin/Telerik.Web.UI.Dll already exists are you sure you want to update this reference" 

Any idea of what is goingon here and how to fix this?



Andrey
Telerik team
 answered on 18 Oct 2010
3 answers
103 views
Hi

I have a list in a SharePoint site. This list has several columns of multiple lines of text / rich text ie. several radeditor controls. When entering a new item, I would like that each of the radeditors will have a default text like "insert here the info regarding this" or "please remember to specify this and that".

When i dont have the radeditor enabled in the site, I am able to achieve the above metioned in the default SharePoint editor using some simple javascript. But i dont seem to be able to do the same when the radeditor is enabled.

I have been looking in the forums and I found some info on how to change the overall behaviour of the editor, but that does not seems to appliyt to my scenario. Any help will be very much appreciated.

Thanks!
-Cristina.
Stanimir
Telerik team
 answered on 18 Oct 2010
1 answer
105 views
Hi,

   I am invoking radwindow from code beind. I would like the freeze the parent window. I don't want the user to do any activity on the parent page when the window is open. How can i do it?

ScriptManager.RegisterStartupScript(Page,

GetType(Page), "RadAlertScript", "Sys.Application.add_load(function(){var t=radopen('test.aspx?', null);t.setSize(1000,700);t.Center();});", True)

Thank you,

 

Georgi Tunev
Telerik team
 answered on 18 Oct 2010
1 answer
72 views
Hello

I have column defined like BinaryImageColumn in Radgridview

when I press edit I can modify existing record with all textfields and I have pregenerated control where I can select image

Issue if I do not select any image it will remove exiting image Why it responding like this normally it must not touch change data if it is

exist ? Do somebody know solution many Thanks in advance

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
  
        <telerik:RadGrid ID="RadGrid1" runat="server" AllowAutomaticDeletes="True" 
            AllowAutomaticInserts="True" AllowAutomaticUpdates="True" 
            DataSourceID="SqlDataSource1" GridLines="None" Skin="Windows7" 
            AllowCustomPaging="True" AllowFilteringByColumn="True" AllowSorting="True" 
            AutoGenerateHierarchy="True">
            <ExportSettings ExportOnlyData="True" FileName="Export">
                <Excel Format="ExcelML" />
            </ExportSettings>
<MasterTableView AutoGenerateColumns="False" CommandItemDisplay="Top" 
                DataKeyNames="ManufacturerName" DataSourceID="SqlDataSource1" Frame="Void" 
                GridLines="None">
    <CommandItemSettings ShowExportToCsvButton="True" 
        ShowExportToExcelButton="True" 
        ShowExportToWordButton="True" />
    <Columns>
  
        <telerik:GridBoundColumn DataField="ManufacturerName" 
            HeaderText="Manufacturer Name" SortExpression="ManufacturerName" 
            UniqueName="ManufacturerName">
        </telerik:GridBoundColumn>
          
        <telerik:GridBinaryImageColumn AllowFiltering="False" AllowSorting="False" 
            DataField="ManufacturerLogo" DefaultInsertValue="" HeaderText="Logo" 
            ImageAlign="Middle" ImageHeight="100px" ImageWidth="100px" ResizeMode="Fit" 
            UniqueName="column" ConvertEmptyStringToNull="False">
        </telerik:GridBinaryImageColumn>
          
        <telerik:GridEditCommandColumn>
        </telerik:GridEditCommandColumn>
         
    </Columns>
  
<EditFormSettings>
<EditColumn UniqueName="EditCommandColumn1"></EditColumn>
</EditFormSettings>
  
    <CommandItemStyle Height="50px" Width="50px" />
</MasterTableView>
  
     </telerik:RadGrid>
       
       
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:dbConnectionString %>" 
              
            SelectCommand="SELECT * FROM [tbl_manufacturers]" 
              
            UpdateCommand="UPDATE tbl_manufacturers SET ManufacturerName = @ManufacturerName, ManufacturerLogo = @ManufacturerLogo WHERE (ManufacturerName = @ManufacturerName)" 
              
         
            <UpdateParameters>
                <asp:Parameter Name="ManufacturerName" />
                <asp:Parameter Name="ManufacturerLogo" DbType="Binary" />
            </UpdateParameters>
             
        </asp:SqlDataSource>
      
        <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
        </telerik:RadScriptManager>
Mira
Telerik team
 answered on 18 Oct 2010
2 answers
88 views
Hello,

I'm having trouble getting the onhover events to work the way I want and I was hoping someone could help.  Right now, I have javascript wired up to the OnRowMouseOver event for my grid, but I'm having issues finding out which particular cell the mouse is over to display the text I need to display.  For instance, my OnRowMouseOver event calls a function changeRow(srcRow,e).  The first two lines of changeRow are this:

var node = $find(e.get_id());

node = node.get_element();


Now, my node variable has the row record, but I have no clue what cell the pointer was over.  I have a function set up where all I have to do is pass it the text that I want to display in the hover text and it'll do the legwork, but I can't figure out what text to send along because I don't know what cell is being hovered over.

I've looked and looked, but I can't find anything listed that will help with this.  Also, I'd like to avoid using an onmouseover event for EVERY cell in the grid because the number of cells possible for this implementation is in the thousands, and it'll really hit our performance I fear.  As a kinda "gotcha", this function used to work with the ASP.NET RadControls, but now that I'm trying to upgrade to ASP.NET AJAX RadControls, it doesn't work anymore.

Can anyone help me with this?  I feel like it'll be something easy that I'm overlooking, but for the life of me I can't figure out what it is.

Thank you!
Luke Kasper
Top achievements
Rank 1
 answered on 18 Oct 2010
1 answer
203 views
Team

One of our client wants to apply sorting while click the link button of the first column

How can I call the Sort Command EventHandler when they click Financial Date YYYY (1st Column) link column. LinkButton.

In the Screenshot attached..

Note: All the Columns are AutoGenerated. We are not using ItemTemplates at all..

Its very critical time for me. Pls. help.

Thanks
 
Princy
Top achievements
Rank 2
 answered on 18 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?