Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
760 views

I have a RadWindow with a content template containing 3 labels. The window is displayed on Button click, but the labels do not update in the RadWindow, instead they keep thier default value. Any help would be great!

Code is a as follows: -

ASPX Page

<telerik:RadWindowManager ID="RadWindowManager1" runat="server"
    EnableShadow="True" KeepInScreenBounds="True" Behaviors="Close, Reload"
    Modal="True" ReloadOnShow="True" VisibleStatusbar="False">
<Windows>
            <telerik:RadWindow ID="winRegisterSum" runat="server">
            <ContentTemplate>
            <br />
            <asp:Label ID="Label2" runat="server" Text="Submit register with the following:"></asp:Label>
            <br /><br />
            <asp:Label ID="lblPresents" runat="server" Text="Presents"></asp:Label>
            <br />
            <asp:Label ID="lblAbsents" runat="server" Text="Presents"></asp:Label>
            <br />
            <asp:Label ID="lblLates" runat="server" Text="Presents"></asp:Label>
            <br /><br />
            <asp:Button ID="btnConfirm" runat="server" Text="Confirm" CssClass="defaultButton" OnClick="btnConfirm_Click"/>
            </ContentTemplate>
            </telerik:RadWindow>
                </Windows>
</telerik:RadWindowManager>


Code Behind

Label lblPresents = winRegisterSum.ContentContainer.FindControl("lblPresents") as Label;
Label lblAbsents = winRegisterSum.ContentContainer.FindControl("lblAbsents") as Label;
Label lblLates = winRegisterSum.ContentContainer.FindControl("lblLates") as Label;
 
lblPresents.Text = "New Label";
lblAbsents.Text = "New Label";
lblLates.Text = "New Label"
 
string script = "function f(){$find(\"" + winRegisterSum.ClientID + "\").show(); Sys.Application.remove_load(f);}Sys.Application.add_load(f);";
 
ScriptManager.RegisterStartupScript(Page, Page.GetType(), "key", script, true);
Marin Bratanov
Telerik team
 answered on 15 May 2013
1 answer
221 views
 I have a RadGrid, and there is a GridTemplateColumn as below:

 <telerik:GridTemplateColumn HeaderText="Approve">
                  <ItemTemplate>
                      <asp:LinkButton ID="LinkButtonIsLinkPublish" CommandName="ShowIsPublish" Text="<span style="font-size: 14px;">Approve</span>"
                       runat="server"></asp:LinkButton>
            </ItemTemplate>
 </telerik:GridTemplateColumn>


and i have a RadWindow which has a button as below:

<telerik:RadWindow ID="RadWindowIsPublish" runat="server" Title="Approve" Width="250px"
        Height="150px" VisibleOnPageLoad="false" Behaviors="Close,Resize,Move" Left="610px">
       <ContentTemplate>
                 <table width="100%">
                    <tr>                     
      <
td align="center">
             <telerik:RadButton ID="RadWindowIsPublisRadButton" runat="server" OnClick="RadWindowButton_Onclick"
                     CommandArgument="radwindowIsPublish">
                   </telerik:RadButton>
                      </td>
                        </tr>
                  </table>
      </ContentTemplate>
  </telerik:RadWindow>


I need to set the button's text which in Radwindow base on record's status in RadGrid, but now the button's text always keep the default value, cannot change it.
Any help would be great!



Marin Bratanov
Telerik team
 answered on 15 May 2013
6 answers
269 views
Hi!

I have a small problem. RadAjaxLoadingPanel does not seem to display itself on an ajax update. Events on the page are triggered as configured. It is just that loading panel never shows. I have also tried disabling CSS, but to no avail.

This is my aspx code:
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <telerik:RadAjaxManagerProxy ID="mngrProxy" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="Search1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="Search1" />
                    <telerik:AjaxUpdatedControl ControlID="ViewMain1" LoadingPanelID="lpnlNormal" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="ViewMain1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="ViewMain1" LoadingPanelID="lpnlNormal" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>
    <telerik:RadAjaxLoadingPanel ID="lpnlNormal" runat="server"></telerik:RadAjaxLoadingPanel>
    <div id="divSearch" class="pane pane-left">
        <sid:Search ID="Search1" runat="server" OnSearchStarted="Search1_SearchStarted"></sid:Search>
    </div>
    <div id="divView" class="pane pane-right">
        <sid:ViewMain ID="ViewMain1" runat="server"></sid:ViewMain>
    </div>
    <div class="clear-both" />
</asp:Content>


When I click a button in Search1 control a SearchStarted event is triggered and ViewMain1 control (containing RadGrid) is updated. However, lpnlNormal, never ever shows. Search1 and ViewMain1 are custom controls.
Vlad
Top achievements
Rank 1
 answered on 15 May 2013
3 answers
119 views
Hi,

I got a requirement there is a radcombobox and the user need to check atleast three items from it. If the user does not check three show alert that he need to select three or more items and prevent closing the dropdown.

Please help soon
Shahi
Princy
Top achievements
Rank 2
 answered on 15 May 2013
5 answers
116 views
Hi,
I have a filter function like;
RadPivotGrid1.FilterByValue(PivotGridFilterFunction.IsGreaterThan, pivotGridField,
                            RadPivotGrid1.Fields.GetFieldByUniqueName("Butce") as PivotGridAggregateField, "0", true);
RadPivotGrid1.FilterByValue(PivotGridFilterFunction.IsGreaterThan, pivotGridField,
                            RadPivotGrid1.Fields.GetFieldByUniqueName("Fiili") as PivotGridAggregateField, "0", true);
I would like at add And operator so that filter runs as (Butce>0 and Fiili>0).
How can I achieve this.

TIA.

Vasil
Telerik team
 answered on 15 May 2013
3 answers
132 views

Hi,

We've implemented RADSchedular control for our application. Scheduler control running properly in every browser except Internet Explorer 10 (IE 10).
In case of IE 10
1. Scheduler layout is not showing properly. (Please see the attached image - Schedular_IE_10.png)
2. Right click event is now working.

Whereas in Chrome it shows the proper layout. (Schedular_In_Chrome.png)

We've make some changes according to these instructions -

http://www.telerik.com/community/forums/aspnet-ajax/general-discussions/javascript-errors-in-ie10-and-the-site-is-working-fine-in-the-rest-browsers.aspx

http://www.hanselman.com/blog/BugAndFixASPNETFailsToDetectIE10CausingDoPostBackIsUndefinedJavaScriptErrorOrMaintainFF5ScrollbarPosition.aspx

We've followed "SITE-ONLY FIXES", but we are unable to solve the issue.


Development Environment

.NET Framework - 4.0.
Windows 7.
Visual Studio 2010.
Telerik.Web.UI - 2012.1.411.40
Telerik.Web.UI.Skins - 2012.1.411.40

Thanks in advance for your valuable inputs.

Thanking you.

Best Regards,
Pratap

Boyan Dimitrov
Telerik team
 answered on 15 May 2013
3 answers
125 views
Hi,

I am using RADPivotGrid from ASP.NET AJAX Telerik Controls 2013 Q1 Release.
I am trying to attach Grid to an OLAP Cube with ADOMD

<OlapSettings ProviderType="Adomd">
   <AdomdConnectionSettings Cube="XXXXX" DataBase="XX" ConnectionString="Provider=MSOLAP;Data Source=servername;Initial Catalog=xx;User=userid;Password=password">
   </AdomdConnectionSettings>
   </OlapSettings> 


I have set EnableConfigurationPanel="True" and added refrence to Microsoft.AnalysisServices.ADOMDClient . Where do i see OLAP Browser or Hierarchial Field List .There is no field list displayed in configuration panel.

RADPivotGrid has been added to Sharepoint 2010 Visual Web Part.

Please help


Tsvetoslav
Telerik team
 answered on 15 May 2013
2 answers
223 views
Hi

Iam using RadPanelBar menu in our DNN site. We need submenu in Flyout like the image shown below. Can anyone please let us know how to do like the image shown below.

Thanks
salaro
Top achievements
Rank 2
 answered on 15 May 2013
2 answers
143 views
I use this sample and run dynamil Menu for my project

 http://www.telerik.com/help/aspnet-ajax/menu-items-wcf-service.html

but i have many problem.when i use RadMenu for first Time it work correctly.but for second try ,sent noting to WebService by Menu.
1.Does it possible i call  WebService routine every time i click on RadMenu? 

In last Sample RadMenu sent to  WebService a RadMenuItemData  but not RadMenuItem exactly.I want to use template for my menu.for sample add checkbox  control and check it ,if that is necessary.
2.How can i do it ?
mohammad farahani
Top achievements
Rank 1
 answered on 15 May 2013
4 answers
258 views
Hello all
Before I start creating my own code, is there a proper way to lock the user from manualy entering a date & time in the textbox, but forcing them to use the popup pickers?

I have tried Readonly but then I can not use ShowPopupOnFocus="true"
I have tried EnableTyping="false" but then I can not use ShowPopupOnFocus="true"

What I'd like to see is when the user clicks the textbox, the calendar pops up and they can choose a date, then they can click the time button that pops up the time picker and change the time, but they can not type a date or a time into the box.

Any thoughts would be helpfull.
Shinu
Top achievements
Rank 2
 answered on 15 May 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?