Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
146 views
Hi,

When searching on rad control processing time performance issues I came across the below page:

http://www.telerik.com/help/aspnet-ajax/grid-viewstate-reduction-techniques.html

In step 6 it mentions "ajaxify the tabstrip and the multipage via RadAjaxManager"

How would I ajaxify my controls? Code below:

<asp:Panel ID="pnlTabs" runat="server" CssClass="tabstrip">

     <telerik:RadTabStrip
        ID="rtsTabs"
        runat="server"
        Skin="Default"
        MultiPageID="RadMultiPage1"
        SelectedIndex="0"  
        ReorderTabsOnSelect="true"
        Width="100%"
        AutoPostBack="true">
        <Tabs>
            <telerik:RadTab ID="Report1" Text="ABC">
            </telerik:RadTab>
            <telerik:RadTab ID="Report2" Text="ABC">
            </telerik:RadTab>           
        </Tabs>
    </telerik:RadTabStrip>

    <telerik:RadMultiPage
        ID="RadMultiPage1"
        runat="server"
        SelectedIndex="0"
        CssClass="pageView"
        Width="95%"
        RenderSelectedPageOnly="true">

        <telerik:RadPageView ID="rpvReport1" runat="server" CssClass="tabpage" Width="100%">
            <UC:Report1 runat="server" ID="ucReport1"  />
        </telerik:RadPageView>

        <telerik:RadPageView ID="rpvReport2" runat="server" CssClass="tabpage" Width="100%">
            <UC:Report2 runat="server" ID="ucReport2"  />
        </telerik:RadPageView>

    </telerik:RadMultiPage>

    
</asp:Panel>

Thanks.
Maria Ilieva
Telerik team
 answered on 03 Aug 2012
1 answer
444 views
I have a listview and each row has a RadButton in a column. I need to identify which row's button was clicked on the click event. The row describes a specific row in my database and I need to set a disable/enable column based upon the button clicked. Here is my item template for my ListView. I just need to figure out which row the button belongs on to get the ID. Thanks. 

<ItemTemplate>
    <tr class="rlvI">
        <td>
            <asp:Label ID="IDLabel" runat="server" Text='<%# Eval("ID") %>' />
        </td>
        <td>
            <asp:Label ID="TASK_NAMELabel" runat="server" Text='<%# Eval("TASK_NAME") %>' />
        </td>
        <td>
            <asp:Label ID="NEXT_RUNLabel" runat="server" Text='<%# Eval("NEXT_RUN") %>' />
        </td>
        <td>
            <asp:Label ID="FREQUENCYLabel" runat="server"  Text='<%# Eval("FREQUENCY") %>' />
        </td>
        <td>
            <telerik:RadButton ID="ENABLEDToggle" runat="server" Width=75 ButtonType="StandardButton" 
            ToggleType="CustomToggle" Checked='<%# Enabled_Converter(Eval("ENABLED")) %>' OnCheckedChanged="TaskStateChange_Clicked">
                <ToggleStates>
                    <telerik:RadButtonToggleState Text="Enabled" />
                    <telerik:RadButtonToggleState Text="Disabled" />
                </ToggleStates>
            </telerik:RadButton>
        </td>
    </tr>
</ItemTemplate>
Eyup
Telerik team
 answered on 03 Aug 2012
1 answer
52 views
Is it possible to have a secondary Y Axis on an HtmlChart, much like the MVC and Ajax RadChart?
Marin Bratanov
Telerik team
 answered on 03 Aug 2012
2 answers
84 views

Hi All,

I keep getting this error messaage. The messge says

"A script on this page is causing Internet Explorer to run slowly"

I am using telerik controls too, but not sure what should I do so that this error message goes away. I also followed this link and tried to resolve the error, I followed each and every step, but this article did not resolve the error.

http://support.microsoft.com/kb/175500

Thanks.

Maria Ilieva
Telerik team
 answered on 03 Aug 2012
1 answer
90 views
I am experiencing a strange behavior with RadWindowManager1.RadAlert 
I have an aspx page with different controls(textbox,combobox etc).Same page comes as Radwindow in another asp page.
I am trying to save record and show "record added successfully" message via Radalert.
If I enter all the details correctly and click save button,I am getting the Radalert with message.But in case I show some error message as ,for eg  "name is required",and then click save button by entering all required fields,I am not getting the RadAlert,but the record gets saved in the database.I am not sure is this is the exact reason behind.

Please find below my code.
aspx:
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
   <script type="text/javascript">
       function openWinRefClinic() {
           window.radopen("FrmReferralClinicGrid.aspx", "RefClinicDialog");
       }
 
       function confirmCallBackFn(arg) {
           if (arg == true) {
               document.getElementById("Button1").click();
           }
           else {
               document.getElementById("Button2").click();
           }
       }
 
       function alertAndNavigateDr() {
           window.location.href = "FrmReferralDoctorGrid.aspx";
       }
 
   </script>
   </telerik:RadCodeBlock>
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager> 
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
        <Windows>           
            <telerik:RadWindow ID="RefClinicDialog" Title="Referral Clinic Data" runat="server" Height="550px" Width="550px"
                Left="150px" Behaviors="Close" />
        </Windows>
    </telerik:RadWindowManager>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RCCountry">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RCCity" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RbSave">
                <UpdatedControls>
        
                    <telerik:AjaxUpdatedControl ControlID="RbSave" />
                    <telerik:AjaxUpdatedControl ControlID="Message" />
                    <telerik:AjaxUpdatedControl ControlID="lblerror" />
                    <telerik:AjaxUpdatedControl ControlID="lblName" />
                    <telerik:AjaxUpdatedControl ControlID="emailValidator" />
                    <telerik:AjaxUpdatedControl ControlID="lblContact" />
                    <telerik:AjaxUpdatedControl ControlID="lblLicence" />    
                    <telerik:AjaxUpdatedControl ControlID="lblScript" />                   
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RbClose">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RbClose" />
                </UpdatedControls>
            </telerik:AjaxSetting>            
        </AjaxSettings>
    </telerik:RadAjaxManager>
///
aspx.cs
protected void RbSave_Click1(object sender, EventArgs e)
      {         
         
 
          if (RCDrName.Text == "")
          {
              lblName.Visible = true;
              RCDrName.Focus();
              return;
          }
 
 
          if (RCClinic.SelectedIndex == 0)
          {
              lblerror.Visible = true;
              RCClinic.Focus();
              return;
          }
          if (RTMobile.Text == "")
          {
              lblContact.Visible = true;
              RTMobile.Focus();
              return;
          }
 
          if (RTLicenceNo.Text == "")
          {
 
              lblLicence.Text = "Please enter Health Authority License No!";
              lblLicence.Visible = true;
              RTLicenceNo.Focus();
              return;
          }
 
          
          if (!string.IsNullOrEmpty(Id))
          {
              bool statusU = _refDoctorService.UpdateDoctor(refdoctor);
              if (statusU == true)
              {
 
                  RadWindowManager1.RadAlert("Referral doctor data updated successfully!", 300, 100, "Update Referral Doctor", "alertAndNavigateDr", "myAlertImage.png");
              }
              else
              {
                  Message.InnerHtml = "Referral doctor data update failed";
                  return;
              }
 
          }
          else
          {
              //check if ref doctor exist             
              string search = " where Fld_RefDocName='" + refdoctor.Fld_RefDocName + "'" + " and " + " Fld_ClinicID=" + refdoctor.Fld_ClinicID;
              bool check = _refDoctorService.DoctorExists(search);
              if (check == true)
              {
                  RadWindowManager1.RadConfirm("Referral Doctor already exist!Do you want continue?", "confirmCallBackFn", 300, 100, null, "Warning", "myConfirmImage.png");
 
              }
              else
              {
                  bool result = _refDoctorService.SaveRefDoctor(refdoctor);
                  if (result == true)
                  {
                      RadWindowManager1.RadAlert("Referral doctor added successfully!", 300, 100, "Add Referral Doctor", "alertAndNavigateDr", "myAlertImage.png");
                  }
                  else
                  {
                      Message.InnerText = "Referral doctor is not added.Please try again!";
                      return;
                  }
              }
          }
          
           
      }
 
      protected void Button1_Click(object sender, EventArgs e)
      {
        //moving the fields
          bool result = _refDoctorService.SaveRefDoctor(refdoctor);
          if (result == true)
          {              
              RadWindowManager1.RadAlert("Referral doctor added successfully!", 300, 100, "Add Referral Doctor", "alertAndNavigateDr", "myAlertImage.png");               
          }
          else
          {
              Message.InnerText = "Referral doctor is not added.Please try again!";
              return;
          }
      }
Marin Bratanov
Telerik team
 answered on 03 Aug 2012
1 answer
65 views

I want to know if it is possible to change the day, week, month, and timeline from horizontal along the top to be display vertically on the left hand side then change the time which is vertically on the left hand side to horizontal along the top.

 
I have attached an image of what I need.

cheers

John M

Plamen
Telerik team
 answered on 03 Aug 2012
3 answers
116 views
Hi

I want to disable the 'delete a recurring appointment' popup (the one that asks whether they want to delete the series or the occurrence), instead I want to show an "Are you sure you want to delete...."
Due to the way I am using the scheduler I don't want to give the user the option of what to do with an appointment, I want to handle it my self.

I have tried setting DisplayDeleteConfirmation="False" but this only works with single occurrence appointments, the recurring ones still show.

Is there an event I can hook into to stop it displaying?

Bex
Bex
Top achievements
Rank 1
 answered on 03 Aug 2012
1 answer
41 views
I have been working on a new layout for an existing site. The layout uses jQuery for some styling and a notification system.

There is a number of stylesheets commented out for debugging and IE, eg:
    <!--<link href="Skin/v5/debug.css" rel="stylesheet" type="text/css" />-->
    <!--[if lt IE 9]><link rel="stylesheet" type="text/css" href="Skin/v5/ie8minus.css1" /><![endif]-->

Everything works fine, except on pages using RadAjaxManager. When a postback through the ajaxmanager occurs, these stylesheets mysteriously get activated.

If I remove jQuery, it doesn't happen... however then I lose the notification system and styling which I require.

I've got no idea where to begin to track down how this is occurring? I am guessing something is clashing with jQuery and the RadAjaxManager.
In chrome dev tools the stylesheets still appear to be commented out, yet the styles are somehow applied after AJAX postbox.

The problem occurs in all browsers - I have tested in Chrome, IE9, IE8 and Firefox.

Any ideas?
Maria Ilieva
Telerik team
 answered on 03 Aug 2012
4 answers
125 views
Hi,
I am using RadTreeView in my project which is running in DNN website. I am using DNN 5.5.x and a DNN 6.x Environment for testing my project. The problem is that in DNN 6.x when i click a node, which is not the top level node, the page is reloaded or refreshed and the node click event is not firing. If i click the top level node, then the node click event fires without a page refresh. The exact same code works perfectly fine in DNN 5.5.x.
I am building the RadTreeView from the code behind. I load the tree with different nodes on NodeExpand event. Any help or suggestion or idea on fixing this issue in DNN 6.x will be a great help.
Mojeeb
Top achievements
Rank 1
 answered on 03 Aug 2012
2 answers
92 views
hi
i am Creating task(appointment) then  another user can create task at the same time?is this a bug?
how can i ignore other user to create appointment on the others appointments created time?
thanks
Plamen
Telerik team
 answered on 03 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?