Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
110 views
I'm hoping for some troubleshooting guidance.  I just installed RadControls for ASP.NET AJAX Q1 2011 SP1.  While there is a Telerik menu, the only menu item in it is "About".

Shouldn't there be something about Upgrade Project...?

Right now we have the Telerik.Web.UI.dll in our BIN directory. Should manually replace that  (just copy / paste over it), or is there a "better" way to make sure references and all that are all squared away?

Erjan Gavalji
Telerik team
 answered on 29 Apr 2011
3 answers
526 views
I have a user control that is taking a long time to load (15-20 seconds) mainly because there are many data entry fields and loops to load each field. It is optimized as best I can (one db roundtrip, caching, etc.), but it has nested RadTabStrip controls and other things.

How can I allow a page to load and then, after it has loaded, fire off a server-side (update panel?) call to load my custom user control? Ideally, I want a progress bar that I can interact with as the user control loads.

So, in theory:

1. Page loads.
2. OnLoad, the user control is initialized.
3. A progress bar is displayed in place of the user control.
4. Events fired in the child controls bubble up to the Page to update the progress bar.
5. After the control is loaded, the progress bar is removed and the user control is displayed.

Is this possible using the TelerikRadAjaxManager and Telerik progress bar?
Iana Tsolova
Telerik team
 answered on 29 Apr 2011
4 answers
121 views
I have a pretty simple page.  I have an Ajax Manager, two Ajax Panels and a very few other controls outside of either panel.  In the top Panel, it is just two radio buttons.  Depending on which button is clicked, I want the bottom panel to hide or unhide using the panel's .visible property.  The default is hidden when the page loads.  I have  breakpoint in my code (VS2010) for the _CheckedChanged event of both radio buttons and when I click the radio buttons, neither one seems to fire these event.

All I want to do is show or hide the lower panel full of controls.


AjaxManger code:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="rbDonationTypeGeneral">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="pnlILMO" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="rbDonationILMO">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="pnlILMO" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>


Radio-button Panel: (that hides/unhides ILMO panel below)
<telerik:RadAjaxPanel ID="pnlDonationType" runat="server" height="59px"
    width="300px">
    <asp:RadioButton ID="rbDonationTypeGeneral"
        runat="server"
        Checked="True"
        GroupName="grpDonationType"
        Text="   General Donation" />
    <br />
    <asp:RadioButton ID="rbDonationILMO"
        runat="server"
        GroupName="grpDonationType"
        Text="   In Loving Memory Of..." />
</telerik:RadAjaxPanel>




ILMO Panel:  (this is the panel that hides or un-hides depending on which radio button is selected above)
<telerik:RadAjaxPanel ID="pnlILMO" runat="server" height="373px" width="717px" Visible="False">
    A charitable contribution has been made to the Foundation:
    <br />
    <br />
    <b>In loving memory of:</b>
        <telerik:RadTextBox ID="txtILMO_Name"
            Runat="server"
            Width="175px"
            Wrap="False">
        </telerik:RadTextBox>
         
    Cared for in (city):
        <telerik:RadTextBox ID="txtHospiceCity"
            Runat="server"
            Width="175px"
            Wrap="False">
        </telerik:RadTextBox>
        <br />
        By (donor):
        <telerik:RadTextBox ID="txtDonorName"
            Runat="server"
            Width="260px"
            Wrap="False">
        </telerik:RadTextBox>
             
    E-mail:
        <telerik:RadTextBox ID="txtDonorEmail"
            Runat="server"
            Width="246px"
            Wrap="False">
        </telerik:RadTextBox>
        <br />
        Phone:
        <telerik:RadMaskedTextBox ID="txtDonorPhone"
            runat="server"
            Mask="(###) ###-####"
            Width="80">
        </telerik:RadMaskedTextBox>
            
    Address:
        <telerik:RadTextBox ID="txtDonorAddress"
            Runat="server"
            Width="452px"
            Wrap="False">
        </telerik:RadTextBox>
        <br />
        City:
        <telerik:RadTextBox ID="txtDonorCity"
            Runat="server"
            Width="260px"
            Wrap="False">
        </telerik:RadTextBox>
            
    State:
        <telerik:RadComboBox ID="cmbDonorState"
            Runat="server"
            DataSourceID="USStates"
            DataTextField="name"
            DataValueField="abbreviation"
            MarkFirstMatch="True"
            Skin="Forest" Width="150px">
        </telerik:RadComboBox>
            
    Zip:
        <telerik:RadTextBox ID="txtDonorZip"
            Runat="server"
            Width="103px"
            Wrap="False"
            MaxLength="10">
        </telerik:RadTextBox>
        <br />
        <br />
        <br />
        <b>Please send an acknowledgement to:</b><br /> Name:
        <telerik:RadTextBox ID="txtAcknowledgement_Name"
            Runat="server"
            Width="622px"
            Wrap="False">
        </telerik:RadTextBox>
        <br />
        Address:
        <telerik:RadTextBox ID="txtAcknowledgement_Address"
            Runat="server"
            Width="608px"
            Wrap="False">
        </telerik:RadTextBox>
        <br />
        City:
        <telerik:RadTextBox ID="txtAcknowledgement_City"
            Runat="server"
            Width="260px"
            Wrap="False">
        </telerik:RadTextBox>
            
    State:
        <telerik:RadComboBox ID="cmbAcknowledgement_State"
            Runat="server"
            DataSourceID="USStates"
            DataTextField="name"
            DataValueField="abbreviation"
            MarkFirstMatch="True"
            Skin="Forest"
            Width="150px">
        </telerik:RadComboBox>
            
    Zip:
        <telerik:RadTextBox ID="txtAcknowledgement_Zip"
            Runat="server"
            Width="105px"
            Wrap="False">
        </telerik:RadTextBox>
    <br />
    <br />
    <br />
</telerik:RadAjaxPanel>






Event code of the radio buttons:
Protected Sub rbDonationTypeGeneral_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles rbDonationTypeGeneral.CheckedChanged
    pnlILMO.Visible = False
End Sub
 
Protected Sub rbDonationILMO_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles rbDonationILMO.CheckedChanged
    pnlILMO.Visible = True
End Sub


Can someone please tell me what I'm missing or doing wrong.  Thanks.
Iana Tsolova
Telerik team
 answered on 29 Apr 2011
2 answers
320 views

How do I setup RadGrid.SelectedIndexChanged programatically?  I get the following error

"No overload for 'RadGrid1_SelectedIndexChanged' matches delegate 'System.EventHandler' "

I am trying to capture when the user clicks the "Go" button


:
:
:
RadGrid RadGrid1 = new RadGrid();
RadGrid1.DataSourceID = "SqlDataSource1";
RadGrid1.MasterTableView.DataKeyNames = new string[] { "Jobnumber" };
RadGrid1.Skin = "Default";
RadGrid1.Width = Unit.Percentage(100);
RadGrid1.PageSize = 5;
RadGrid1.AllowPaging = true;
RadGrid1.AllowSorting = true;
RadGrid1.AutoGenerateColumns = false;
RadGrid1.MasterTableView.PageSize = 15;
RadGrid1.GridLines = GridLines.Both;
RadGrid1.SelectedIndexChanged +=new EventHandler(RadGrid1_SelectedIndexChanged);  // Not work Generates error
:
:
:
       GridButtonColumn buttonColumn = new GridButtonColumn();
       buttonColumn.HeaderText = "Select File";
       buttonColumn.CommandName = "Select";
       buttonColumn.ButtonType = GridButtonColumnType.PushButton;
       buttonColumn.Text = "Go";
       buttonColumn.ItemStyle.HorizontalAlign = HorizontalAlign.Center;

       RadGrid1.MasterTableView.Columns.Add(buttonColumn);
:
:
:
:



    protected void RadGrid1_SelectedIndexChanged(object source, GridCommandEventArgs e)
    {
        if (e.CommandName == "Select")
        {
 
        }

    }







Pat
Top achievements
Rank 1
 answered on 29 Apr 2011
1 answer
100 views
I have two related menu's a horizontal top menu and a vertical childmenu

In the top menu I only want to show one level of items ie. those that are child of root! (level1)
and in the vertical menu I want to show child items of current selected item (level2,3 and 4 in a treeview)

when I select an item level1 in the radmenu it gets highlighted and when I select an item level 2,3 or 4 in the treeview I want the level 1 parent item in the radmenu to be highlighted as this does work when I dont have MaxDataBindDepth="1" in the Radmenu but then I get the dropdown menu showing all child items which I dont want. Is there a way of solving this with another function than MaxDataBindDepth="1" I saw MaxLevel in the documentation but it didnt work. (My client has RadControls ASP.NET-AJAX 2011Q1)

(MasterPage)
<
tr:RadMenu ID="mnuNavRoot" runat="server" MaxDataBindDepth="1" Flow="Horizontal" DataSourceID="smdsNav" /> 
<asp:SiteMapDataSource ID="smdsNav" runat="server" ShowStartingNode="false" SiteMapProvider="AspNetSqlSiteMapProvider" /> 
  
(ASPX Page)
 <tr:RadTreeView ID="tvNaviMain" runat="server" ShowLineImages="false" DataSourceID ="smds1">
</tr:RadTreeView
<asp:SiteMapDataSource ID="smds1" runat="server" ShowStartingNode="false" SiteMapProvider="AspNetSqlSiteMapProvider" /> 

If root = true Then 
     tvNaviMain.MaxDataBindDepth = 1
Else 
     smds1.StartingNodeOffset = 1 
End If

 

 

Any suggestions?

 

 

 

 

 

 

Magnus
Top achievements
Rank 2
 answered on 29 Apr 2011
1 answer
146 views
Good day,
Is it possible to call a tooltip on checkbox click and then call different content inside said tooltip when the checkbox is unchecked? - How exactly would I go about that?
Thanks so much!
Marin Bratanov
Telerik team
 answered on 29 Apr 2011
1 answer
223 views
I'm a Chinese ,My English is not good,sorry!

I tried to set a RadTextBox focus when the page loaded,but failed,why?
I used many of method
1.RadTextBox.Focus();
2.Page.SetFocus(RadTextBox.ClientID);
3.page.SetFocus(RadTextBox).
all failed.
who can help me? thanks.
Shinu
Top achievements
Rank 2
 answered on 29 Apr 2011
3 answers
62 views

When i want to delete an instance of a recurring event, the fuction "theScheduler_AppointmentUpdate" will  fired . My code is as bellow ,

void theScheduler_AppointmentUpdate(object sender, AppointmentUpdateEventArgs e)
{
  Appointment appointment = e.Appointment; 

  // People resizing 
  SPListItem li = GetListItem(appointment);
 
  if (appointment.RecurrenceState == RecurrenceState.Master)
  {
     // This means somebody try to delete an instance of recurring event                    
     RecurrenceRule recRule;
     RecurrenceRule.TryParse(appointment.RecurrenceRule, out recRule);
     if (recRule != null && recRule.Exceptions.Count > 0)
     {
        // The last exception is the DateTime of the deleted appointment
        DateTime deletedDateTime = recRule.Exceptions[recRule.Exceptions.Count - 1];
        CreateDeletedAppointment(deletedDateTime, appointment, li);
     }
   }
}
I find that the recRule.Exceptions always equal to 0 . Can somebody help me with this issue ? (I know that the "Exceptions" is created when we edit a recurring appointment)
william
Top achievements
Rank 1
 answered on 29 Apr 2011
2 answers
72 views
Hi,

We are getting the following error message while trying to install 2011 Q1 RAD controls. We un-installed the previous version and then tried to install the new version. ( Error is attached)

The system is running Windows XP - SP3

Thanks and Regards

Rajendran Menon
Rajendran
Top achievements
Rank 1
 answered on 29 Apr 2011
1 answer
158 views
PHello,

I have a problem in opening a window form after opening the radtooltipmanager..
Please view the webpage http://israel-jewelry-center.com/Pages/Categories/Bracelets.aspx. By coming over any item, a radtooltipmanager opens, and by clicking the big image, a radwindow opens.
The requirements is to change the radwindow control with a window (using the javascript command window.open). 
I added the following code to the Bracelets.aspx page:
function CloseActiveToolTipAndOpenUrl(path) {
            setTimeout(function () {
                var tooltip = Telerik.Web.UI.RadToolTip.getCurrent();
                if (tooltip) {
                    tooltip. hide();
                    window.open(path, "mywindow", "status=1");
                }
            }, 1000);
             
        }

But unfortunatily, just the command tooltip.hide() is executed, but the window.open(path, "mywindow", "status=1") didn't.
I dont understand why is that.

Please download the sample application from http://www.israel-jewelry-center.com/ToolTipSampleApplication.rar 

Please, I need your help,
It is appreciated to send me the modified code with an explaination,

Regards,
Bader
Marin Bratanov
Telerik team
 answered on 29 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?