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

I've an user control which has a AJAX Panel. This user control is loaded in a Page which has a AJAX Manager. I want to raise the Ajax_Request of the consuming page from withing the user control on certain condition.
I tried to use 
RadAjaxPanel1.ResponseScripts.Add(String.Format("$find('{0}').ajaxRequest();", 
RadAjaxManager1.ClientID));
This causes a error in MicrosoftAjax.debug.js Assembly:    System.Web.Extensions Version:     3.5.0.0 FileVersion: 3.5.30729.196
Microsoft JScript runtime error: Sys.ArgumentException: Value must not be null 
for Controls and Behaviors.Parameter name: element

How do I achieve the desired effect.

Regards

Alok
Maria Ilieva
Telerik team
 answered on 07 Jan 2011
5 answers
38 views
Hi, I just wondered if someone might be able to help me.

I have a radtooltip which is generated from a webservice for speed, and within this tooltip I have a radcalendar.  As you would expect none of the ajax events for the calendar work anymore.  Is there any way around this, or is it unfixable?

Cheers,

Davoc
Maria Ilieva
Telerik team
 answered on 07 Jan 2011
2 answers
81 views
Hey Guys,

I have the following problem:

I use the RadGrid in a SharePoint webpart. Everythink is ok but, when I use the group feature in relation with static headers, there is a layout issue with the GroupHeader.
The text of the groupheader is aligned to the top so that the first groupheader overlaps with radgrid headers and the next groupheader overlaps with the groupheader before.
To solve the problem I tried to set the VerticalAlign.(radGrid.GroupHeaderItemStyle.VerticalAlign = VerticalAlign.Middle;)
The crazy think no is, that when the RadGrid gets the focus, the groupheaders will be align correct. But after grouping they will be align wrong again.
I found a thread in in the forum which describes similar problems but this could not solve the problem.
The images in the attachements shows the problem.

Please Help!


Jan
Top achievements
Rank 1
 answered on 07 Jan 2011
3 answers
92 views
I've tried every solution provided on the forums and online and I'm still receiving the "Telerik is undefined" error when referencing

Telerik.Web.UI.RadListBoxItem in javascript code.  I'm using version 2010.2.826.35.   Here's what I've tried so far....

1.
<location path="Telerik.Web.UI.WebResource.axd">
    <system.web>
        <authorization>
            <allow users="*"/>
        </authorization>
    </system.web>
</location>

2. in <system.webServer>, <handlers>...
 
<add name="Telerik.Web.UI.WebResource.axd_" path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" preCondition="integratedMode,runtimeVersionv2.0" />

I'm at a lost right now.  I'm just trying to insert some rows in a RadListBox via javascript.   Any help is appreciated.

Thanks.

Juan

Juan
Top achievements
Rank 1
 answered on 07 Jan 2011
1 answer
48 views
Hi,
    Am using Rad Chart Control.
1) I can add one legend in single chart. Is this possible to add more than one legend in a single chart?
2) In Line series, based on condition for particular X-Y value, i want to show the image/icon in X-Axis for y-value. Is this possible?

Thanks.
Evgeni "Zammy" Petrov
Telerik team
 answered on 07 Jan 2011
1 answer
63 views
hi,
I have a RadTreeView as a page node list on a master page.When you click node in the treeview, a page will be showed in the right side of the master page. In the right side, I put an iframe, and the page will be shown in the iframe. I use client side event:OnClientNodeClicked for the RadTreeView. In the client event, it will set the src of the iframe:
myIfrmame.src = linkURL;

Now the question: 
When user click a node, I want to display a RadAjaxLoading Panel first before the render of the page completed. How to achieve that? Anyone who have any suggestion, will be greatly appreciated. 
zxp
Top achievements
Rank 1
 answered on 07 Jan 2011
1 answer
520 views
Hi! please reply me soon I can load up chart image.. it gives error could not load i tried the solution mentioned add handler in webserver i did it but still i am getting same problem below is my config file kindly help me out thanks

<system.webServer>
    <validation validateIntegratedModeConfiguration="false"/>
    <modules>
      
      <remove name="ScriptModule"/>
      <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <remove name="RadUploadModule"/>
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" preCondition="integratedMode,runtimeVersionv2.0"/>
      <remove name="RadCompression"/>
      <add name="RadCompression" type="Telerik.Web.UI.RadCompression" preCondition="integratedMode,runtimeVersionv2.0"/>
    </modules>
    <handlers>
      <remove name="WebServiceHandlerFactory-Integrated"/>
      <remove name="ScriptHandlerFactory"/>
      <remove name="ScriptHandlerFactoryAppServices"/>
      <remove name="ScriptResource"/>
      <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0"/>

      <remove name="Telerik_Web_UI_SpellCheckHandler_axd"/>
      <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0"/>
      <remove name="Telerik_Web_UI_DialogHandler_aspx"/>
      <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0"/>
      <remove name="Telerik_RadUploadProgressHandler_ashx"/>
      <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0"/>
      <remove name="Telerik_Web_UI_WebResource_axd"/>
      <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode,runtimeVersionv2.0"/>
      <add name="Telerik.ReportViewer.axd_*" path="Telerik.ReportViewer.axd" verb="*" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=4.0.10.310, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" preCondition="integratedMode,runtimeVersionv2.0"/>
    </handlers>
    <defaultDocument>
      <files>
        <clear />        
        <add value="Home.aspx" />
      </files>
    </defaultDocument>
  </system.webServer>
Evgenia
Telerik team
 answered on 07 Jan 2011
1 answer
104 views
I am getting follwing error when I try to get grid columns after setting data soure a table which AutoGenerateColumns property is true.  The bold line throws an exception whit message "Cannot find column bound to field 'date" even  the datatable has that column. I thought that may be a problem with rendering such it is not populated yet. Then I put that code in the columns created event and also pre render event. Result has not changed yet. Is there anyone faced tihs problem before?
Thnaks,


telerik:RadGrid ID="rgridDeliveryDate" skin="Mar"
              Width="100%" AutoGenerateColumns="true" AllowMultiRowSelection="True"           
              runat="server" Gridlines="None" EnableEmbeddedSkins="false">                
              <ClientSettings EnableRowHoverStyle="true">                  
                <Selecting AllowRowSelect="True"></Selecting>
                <Resizing AllowRowResize="True" EnableRealTimeResize="True" ResizeGridOnColumnResize="True"
                    AllowColumnResize="True"></Resizing>
              </ClientSettings>
           <MasterTableView Width="100%" Summary="" NoMasterRecordsText="Servis saatleri set edilmemis" >    
             
           </MasterTableView>           
        </telerik:RadGrid>

code behind
DataTable dt = mh.GetServicePeriods();
rgridDeliveryDate.PreRender += new EventHandler(rgridDeliveryDate_PreRender);
rgridDeliveryDate.DataSource = dt;
rgridDeliveryDate.DataBind();

GridBoundColumn grdCol = rgridDeliveryDate.Columns.FindByDataField("date") as GridBoundColumn;
grdCol.DataFormatString = "dd/MM/yyyy";
grdCol.HeaderText = "";



Pavlina
Telerik team
 answered on 07 Jan 2011
4 answers
141 views
Hi,

I have 3 combobox in my form Radcombobox1,Radcombobox2,Radcombobox2..

And i have done the following in my design

<tr>
        <td><asp:RequiredFieldValidator id="RequiredFieldValidator1"  
  runat="server" ErrorMessage="*"
  ControlToValidate="RadComboBox1"  
  InitialValue="Select Country" ValidationGroup="valorg">
</asp:RequiredFieldValidator>
<asp:RequiredFieldValidator id="RequiredFieldValidator7"  
  runat="server" ErrorMessage="*"
  ControlToValidate="RadComboBox1"  
  InitialValue="" ValidationGroup="valorg">
</asp:RequiredFieldValidator>

Country</td>
        <td>:</td>
        <td>
          
            <telerik:RadComboBox ID="RadComboBox1" Runat="server"
            OnClientSelectedIndexChanging="LoadStates"
                OnItemsRequested="RadComboBox1_ItemsRequested"
                 ShowMoreResultsBox="true" Skin="Windows7"
                
                 >
            </telerik:RadComboBox>
        </td>
        </tr>
        <tr>
        <td><asp:RequiredFieldValidator id="RequiredFieldValidator2"  
  runat="server" ErrorMessage="*"
  ControlToValidate="RadComboBox2"
  InitialValue="Select State"
   ValidationGroup="valorg">
</asp:RequiredFieldValidator><asp:RequiredFieldValidator id="RequiredFieldValidator10"  
  runat="server" ErrorMessage="*"
  ControlToValidate="RadComboBox2"
  InitialValue=""
   ValidationGroup="valorg">
</asp:RequiredFieldValidator>State</td>
        <td>:</td>
        <td>
          
            <telerik:RadComboBox ID="RadComboBox2" Runat="server"
             OnClientSelectedIndexChanging="LoadCities"
                OnClientItemsRequested="ItemsLoaded"
                OnItemsRequested="RadComboBox2_ItemsRequested" >
            </telerik:RadComboBox>

        </td>
        </tr>
        <tr>
        <td><asp:RequiredFieldValidator id="RequiredFieldValidator3"  
  runat="server" ErrorMessage="*"
  ControlToValidate="RadComboBox3"
  InitialValue="Select City" ValidationGroup="valorg">
</asp:RequiredFieldValidator><asp:RequiredFieldValidator id="RequiredFieldValidator11"  
  runat="server" ErrorMessage="*"
  ControlToValidate="RadComboBox3"
  InitialValue="" ValidationGroup="valorg">
</asp:RequiredFieldValidator>City</td>
        <td>:</td>
        <td>:<telerik:RadComboBox ID="RadComboBox3" Runat="server"
        
        OnClientItemsRequested="ItemsLoaded"
                OnItemsRequested="RadComboBox3_ItemsRequested"
        >
            </telerik:RadComboBox>
            </td>
        <td>
          
        </td>
        </tr>
Added below script in Body

<script type="text/javascript">
    //global variables for the countries and cities comboboxes
    var countriesCombo;
    var citiesCombo;

    function pageLoad() {
        // initialize the global variables
        // in this event all client objects
        // are already created and initialized
        countriesCombo = $find("<%= RadComboBox2.ClientID %>");
        citiesCombo = $find("<%= RadComboBox3.ClientID %>");
       
    }

    function LoadStates(combo, eventArqs) {
        var item = eventArqs.get_item();
        countriesCombo.set_text("Loading...");
        citiesCombo.clearSelection();

        // if a continent is selected
        if (item.get_index() > 0) {
            // this will fire the ItemsRequested event of the
            // countries combobox passing the continentID as a parameter
            countriesCombo.requestItems(item.get_value(), false);
        }
        else {
            // the -Select a continent- item was chosen
            countriesCombo.set_text(" ");
            countriesCombo.clearItems();

            citiesCombo.set_text(" ");
            citiesCombo.clearItems();
        }
    }

    function LoadCities(combo, eventArqs) {
        var item = eventArqs.get_item();

        citiesCombo.set_text("Loading...");
        // this will fire the ItemsRequested event of the
        // cities combobox passing the countryID as a parameter
        citiesCombo.requestItems(item.get_value(), false);
    }

    function ItemsLoaded(combo, eventArqs) {
        if (combo.get_items().get_count() > 0) {
            // pre-select the first item
            combo.set_text(combo.get_items().getItem(0).get_text());
            combo.get_items().getItem(0).highlight();
        }
        combo.showDropDown();
    }


        </script>

In Code Behind i have coded as below


 # region "Page Load"
    protected void Page_Load(object sender, EventArgs e)
    {

       // fn_createlandingpageforclient("Esthetic Smile Dental Clinic", "jks@jks.com", "drdsatish@gmail.com");

        try
        {
            Label1.Text = string.Empty;
            if (!IsPostBack)
            {
                //loadcountry(ddlcountry);
                loadcountry(RadComboBox1);
                //loadstate(ddlstate, ddlcountry.SelectedItem.Text);
                //loadstate(RadComboBox2, RadComboBox1.SelectedItem.Text);
                //loadcity(ddlcity, ddlcountry.SelectedItem.Text, ddlstate.SelectedItem.Text);
                //loadcity(RadComboBox3 , RadComboBox1.SelectedItem.Text, RadComboBox2.SelectedItem.Text);
            }
        }
        catch (Exception ex)
        {
            DAL.UnknownError objUnknownError = new UnknownError();
            objUnknownError.ReturnError(ex.Message);
        }


    }
    # endregion
 # region "Rad Combo box Itemrequested"
    protected void RadComboBox1_ItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e)
    {

        //loadstate(RadComboBox2, e.Text);
        
    }

    protected void RadComboBox2_ItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e)
    {
        // e.Text is the first parameter of the requestItems method
        // invoked in LoadCountries method
        //loadcountry(RadComboBox1);
        Session["country"] = e.Text;
        loadstate(RadComboBox2, e.Text);
        
    }

    protected void RadComboBox3_ItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e)
    {
        // e.Text is the first parameter of the requestItems method
        // invoked in LoadCities method
        //LoadCities(e.Text);
        loadcity(RadComboBox3,Convert.ToString(Session["country"]), e.Text);

    }
    # endregion

I have a radcaptcha with custom httphandler to avoid the image change in postbacks..

While i am saving the Radcombobox2 and Radcombobox3 are loosing the items..

As it is very urgent issue..Please suggest me the solution..


Thanks
Thenmozhi.R
Cori
Top achievements
Rank 2
 answered on 07 Jan 2011
1 answer
99 views
Is there a limit on how many times an appointment can recur? I created an appointment with the following properties:

Start date: 1/9/2003 12:00:00 AM
End date: 1/15/2003 12:00:00 AM

Recurrence rule:
DTSTART:20030109T000000Z
DTEND:20030115T000000Z
RRULE:FREQ=WEEKLY;UNTIL=20981231T000000Z;INTERVAL=1;BYDAY=TH

And sure, it recurs. But only until 3/24/2011. The last entry I get is one showing up from 3/24/2011 through 3/29/2011, and then, no more. Notice how the Recurrencerule says UNTIL=20981231? So how come it stops in 2011?

Naturally, if we move the schedule back one year, i.e.

Start date: 1/9/2003 12:00:00 AM
End date: 1/15/2003 12:00:00 AM

Recurrence rule:
DTSTART:20020109T000000Z
DTEND:20020115T000000Z
RRULE:FREQ=WEEKLY;UNTIL=20981231T000000Z;INTERVAL=1;BYDAY=WE

The last entry I can see is now 3/18/2010 through 3/23/2010.

As far as I know, this behavior isn't documented anywhere. Is this a bug?
Peter
Telerik team
 answered on 07 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?