Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
108 views
Hi,
I am using RadGrid, and in CommandItemTemplate i have one asp DropDownList control. but int the SelectedIndexChanged(object sender, EventArgs e) event i am not able to find the that DropDown control. the code is as  follows

<CommandItemTemplate>
        <asp:Label ID="Label1" runat="server" Text="Show Results for Status"></asp:Label>
        <asp:DropDownList ID="ResultStatus_DropDownList" runat="server" OnSelectedIndexChanged="ResultStatus_DropDownList_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList>

</CommandItemTemplate>
the code behind is as follows

 ResultStatus_DropDownList_SelectedIndexChanged(object sender, EventArgs e)
{
// I tried with GridCommandItem
   GridCommandItem CommandItem = (GridCommandItem)e.GetType();
            DropDownList ResultStatus_DropDownList = (DropDownList)CommandItem.FindControl("ResultStatus_DropDownList");

//  But not able to find the ResultStatus_DropDownList control.
}
So please help

Regards,
Sagar






Vlad
Telerik team
 answered on 18 Sep 2008
1 answer
100 views
Hi,

If you place a radEditor further down a page requiring the user to scroll to reach it, if they perform a spell check the scroll position is moved, which is a bit disorienting.  IE seems to maintain its scroll position correctly.  You can see this in action by browsing to this example http://demos.telerik.com/ASPNET/Prometheus/Editor/Examples/ToolProvider/DefaultCS.aspx using Firefox and scrolling down the page to an editor further down.  Then if you enter an incorrectly spelt word and run the spell checker you can see the scroll position jump.

Is there a way to fix this?

Thanks,

Jeff
George
Telerik team
 answered on 18 Sep 2008
1 answer
166 views
Hi,
I'm using RadToolTipManager LoadOnDemand functionality in my project.

I've a usercontrol say abc.ascx and it consists of RadGrid control and someother controls,on radgrid Itemdatabound event I'm adding  rows of that grid in targetcontrol collection of tooltipmanager and then onajaxupdate event I load a xyz.ascx control to show on demand in the tooltip.

Now I use this usercontrol abc.ascx in  default.aspx , everything works as expected until I use the control twice.As long as there was 1 grid control (abc.ascx) in default.aspx it worked as expected ,but as soon as I added another instance of the abc.ascx (abc1 and abc2) then the tooltip position started jumping.It shows tooltip of grid2 in grid1 row.

Can some one please help asap ?

Here is my setting for RadToolTipManager

<telerik:RadToolTipManager ID="toolTipManager" runat="server" Position="BottomRight"
                Animation="Fade" OnAjaxUpdate="OnAjaxUpdate" Skin="Outlook"  AutoTooltipify="false"             
        Width="530px" Height="40%" AutoCloseDelay="20000"    OnClientBeforeShow="fnConfigure"    RelativeTo="Element"     
        Style="font-size: 18px; text-align: center; font-family: Arial; display: none;">      
    </telerik:RadToolTipManager>

<script type="text/javascript">
    <!--
function fnConfigure(sender, args) {
            sender._popupBehavior.set_keepInScreenBounds(false);           
        }
 -->   
    </script>

Thanks!
Rahul
Svetlina Anati
Telerik team
 answered on 18 Sep 2008
2 answers
159 views
Hi,

I applied my own style and skin to a date picker for if it is a required field.  Now when I hover over it the textbox becomes becomes bigger and looks like as if there is no style applied.

I do not know how to keep my style applied if the user hovers of the date picker.

Brendan
Missing User
 answered on 18 Sep 2008
3 answers
109 views
Hi,

I have two dropdownlists in one GridTemplateColumn. When I changed selected index in Vietove_Id DropDownList, data chenged for all Gatve_Id DropdDownLists, not for one

excuse me for my english

<telerik:RadGrid ID="ButaiRadGrid" runat="server"  
GridLines="None" AutoGenerateColumns="False" Skin="Hay"
<MasterTableView> 
     <Columns> 
            <telerik:GridTemplateColumn UniqueName="RowNumber" HeaderText = "Eil.Nr."
                <ItemTemplate> 
                    <asp:Label runat = "server" ID = "lblRowNumber"></asp:Label> 
                </ItemTemplate> 
            </telerik:GridTemplateColumn> 
            <telerik:GridTemplateColumn UniqueName="ButoNr" HeaderText = "Buto Nr."
                <ItemTemplate> 
                    <asp:TextBox ID="tbButoNr" runat="server" Text='<%# Bind("ButoNr") %>'
                    </asp:TextBox> 
                </ItemTemplate> 
            </telerik:GridTemplateColumn> 
                <telerik:GridTemplateColumn UniqueName="MoketojoKodas" HeaderText = "MokÄ—tojo kodas"
                    <ItemTemplate> 
                        <asp:TextBox ID="tbMoketojoKodas" runat="server" Text = '<%#bind("MoketojoKodas") %>'></asp:TextBox> 
                    </ItemTemplate> 
                </telerik:GridTemplateColumn> 
                    <telerik:GridTemplateColumn UniqueName="ElPastas" HeaderText = "El. paÅ¡tas"
                        <ItemTemplate><asp:TextBox ID="tbElPastas" runat="server" Text = '<%#Bind("ElPastas") %>'></asp:TextBox> 
                    </ItemTemplate> 
                </telerik:GridTemplateColumn> 
                    <telerik:GridTemplateColumn UniqueName="Telefonas" HeaderText = "Telefonas"><ItemTemplate> 
                        <asp:TextBox ID="tbTelefonas" runat="server" Text = '<%#Bind("Telefonas") %>'></asp:TextBox> 
                    </ItemTemplate> 
                </telerik:GridTemplateColumn> 
                <telerik:GridTemplateColumn UniqueName="AdresasCheckBox" HeaderText = "Vietinis adresas?"
                    <ItemTemplate> 
                        <asp:CheckBox ID="cbAdresas" runat="server" Checked = '<%#Bind("AdresasCheckBox") %>' AutoPostBack = "true"/> 
                        <asp:Table ID = "AdresTable" runat="server"
                           <asp:TableRow> 
                               <asp:TableCell> 
                                    <asp:Label ID="VietoveLabel" runat="server" Text="VietovÄ—"></asp:Label> 
                                </asp:TableCell> 
                                <asp:TableCell> 
                                     <asp:DropDownList ID="vietove_Id" runat="server" 
                                        DataSourceID = "VietovesSqlDataSource" DataValueField = "Locality_Id"  
                                        DataTextField = "Name" AutoPostBack="True"  
                                        SelectedValue='<%# Bind("Vietove") %>' OnSelectedIndexChanged = "vietove_Id_SelectedIndexChanged" > 
                                    </asp:DropDownList> 
                                </asp:TableCell> 
                            </asp:TableRow> 
                            <asp:TableRow> 
                                <asp:TableCell> 
                                    <asp:Label ID="gatveLabel" runat="server" Text="GatvÄ—:"></asp:Label> 
                                </asp:TableCell> 
                                <asp:TableCell> 
                                    <asp:DropDownList ID="gatve_Id" runat="server" 
                                        DataSourceID = "GatvesSqlDataSource" DataValueField = "Street_Id"  
                                        DataTextField = "Name" 
                                        ondatabound="gatve_Id_DataBound"
                                    </asp:DropDownList>   
                                </asp:TableCell> 
                            </asp:TableRow> 
                        </asp:Table> 
                    </ItemTemplate> 
                </telerik:GridTemplateColumn> 
                <telerik:GridButtonColumn CommandName="Delete" Text="IÅ¡trinti" UniqueName="Delete"></telerik:GridButtonColumn> 
            </Columns> 
        <EditFormSettings > 
            <EditColumn UniqueName="EditCommandColumn1"></EditColumn> 
        </EditFormSettings> 
    </MasterTableView>  
</telerik:RadGrid> 

Protected Sub populateDropDownItems(ByVal Streets As DropDownList, ByVal Locality_id As String
        StreetsSqlDataSource.SelectCommand = String.Format("exec Get_Streets @Locality_Id = {0}", Locality_id) 
        Streets.Items.Clear() 
        Streets.DataSourceID = "StreetsSqlDataSource" 
        Streets.DataBind() 
    End Sub 
 
    Protected Sub vietove_Id_SelectedIndexChanged(ByVal sender As ObjectByVal e As System.EventArgs) 
        Dim Item As GridDataItem = TryCast(TryCast(sender, DropDownList).NamingContainer, GridDataItem) 
        Dim vietove As DropDownList = Item.FindControl("Vietove_Id"
        Dim gatve As DropDownList = Item.FindControl("Gatve_Id"
        Dim telefonas As TextBox = Item.FindControl("tbTelefonas"
        telefonas.Text = vietove.SelectedItem.Text 
        Dim locality_id As String = vietove.SelectedValue 
        populateDropDownItems(gatve, locality_id) 
    End Sub 
 
    Protected Sub ButaiRadGrid_PreRender(ByVal sender As ObjectByVal e As System.EventArgs) Handles ButaiRadGrid.PreRender 
        Dim properties As New DataTable 
        properties = Session("Properties_Table"
        Dim i As Integer = 0 
        For Each item As GridDataItem In ButaiRadGrid.MasterTableView.Items 
            Dim cbAdresas As CheckBox = CType(item.FindControl("cbAdresas"), CheckBox) 
            Dim AdresTable As Table = CType(item.FindControl("AdresTable"), Table) 
            If cbAdresas.Checked Then 
                AdresTable.Visible = False 
            Else 
                AdresTable.Visible = True 
            End If 
            i = i + 1 
        Next 
        Session("Properites_Id") = properties 
        ButaiRadGrid.DataSource = properties 
    End Sub 

thanks!

Iana Tsolova
Telerik team
 answered on 18 Sep 2008
1 answer
120 views
Is there a way that only some specific Series will be displayed in the Legend?
Ves
Telerik team
 answered on 18 Sep 2008
1 answer
66 views
Hi all ,

While replacing your RadChart.Net2 Version 3 by RadChart.Net Version 4 (RadChart.Net2 v2.0.50727),

I got the following problems:

RadChart API v3

What is in RadChart API v4?

Telerik.Charting.Styles.ChartStyle

ChartSeriesItem.Label (Note: get and set properties)

Note: get only properties

RadChart.Series[i].Appearance.DefaultLabel

ChartSeries. DefaultLabel

RadChart.PlotArea.XAxis.Items.Font

RadChart.ChartTitle.Location

RadChart.Legend.Location

RadChart.PlotArea.XAxis.SpaceToLabel (Note: SpaceToLabel is int)

Note: [XAxis].Appearance.LabelAppearance.Dimensions.Margins is ChartMargins object.


Please help me .

Thanks ,
Phong Dang
Ves
Telerik team
 answered on 18 Sep 2008
1 answer
106 views
Hi,

       I have a section where i can display common information for all tabs and in main page. I was getting  "The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>). "  When i tried with <%= (Ex:  <%= Resources.DealerFinance.DealerNumber %>).  As suggested in forums, I replace <%= with <%#. Now i am not getting error but values are not displaying on the screen.

Can you please help me to resolve this issue?


Thanks
Ravi



<%

@ Page Language="C#" MasterPageFile="~/DealerFinance.master" AutoEventWireup="true"

CodeFile="DealerDetails.aspx.cs" Inherits="Dealer_DealerDetails" Title="Untitled Page" %>

<%

@ MasterType VirtualPath="~/DealerFinance.master" %>

<%

@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<%

@ Register TagPrefix="uc1" TagName="ucDealer" Src="Dealer.ascx" %>

<%

@ Register TagPrefix="uc2" TagName="ucVehicles" Src="Vehicles.ascx" %>

<%

@ Register TagPrefix="uc3" TagName="ucNotes" Src="Notes.ascx" %>

<%

@ Register TagPrefix="uc4" TagName="ucActivities" Src="Activities.ascx" %>

<%

@ Register TagPrefix="uc5" TagName="ucContacts" Src="Contacts.ascx" %>

<%

@ Register TagPrefix="uc6" TagName="ucCollaterals" Src="Collaterals.ascx" %>

<%

@ Register TagPrefix="uc7" TagName="ucBalance" Src="Balance.ascx" %>

<%

@ Register TagPrefix="uc8" TagName="ucInvoice" Src="Invoice.ascx" %>

<%

@ Register TagPrefix="uc9" TagName="ucAudit" Src="Audit.ascx" %>

<%

@ Register TagPrefix="uc10" TagName="ucPayments" Src="Payments.ascx" %>

<

asp:Content ID="Content2" ContentPlaceHolderID="DealerFinancePlaceHolder" runat="Server">

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">

<AjaxSettings>

<telerik:AjaxSetting AjaxControlID="RadAjaxManager1">

<UpdatedControls>

<telerik:AjaxUpdatedControl ControlID="rtsDealerDetails" />

</UpdatedControls>

</telerik:AjaxSetting>

<telerik:AjaxSetting AjaxControlID="rtsDealerDetails">

<UpdatedControls>

<telerik:AjaxUpdatedControl ControlID="pnlDealerDetails" />

</UpdatedControls>

</telerik:AjaxSetting>

</AjaxSettings>

</telerik:RadAjaxManager>

<table width="100%">

<tr>

<td align="center" class="moduleborder">

<table align="center">

<tr>

<td align="left">

<table width="50%">

<tr>

<td align="right" nowrap="nowrap" class="labelDisp">

<%

# Resources.DealerFinance.DealerNumber %>

</td>

<td align="left" nowrap="nowrap">

<asp:Label ID="lblDealerNumber" runat="server" SkinID="DisplayNormal">1005</asp:Label>

</td>

</tr>

<tr>

<td align="right" nowrap="nowrap" class="labelDisp">

<%

# Resources.DealerFinance.LegalName%>

</td>

<td nowrap="nowrap" align="left">

<asp:Label ID="lblLegalName" runat="server" SkinID="DisplayNormal">Kawasaki Legal Name </asp:Label>

</td>

</tr>

<tr>

<td align="right" nowrap="nowrap" class="labelDisp">

<%

# Resources.DealerFinance.Address%>

</td>

<td nowrap="nowrap" align="left">

<asp:Label ID="lblAddress" runat="server" SkinID="DisplayNormal">900 Irvine Blvd dkgjsjfd sfdjl </asp:Label>

</td>

</tr>

<tr>

<td align="right" nowrap="nowrap" class="labelDisp">

<%

# Resources.DealerFinance.Address%>

</td>

<td nowrap="nowrap" align="left">

<asp:Label ID="Label1" runat="server" SkinID="DisplayNormal">Righr Place Holder</asp:Label>

</td>

</tr>

<tr>

<td align="right" nowrap="nowrap" class="labelDisp">

<%

#Resources.DealerFinance.Address%>

</td>

<td nowrap="nowrap" align="left">

<asp:Label ID="Label2" runat="server" SkinID="DisplayNormal">Right Place Holder</asp:Label>

</td>

</tr>

</table>

</td>

<td align="left">

<table width="50%">

<tr>

<td align="right" nowrap="nowrap" class="labelDisp">

<%

# Resources.DealerFinance.DealerName %>

</td>

<td nowrap="nowrap" align="left">

<asp:Label ID="lblDealerName" runat="server" SkinID="DisplayNormal">Kawasaki Dealer Name</asp:Label>

</td>

</tr>

<tr>

<td align="right" nowrap="nowrap" class="labelDisp">

<%

# Resources.DealerFinance.KawasakiName %>

</td>

<td nowrap="nowrap" align="left">

<asp:Label ID="lblKawasakiName" runat="server" SkinID="DisplayNormal">Kawasaki</asp:Label>

</td>

</tr>

<tr>

<td align="right" nowrap="nowrap" class="labelDisp">

<%

# Resources.DealerFinance.StateCityZip %>

</td>

<td nowrap="nowrap" align="left">

<asp:Label ID="lblStateCityZip" runat="server" SkinID="DisplayNormal">Irvine, CA 92602</asp:Label>

</td>

</tr>

<tr>

<td align="right" nowrap="nowrap" class="labelDisp">

<%

# Resources.DealerFinance.Address%>

</td>

<td nowrap="nowrap" align="left">

<asp:Label ID="Label3" runat="server" SkinID="DisplayNormal">Left Place Holder</asp:Label>

</td>

</tr>

<tr>

<td align="right" nowrap="nowrap" class="labelDisp">

<%

# Resources.DealerFinance.Address%>

</td>

<td nowrap="nowrap" align="left">

<asp:Label ID="Label4" runat="server" SkinID="DisplayNormal">Left Place Holder</asp:Label>

</td>

</tr>

</table>

</td>

</tr>

</table>

</td>

</tr>

<tr>

<td align="center">

<telerik:RadTabStrip ID="rtsDealerDetails" runat="server"

Skin="Web20" AutoPostBack="True" SelectedIndex="9" >

<Tabs>

<telerik:RadTab Text="Details" />

<telerik:RadTab Text="Vehicles" />

<telerik:RadTab Text="Notes" >

<Tabs>

<telerik:RadTab Text="KMFC" />

<telerik:RadTab Text="KMC" />

<telerik:RadTab Text="Special" />

<telerik:RadTab Text="Flash" />

</Tabs>

</telerik:RadTab>

<telerik:RadTab Text="Activities" />

<telerik:RadTab Text="Contacts" />

<telerik:RadTab Text="Collaterals" />

<telerik:RadTab Text="Balance" />

<telerik:RadTab Text="Invoice" />

<telerik:RadTab Text="Audit" />

<telerik:RadTab Text="Payments" Selected="True" />

</Tabs>

</telerik:RadTabStrip>

</td>

</tr>

<tr>

<td>

<telerik:RadAjaxPanel ID="pnlDealerDetails" runat="server"></telerik:RadAjaxPanel>

</td>

</tr>

</table>

</

asp:Content>

Shinu
Top achievements
Rank 2
 answered on 18 Sep 2008
1 answer
118 views
I want to fire off a client side javascript function when the user clicks on a item in my tab strip. This is what I have in terms of the tab strip, I have tried all of the events and so far nothing seems to be firing. Any help would be appreciated.

<rad:RadTabStrip ID="radPersTabs" runat="server" MultiPageID="radmultipage" OnClientTabSelected ="buildPdfCost" >

<Tabs>

<rad:RadTab Text="1. Verse" Selected="true" SelectedCssClass="selected-tab" HoveredCssClass="hovered-tab">

</rad:RadTab>

<rad:RadTab Text="2. Personalization" SelectedCssClass="selected-tab" HoveredCssClass="hovered-tab">

</rad:RadTab>

<rad:RadTab Text="3. Envelopes" SelectedCssClass="selected-tab" HoveredCssClass="hovered-tab">

</rad:RadTab>

<rad:RadTab Text="4. Preview" SelectedCssClass="selected-tab" HoveredCssClass="hovered-tab">

</rad:RadTab>

</Tabs>

</rad:RadTabStrip>

Shinu
Top achievements
Rank 2
 answered on 18 Sep 2008
1 answer
122 views
Hello..

I am using a RAD ComboBox with the AJAX Manager.  Both are the newest versions.

Whenever I call the ExportToHTTPResponse, the combobox stops working.

I have tried capturing the AbortThreadException, but that did not do the trick.. Can you give me a hand with this one??

Thanks,

Matt
Rosi
Telerik team
 answered on 18 Sep 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?