Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
63 views
Hi All,

I have 2 RagGrids under a RadAjaxPanel. I need to update the 2nd RadGrid as per the selection in the first. I can't achieve this.

Note: I have used the above controls inside a content panel hold by a Master page.

Masterpage.master
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="Telerik" %>
<body>
  <form id="form1" runat="server">
  <Telerik:RadScriptManager ID="radScriptManager1" runat="server">
  </Telerik:RadScriptManager>
..
..

Default.aspx

    <radA:AjaxLoadingPanel ID="lp" runat="server" ...>
        <asp:Image ID="Image1" runat="server" ImageUrl="~/RadControls/Ajax/Skins/Default/loading.gif"
            BorderWidth="0px" AlternateText="Loading"></asp:Image>
    </radA:AjaxLoadingPanel>
    <radA:RadAjaxPanel ID="ajaxPanelSearch" runat="Server" ... />
     <div>
    
        <radG:RadGrid ID="RGrid1" runat="server" ... .... ... >
        .....
        .....
        </radG:RadGrid>

        <radG:RadGrid ID="RGrid2" runat="server" ... .... ... >
        .....
        .....
        </radG:RadGrid>

    </div>
    </radA:RadAjaxPanel>


Can anyone help on solving this.?

Thanks.
Chilambarasan
Top achievements
Rank 1
 answered on 30 Mar 2012
8 answers
321 views
Hello

I need to export a RadEditor to a RTF, but I need to do it silently on the server and not popup a saveas window to the user. How can I achieve this please ?

Regards
Mihai
Rumen
Telerik team
 answered on 30 Mar 2012
2 answers
264 views
HI,

recently we have upgraded RadControls

for ASP.NET AJAX Q1 2010 to ASP.NET AJAX Q1 2012.

 


i am trying

to open Tooltip on a button click in RadToolBar in javascript. the Tooltip is showing relative to the element. the problem is when page is posted back and i try to open the tooltip it is not showing relative to element (RadToolBar) even though i am setting the targetcontrol on client side.

need some help to resolve this issue.

please find the code below

Contentpage javascript:

 

function

 

 

OnToolbarClientButtonClicking(sender, args) {

 

 

 

var button = args.get_item();

 

 

 

var sCommandName = button.get_commandName();

 

 

 

//alert(button.get_commandName());

 

 

 

 

 

 

 

 

if (sCommandName == 'add') {

 

 

 

var hidManage = '<%=hidManageId.ClientID %>'

 

 

 

 

 

ShowToolTip(document.getElementById(hidManage).value);

args.set_cancel(

 

true);

 

}

 

 

 

 

}


User Control:

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SearchUploadContainer.ascx.cs"
    Inherits="AppWeb.ControlLibrary.SearchUploadContainer" %>
<%@ Register Assembly="WebControlLib" Namespace="WebControlLib" TagPrefix="ccl" %>
<%@ Register TagPrefix="telerik" Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" %>
<link rel="stylesheet" type="text/css" href="../StyleSheet.css" />
<ccl:WTToolTip runat="server" ID="wtToolTip" IsClientID="true" TargetControlID="ManageToolbar" AutoCloseDelay="0"
    ShowEvent="FromCode" HideEvent="FromCode" RelativeTo="Element" Position="MiddleRight"
    EnableTheming="true" Modal="true" Width="230px" Height="400px" OnClientShow="SetFocus" >
    <div class="contentBlock" style="width: 220px">
        <telerik:RadScriptBlock ID="rsb" runat="server">
function ShowToolTip(manage, appttype, dtDate, slotId) {
                   
                    var tooltip = $find("<%=wtToolTip.ClientID%>");
                    var txt = $find("<%=txtContainer.ClientID%>");
                   

                    tooltip.set_targetControlID('');
                    tooltip.set_targetControlID(manage);

                  

                    if (appttype != null && appttype != undefined) {
                        document.getElementById("<%=hdnApptType.ClientID%>").value = appttype;
                    }

                    if (dtDate != null && dtDate != undefined) {
                        document.getElementById("<%=hdnDate.ClientID%>").value = dtDate;
                    }

                    if (slotId != null && slotId != undefined) {
                        document.getElementById("<%=hdnSlotSchedule_id.ClientID%>").value = slotId;
                    }

                    EnableDisableControls();
                   
                    //setTimeout(function () {
                        tooltip.show();
                    //}, 1000);

                    //tooltip.show();
                    SetFocus();

                }
</telerik:RadScriptBlock>
        <h2 class="contentBlockTop" style="text-align: left; width: 210px;">
            <ccl:WTLabel ID="lblContentTopText" runat="server" Width="210px"></ccl:WTLabel>
            <asp:HiddenField ID="hidManageId" runat="server" />
            <asp:HiddenField ID="hdnApptType" runat="server" />
            <asp:HiddenField ID="hdnDate" runat="server" />
            <asp:HiddenField ID="hdnSlotSchedule_id" runat="server" />
        </h2>
</ccl:WTToolTip>

Jay
Top achievements
Rank 1
 answered on 30 Mar 2012
1 answer
141 views
Hello all,

am using Rad Scheduler control in VS 2010 to display meetings on each day in monthly view. But there seems to be a problem with width settings as the meetings scheduled only on current date(i.e today) is shown in correct form. Please find the attached screenshot of the page. Meeting is correctly showing on 29th (today), but there are meetings on other days (eg: 28th, 30th) and it's not getting displayed in the expected format.

Requesting help to fix the issue.

Ivana
Telerik team
 answered on 30 Mar 2012
1 answer
101 views
Background:
I have an ASP.NET page that contains a RadScheduler control. When I browse to the page, it displays appointments that are stored in a SQL Server table. When I double-click an appointment, I can edit the text, click [Save], and the appointment is successfully updated. The update is reflected in 2 places; the appointment within the scheduler shows the update that was entered, plus the row in the database table reflects the update as well. The row in the database table is updated by some code that resides within the AppointmentUpdate event associated with the scheduler control.

Problem:
If I double-click on an appointment, and click [Options] to open the advanced form, change some text or date/time values, and click [Save], the advaned form is closed, but nothing happens. The appointment that was edited retains its previous settings and the AppointmentUpdate event is not fired.

After researching this issue, I decided that maybe I needed to apply some customized tweaks to the advanced form, so I applied the example Customizing the Advanced Insert and Edit Forms. But in the end, I have the same problem; whenever the advanced form is used, no changes are made to the appointments, and the AppointmentUpdate event is never executed.

What should I be looking for in order to resolve this problem?

Thank you,
Steven
Ivana
Telerik team
 answered on 30 Mar 2012
1 answer
96 views
Hi

I am trying to use PanelBar for a set of FAQ, where the top level items are Categories and the child items are Individual pairs of Questions and Answers drawn from a database. Items are added to the panelbar in code behind in the page load event.

The answer text may contain hyperlinks to websites, so I want these links clickable and not the whole child item. How do I prevent the whole child item being a live link, which seems to block the function of the embedded links?

Thanks for any help you can give me

I am using Q2 2010 version

Thanks

Clive
Kate
Telerik team
 answered on 30 Mar 2012
1 answer
136 views
I have a radgird with 3 sub levels, what they want is 3 drop down menus on the page that will open to the level of the radgrid.  So the frist drop down shows the information that they want. then the second drop down will open the radgrid and show the second level and so on.  Is there a way to do this.
Antonio Stoilkov
Telerik team
 answered on 30 Mar 2012
8 answers
457 views
Hi,

I am currently using "RadListBox1.AllowDelete = false" which removes the delete button. Instead, I would like the delete button to be grayed out -- as when deletion is allowed but no item is selected. Is this possible to set server side?

Sean
Dimitar Terziev
Telerik team
 answered on 30 Mar 2012
1 answer
47 views
hi,
in the following code, i'm unable to select the flash player which is within the RadPage.
the interesting thing however is if i place a opened ended Div, before the RadajaxPanel, it works to allow me to select the flash player.
how it is suppose to behave is when i click on the flash, i can drag the image inside around as the image scrolls within the flash player.

any ideas?

code here:

<telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel3" LoadingPanelID="RadAjaxLoadingPanel1"
OnAjaxRequest="refreshViewer" CssClass="ViewArea" RenderMode="Inline">
               
     <telerik:RadMultiPage runat="server" ID="RadMultiPage1" RenderSelectedPageOnly="true" CssClass="">
                       
           <telerik:RadPageView ID="viewView" runat="server" Selected="true" CssClass="">
                      <telerik:RadMultiPage runat="server" ID="views" RenderSelectedPageOnly="true" CssClass="">
                              <telerik:RadPageView ID="viewViewer" runat="server" CssClass="">
                                        <telerik:RadScriptBlock ID="RadScriptBlock3" runat="server">

                                            <script language="javascript" type="text/javascript">

                                                    function showDocument() {
                                                   var flashvars = Flash stuff here......

                                            <div id="documentViewer" style="visibility: hidden;" class="">
                                                Flash is not installed...
                                            </div>
                                       
                                    </telerik:RadPageView>
                                  
                                </telerik:RadMultiPage>
                            </telerik:RadPageView>
                        </telerik:RadMultiPage>
 </telerik:RadAjaxPanel>
          
                        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Office2007"
                            IsSticky="true" InitialDelayTime="0" MinDisplayTime="10" CssClass="fillParent" /
Dimitar Terziev
Telerik team
 answered on 30 Mar 2012
2 answers
262 views
Hi, 

I am trying to get the value for the currently selected item when the SelectedIndexChanged event is fired. Currently, The SelectedValue is "" and the SelectedIndex is -1.  The text is not always unique (due to backwards compatibility) so this cannot be used reliably.  There is also no useable information in the event object.

What gives?  How am i supposed to use auto complete and get the selected value?  Also, the whole point of this is for the user to not have to click a button to submit it.

As a side note i am quite surprised there is no SelectedValueChanged event (but this is an aside).

<telerik:RadComboBox
    ID="comboBoxGroupSelection"
    runat="server"
    EmptyMessage="Search for a group"
    MarkFirstMatch="True"
    AllowCustomText="False"
    MaxHeight="300"
     OnSelectedIndexChanged="comboBoxGroupSelection_SelectedIndexChanged"
    AutoPostBack="True"> </telerik:RadComboBox>

Private Sub bindGroups()
 
        Dim Group As New Groups
 
        Dim resultSet As DataSet = Group.GetItems(xmlFile.DBConnect)
        Dim resultView As DataView = resultSet.Tables(0).AsDataView()
        resultView.Sort = "createdDt desc"
        comboBoxGroupSelection.DataValueField = "id"
        comboBoxGroupSelection.DataTextField = "name"
        comboBoxGroupSelection.DataSource = Group.GetItems(xmlFile.DBConnect)
        comboBoxGroupSelection.DataBind()
 
 
    End Sub
 
    Protected Sub comboBoxGroupSelection_SelectedIndexChanged(ByVal Sender As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs)
 
 
       AddGroup(**SELECTEDVALUEHERE**)
 
    End Sub
Ivana
Telerik team
 answered on 30 Mar 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?