Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
189 views
I am using VS 2008 trying to access SQL server 2005.  When trying to setup a database connection I get the following error:

Could not load file or assembly 'Microsoft.SqlServer.Management.Sdk.Sfc, Version=10.0.0.0, Culture=neutral, PublicKey Token=89845dcd8080cc91' or one of its dependecies.  The system cannot find the file specified.

It seems that this used to work before installing the Telerik controls or maybe it's just been a while since I've done this.  Thanks for any help.

Joe Weber
Top achievements
Rank 2
 answered on 22 Feb 2011
2 answers
136 views
Hi there,

In my appointment context menu, I have a delete menu item that I would like to cancel if the user does not confirm that they are sure they want to delete this item.  However, the args argument for OnClientAppointmentContextMenuItemClicked does not seem to have a "set_cancel" method in the same way as is the case on the OnClientAppointmentDeleting.  Here is what I am trying to do:

function onAppointmentContextMenuItemClicked(sender, args) {
    switch (args.get_item().get_value()) {
        case "CommandDelete":
            if (args.get_appointment().get_id().startsWith('booking'))
                type = "booking";
            else if (args.get_appointment().get_id().startsWith('fixture'))
                type = "fixture"; 
            if (!confirm("Are you sure you want to delete this " + type)) {
                args.set_cancel(true);
            }
            break;
    }
}

There is no set_cancel event on the args object, so I can't see how to cancel the callback to the server.  Can you tell me how I can cancel it?
Matthew
Top achievements
Rank 1
 answered on 22 Feb 2011
1 answer
67 views
Hello,

I'm trying to change the color of the day cell background when the number of activities per day is greater than 5.
Can anyone help me with that?

Regards,

João Machado
Veronica
Telerik team
 answered on 22 Feb 2011
1 answer
213 views
I have a RadPageView which I use with a RadMultiPage and RadTabStrip inside of a RadWindow. The problem is that my RadPageView does not stretch to fill the RadWindow. I set the Height and Width to 100%, and for the Width it works fine... (when I resize the window, the PageView is also resized). However, the height of the PageView only stretches down to the height of the controls that it contains. I spent a lot of time playing with the properties trying to get this to work... Is there an easy way to achieve this? Or do I have to handle client side OnResize events... It works for the width though.. shouldn't it be easy to also work for the height?
I attached some images to help describe my scenario... Thanks!!
Cori
Top achievements
Rank 2
 answered on 22 Feb 2011
1 answer
229 views
I've a radscheduler reading it's data in from a provider (which connects to exchange). If there's no account to connect to, or a problem with the service, I want the scheduler to simply be disabled and not render.

So I thought this simple peice of logic would do the trick:

if (Service != null)
{
    Calendar.DayStartTime = TimeSpan.Parse("05:00:00");
    Calendar.DayEndTime = TimeSpan.Parse("23:00:00");
    Calendar.Culture = System.Globalization.CultureInfo.CreateSpecificCulture("en-GB");
    Calendar.WeekView.HeaderDateFormat = "d";
    ScheduleProvider ExchangeScheduleProvider = new ScheduleProvider();
    ExchangeScheduleProvider.ExchangeService = Service;
    Calendar.Provider = ExchangeScheduleProvider;
}
else
{
    Calendar.Enabled = false;
    Calendar.Visible = false;
}

However, even though the scheduler shouldn't be enabled now in theory, it seems to ignore this and is desperate to try and databind. I get the following error:

[ArgumentException: DataKeyField, DataSubjectField, DataStartField and DataEndField are required for databinding]
   Telerik.Web.UI.Scheduling.DataSourceViewSchedulerProvider.EnsureDataFieldsAreSet() +204

Nowhere in my code do I set a datasource or tell it to databind.
I don't want it to databind or do anything, how do I disable the control?

Veronica
Telerik team
 answered on 22 Feb 2011
1 answer
130 views
Hello Please see the attached image file

In my webform one button clear form values. when i click on that button i want to clear the all selection even recurrence control values.

How to clear the recurrence control values.. In my case no value will be clear even whole page is refresh

urgenttttttttt
Thanks
Veronica
Telerik team
 answered on 22 Feb 2011
0 answers
106 views
Hello in my app i want clear the all recurrence rule values and unchecked the check box of recurrence control

if i click on the new button
What happend
i am adding user - schedule some task after that click on add new user that time the recurrence control is not refresh. I want reset all it's value it's load freshly..

How to do it need URGENTTTTTT

please find the attachment
Rahul
Top achievements
Rank 1
 asked on 22 Feb 2011
2 answers
118 views
Hi, I've started to try RadAjaxLoadingPanel, but it does work. I use MS Visual Studio 2010.
Loading pannel does nothing when I click button.

The Code I have tried is:

TesU.aspx

<%@ Page Language="c#" CodeBehind="TesU.aspx.cs" Inherits="ASOI.TesU" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/tr/xhtml11/DTD/xhtml11.dtd">
<html xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
<head id="Head3" runat="server">
    <style type="text/css">
        .module1
        {
            background-color: #dff3ff;
            border: 1px solid #c6e1f2;
        }
    </style>
</head>
<body class="BODY">
    <form runat="server" id="Form2" method="post">
    
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server" />

      <telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel1" IsSticky="false"
            EnableViewState="true" Enabled="true" MinDisplayTime="2000">
            <img id="imgLoader" src="Images/loading.gif" />
        </telerik:RadAjaxLoadingPanel>

    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="Buttton1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="Panel1" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

    
    <fieldset class="module1">
        <asp:Panel ID="Panel1" runat="server" HorizontalAlign="Center" Height="275px">
          
        </asp:Panel>
    </fieldset>

      <asp:Button ID="Button1" runat="server" Text="Click to see the loading image" OnClick="Button1_Click"
                Style="margin-top: 15px; margin-left: 15px"  />
    </form>
</body>
</html>


TesU.cs

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Web.UI;

namespace ASOI
{
    public partial class TesU : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            
            System.Threading.Thread.Sleep(2000);
        }
    }
}

Could anybody tell me, please, what I do wrong?
Denis Kupriyanov
Top achievements
Rank 1
 answered on 22 Feb 2011
7 answers
196 views
Hello,

im currently trying the telerik control and i have some problem to create my grid. I found 2-3 source code but probably my problem is, i call this grid into a ascx and i have 10-15 grid in one page, so the javascript have some trouble to find the correct control.

So my website is, an apsx page in a masterpage and in my aspx i create ascx page who's having this grid, because i have like 10 grid per page so i would like to clear my code so 1 aspx with 10 ascx and in each ascx i have 1 grid.

First i would like on single click to go in edit mode ( this is done ), after that i would like 2 things
if the user change row, call the sql update
if the user press enter, call the sql update

thanks.

here's my code :

<script type="text/javascript">
    
            function RowClick(sender, eventArgs)
            {
                sender.get_masterTableView().editItem(eventArgs.get_itemIndexHierarchical());                
            }
 
            
 
          function keyPressed(sender, args) {
              if (args.get_keyCode() == 13) {
                  sender.get_masterTableView().updateItem($(el).parents("tr")[0]);
                  var e = args.get_domEvent().rawEvent;
                  e.returnValue = false;
                  e.cancelBubble = true;
                   
 
                  if (e.stopPropagation) {
                      e.preventDefault();
                      e.stopPropagation();
                       
                  }
              }
          }
           
 
            </script>
 
</telerik:RadCodeBlock>
<table width="100%">
<tr><td align="center">
 
<telerik:RadGrid ID="RadGrid1" runat="server" AllowSorting="True" width="75%"
    AutoGenerateDeleteColumn="True" AutoGenerateEditColumn="True"
     GridLines="None" Skin="Vista"
    AllowAutomaticDeletes="True" AllowAutomaticInserts="True"
    AllowAutomaticUpdates="True" >
    <mastertableview autogeneratecolumns="False" CommandItemDisplay="Top"
        insertitempageindexaction="ShowItemOnFirstPage" editmode="InPlace">
        <CommandItemSettings AddNewRecordText="Add" ShowRefreshButton="False" />
        <Columns>
         
            <telerik:GridBoundColumn >
...
            </telerik:GridBoundColumn>
             
            
<telerik:GridBoundColumn >
...
            </telerik:GridBoundColumn>

        </Columns>
    </mastertableview>
    <clientsettings allowcolumnsreorder="True" reordercolumnsonclient="True">
        <selecting allowrowselect="True" />
        <ClientEvents OnRowClick="RowClick" OnKeyPress="keyPressed"/>
 
    </clientsettings>
</telerik:RadGrid>
 
</td></tr>
</table>
Radoslav
Telerik team
 answered on 22 Feb 2011
1 answer
155 views
Hi,
 I am using RadComboBox which is used to display near
1 lakhs records in Page Load. but it taking lots of time for loading
the data..
Pls explain how to achieve these task...

Thanks
Princy
Top achievements
Rank 2
 answered on 22 Feb 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?