Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
335 views
Hello,

I have a Tabstrip.
The following is a snippet showing relevant ASPX code.
I can select the Tabs in the code behind with rtsTab.SelectedIndex = 2.
But how can I select the Child-Tabs in the code behind?

<telerik:RadTabStrip ID="rtsTab" runat="server" OnClientTabSelecting="onTabSelecting"

 

 

SelectedIndex="0" Skin="Vista" Width="100%" MultiPageID="mpTab">

 

 

<Tabs>

 

 

<telerik:RadTab runat="server" PageViewID="pv1" Selected="True" Text="Tab1">

 

 

</telerik:RadTab>

 

 

<telerik:RadTab runat="server" PageViewID="pv2" Text="Tab2">

 

 

</telerik:RadTab>

 

<telerik:RadTab runat="server" Text="Tab3" SelectedIndex="0">

 

 

<Tabs>

 

 

<telerik:RadTab Text="Child1" PageViewID="pvC1" Selected="True" />

 

 

<telerik:RadTab Text="Child2" PageViewID="pvC2" />

 

 

</Tabs>

 

 

</telerik:RadTab>

 

</Tabs>

Thanks
Thomas

 

Paul
Telerik team
 answered on 02 Sep 2009
5 answers
560 views
Hi,
I cannot get the OnItemUpdated command to fire for the code given below.


        <radG:RadGrid id="MakerGrid" OnItemUpdated="MakerGrid_ItemUpdated" ShowStatusBar="true" OnItemInserted="MakerGrid_ItemInserted" 
            EnableAJAX="False" AllowAutomaticDeletes="True" AllowAutomaticUpdates="True" runat="server" 
            Skin="Default2006" AllowSorting="True" PageSize="15" ShowFooter="True" AllowPaging="True">  
            <PagerStyle CssClass="GridPager_Default GridPager_"></PagerStyle>  
            <AlternatingItemStyle CssClass="GridAltRow_Default GridAltRow_"></AlternatingItemStyle>  
            <GroupHeaderItemStyle CssClass="GroupHeader_Default GroupHeader_"></GroupHeaderItemStyle>  
            <FilterMenu NotSelectedImageUrl="~/RadControls/Grid/Skins/Default/NotSelectedMenu.gif" SelectedImageUrl="~/RadControls/Grid/Skins/Default/SelectedMenu.gif"></FilterMenu>  
            <MasterTableView EditMode="InPlace" CommandItemDisplay="None" AutoGenerateColumns="False" CssClass="MasterTable_Default MasterTable_">  
                <RowIndicatorColumn Visible="False">  
                    <ItemStyle CssClass="ResizeItem_Default ResizeItem_"></ItemStyle>  
                    <HeaderStyle Width="20px" CssClass="ResizeHeader_Default ResizeHeader_"></HeaderStyle>  
                </RowIndicatorColumn>  
                <EditFormSettings>  
                    <EditColumn UniqueName="EditCommandColumn1"></EditColumn>  
                </EditFormSettings>  
                <Columns>  
                    <radg:GridHyperLinkColumn UniqueName="linkColumn" NavigateURL="" Target="_blank" Text="<img border='0' alt='Open Amendment' src='../../common/bookimages/open_book.gif'>"></radg:GridHyperLinkColumn>  
                    <radg:GridBoundColumn DataField="fkMaker" UniqueName="fkMaker" Display="False"></radg:GridBoundColumn>  
                    <radg:GridBoundColumn HeaderText="Precis" DataField="precis" UniqueName="Precis"></radg:GridBoundColumn>  
                    <radg:GridBoundColumn HeaderText="Description" DataField="description" UniqueName="Description"></radg:GridBoundColumn>  
                    <radg:GridBoundColumn HeaderText="Status" DataField="status" UniqueName="Status"></radg:GridBoundColumn>  
                    <radg:GridBoundColumn HeaderText="cleaned" DataField="cleaned" UniqueName="cleaned" visible="false"></radg:GridBoundColumn>  
                    <radg:GridBoundColumn HeaderText="Date Created" DataField="DateCreated" ReadOnly="True" UniqueName="DateCreated"></radg:GridBoundColumn>  
                    <radg:GridBoundColumn HeaderText="Who Created" DataField="WhoCreated" UniqueName="WhoCreated"></radg:GridBoundColumn>  
                    <radg:GridEditCommandColumn HeaderText="Edit" UpdateImageUrl="../../../common/baseimages/apply.gif" InsertImageUrl="../../../common/baseimages/apply.gif" 
                        EditImageUrl="../../../common/controlimages/gredit.gif" ButtonType="ImageButton" CancelImageUrl="../../../common/baseimages/cancel.gif" UniqueName="EditColumn">  
                        <ItemStyle HorizontalAlign="Center" CssClass="gridButton"></ItemStyle>  
                    </radg:GridEditCommandColumn>  
                    <radg:GridButtonColumn HeaderText="Delete" ImageUrl="../../../common/baseimages/trash.gif" CommandName="Delete" ConfirmText="Delete this package?" 
                        ButtonType="ImageButton" Text="Delete" UniqueName="DeleteColumn">  
                        <ItemStyle HorizontalAlign="Center" CssClass="gridButton"></ItemStyle>  
                        <HeaderStyle Width="20px"></HeaderStyle>  
                    </radg:GridButtonColumn>  
                    <radg:GridButtonColumn HeaderText="Clean" CommandName="Clean" ConfirmText="Clean this amendment package for publishing?" ImageUrl="../../../common/baseimages/discuss.gif" ButtonType="ImageButton" Text="Clean this amendment" UniqueName="CleanAm">  
                        <ItemStyle HorizontalAlign="Center" CssClass="gridButton"></ItemStyle>  
                        <ItemStyle HorizontalAlign="Center" ></ItemStyle>  
                    </radg:GridButtonColumn>  
                    <radg:GridButtonColumn HeaderText="In Force" CommandName="Enforce" ConfirmText="Enforce this amendment package?" ImageUrl="../../common/treeimages/page_cross_red.gif" ButtonType="ImageButton" Text="Enforce this amendment" UniqueName="EnforceColumn">  
                        <ItemStyle HorizontalAlign="Center" ></ItemStyle>  
                    </radg:GridButtonColumn>  
                    <radg:GridBoundColumn HeaderText="Date In Force" DataField="DateModified" UniqueName="DateInForce"></radg:GridBoundColumn>  
                    <radg:GridHyperLinkColumn HeaderText="E-Plan" UniqueName="ePlan" NavigateURL="" Target="_blank" Text="<img border='0' alt='Draft E-Plan' src='./../../common/baseimages/amendments/draft.gif' width='24px'>">  
                        <ItemStyle HorizontalAlign="Center" ></ItemStyle>  
                    </radg:GridHyperLinkColumn>  
                    <radg:GridHyperLinkColumn HeaderText="Current" UniqueName="Current" NavigateURL="" Target="_blank" Text="<img border='0' alt='Current Version Detail Report' src='./../../common/baseimages/amendments/view_detail.gif' width='24px'>">  
                        <ItemStyle HorizontalAlign="Center" ></ItemStyle>  
                    </radg:GridHyperLinkColumn>   
                              
                </Columns>  
                <ExpandCollapseColumn Visible="False">  
                    <HeaderStyle Width="19px"></HeaderStyle>  
                </ExpandCollapseColumn>  
            </MasterTableView>  
            <HeaderStyle CssClass="GridHeader_Default GridHeader_"></HeaderStyle>  
            <SelectedItemStyle CssClass="SelectedRow_Default SelectedRow_"></SelectedItemStyle>  
            <ActiveItemStyle CssClass="ActiveRow_Default ActiveRow_"></ActiveItemStyle>  
            <ItemStyle CssClass="GridRow_Default GridRow_"></ItemStyle>  
            <FooterStyle CssClass="GridFooter_Default GridFooter_"></FooterStyle>  
        </radG:RadGrid>  
 

CODEBEHIND
    Public Sub MakerGrid_ItemUpdated(ByVal source As Object, ByVal e As Telerik.WebControls.GridUpdatedEventArgs) Handles MakerGrid.ItemUpdated  
 
        'Get the drop-down-list value  
        Dim dataEditItem As GridEditableItem = e.Item  
        Dim cID As String = CType(dataEditItem("fkMaker").Controls(0), TextBox).Text  
        Dim pM As New BRMaker  
        Dim dR As DataRow = pM.FillRow("SELECT * FROM mkMaker WHERE fkMaker=" & cID, AppSettings("connMP"))  
 
        dR("fkMaster") = 0 'Obselete  
 
        dR("WhoCreated") = CType(dataEditItem.Controls(9).Controls(0), TextBox).Text.TrimStart(" ").TrimEnd(" ")  
        dR("precis") = CType(dataEditItem.Controls(4).Controls(0), TextBox).Text  
        dR("Description") = CType(dataEditItem.Controls(5).Controls(0), TextBox).Text  
        dR("status") = CType(dataEditItem.Controls(6).Controls(1), DropDownList).SelectedValue  
 
        dR("DateModified") = DateTime.Now  
        dR("WhoModified") = Framework.Container.GetUser(Session, Request, AppSettings("MPTitle"), Framework.Container.GetAuthType(AppSettings("authorization")))  
        pM.SaveRow(dR, pM.GetDS, "Master")  
 
        If Not pM.Update(AppSettings("connMP"), pM.GetDS) Then 
            Log(AppSettings("MPlog"), "Amendments Error", "Error updating mkMaker")  
        End If 
 
        pM.CloseRow()  
 
        MakerGrid.Columns(9).Visible = True 
        MakerGrid.Columns(10).Visible = True 
        MakerGrid.Columns(11).Visible = True 
        MakerGrid.Columns(12).Visible = True 
        MakerGrid.Columns(13).Visible = True 
        MakerGrid.Columns(14).Visible = True 
        BuildGrid()  
 
    End Sub 
 

Note:This was working in RADControls for ASP.NET RADGrid v5.1.3.0

Thanks and Regards



Sebastian
Telerik team
 answered on 02 Sep 2009
2 answers
81 views
Hello...
I downloaded a trial version of Q2009 and publish a test control over the internet....
I would like to know when the trial version will be  expired.....Because I plan to use the trial version for a period in a project till I prepear financially to buy the full version...

Another Question is the trial version has the full features or not??

Your answer will be highly appreciated
Paul
Telerik team
 answered on 02 Sep 2009
1 answer
97 views

The last post I created with that title was unreadable so I am trying again.

I want to make one RadCombobox have the same selection as another.  They both have the same items and if I select "5" on one, I want the other to automatically be the same.  This used to work in previous versions of the RadComboboxes, allowing the actual and billable minutes comboboxes to be the same.

The following used to work in previous versions of the RadCombobox but doesn't any more.

 function ActualMinutesChanged(item){  
      var minutesCombo = <%= BillableMinutes.ClientID %>;  
      minutesCombo.FindItemByValue(item.ComboBox.GetValue()).Select();  
 } 

I have changed the code to the following but I need to now how to actually select an item in the second combobox (billable minutes) to be the same as the actual minutes.

    function ActualHoursChanged(sender, eventArgs){  
        var item = eventArgs.get_item();  
        var hours = item.get_index();  
        var hoursCombo = $find("<%= BillableHours.ClientID %>");  
        hoursCombo._selectedIndex = hours;  
    } 

So, how do I select using the new client-side JavaScript code?  Thanks!
Paul
Telerik team
 answered on 02 Sep 2009
1 answer
119 views
Hello,

can anybody tell me how to set up, that the label in the rotator always has two rows, even if the caption is just one letter?
When I click on an item, I change the backcolor of this Item. Unfortunately it does not change the backcolor of the label. Does anyone know how to change this as well?

thanks in advance,

regards, jonas
Fiko
Telerik team
 answered on 02 Sep 2009
2 answers
256 views
I have a RadTreeview Control embeded in RadCombobox.
Checkboxes and Multiple select property of treeview is set to true.

When i select tree nodes by checking checkboxes corresponding to them everything works fine and i am able to select as many nodes as required.
But when i try to select the nodes by clicking the Node text radcombobx collapse after selection.
Hence i am not been able to select multiple nodes at a time.

Any workarounds,so that combobox remains open till all nodes are selected and closes on clicking outside the combobox.

Regards,
Amit

Amit
Top achievements
Rank 1
 answered on 02 Sep 2009
1 answer
165 views
Hi
I am using radgrid in which i m using radgrid button column
and on click of the items in that column i m using radconfirm  by setting the confirmtype="radconfirm"
but the size of the confirm is something large
i want to resize it without template(i do not want t oadd template for it beacuse i am also using radconfirm in some other buttons in which size is good)
plz suggest me some solution to resize the radconfirm from radgrid button coulmn
Georgi Tunev
Telerik team
 answered on 02 Sep 2009
3 answers
177 views
Hi,

we are using the 'radeditormoss.wsp' -solution for SharePoint2007. We want to update the trial version to the development version.
I saw that the company (for who i need to update it) has bought RadControls for ASP.NET AJAX Q2 2009(RadControls_for_ASP.NET_AJAX_2009_2_7_01_dev.msi)

But is this the installation I need? Because for SharePoint you use the MossRadEditor?!

Regards
Thomas
Stanimir
Telerik team
 answered on 02 Sep 2009
4 answers
263 views
Hi everybody !

As you can see in my post title I try to find a way to have a radconfirm (client side) when the user is selecting (clicking) a node of a radtreeview.

E.G > User is currently on a node called "Employee Example" on right panel I display some informations of the node using a query in database like name, surname ...of the employee the user can edit this and save by clicking a button save, but in case of the user change selecting node and don't push the save button I want to display a radconfirm saying " you've made some changes but you don't save if you continue all changes will be lost" and so the user will have choice to hit "Cancel" (so the right pane don't change) and if he hit "Ok"  then postback the right panel and display informations for the new selecting node.using query.

For the moment I use the standard confirm, i also store a value in a hiddenfield, the value of it change by clicking on "Ok" or on "Cancel" and after in code behind I check the value to see if it's need to do the query, or not depending of the user choice, but of course it do posback in any cases that's what I want to change !

I hope you'll understand my issue.

Thanks in advance for reading this

Regards,

Damien



Courouble Damien
Top achievements
Rank 1
 answered on 02 Sep 2009
4 answers
113 views
Hi,

I am using the RadComboBox and the related combo as implemented in this example http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/multiplecomboboxes/defaultcs.aspx

My test application is here http://www.methaq.ae/brokers/Web_Motor/Default.aspx

To test it pick  a car make and model and click 'Get Quotation'.

This causes a postback and then notice the model combo is blank and empty.

It worked fine until I wrapped panel containing the controls in a RadAjaxPanel which is updated when the 'Get Quotation' is clicked.
This causes the second combo Vehicle Model to reset to blank.

Do I need to do something additional when in a RadAjaxPanel.

Thanks,

Roann






Helen
Telerik team
 answered on 02 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?