Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
239 views
Hi,

I have a RadWindow named rtbStreetAddress inside a usercontrol.  The problem I am having is the rwEditAddress.ClientID property is not returning the full client id as expected in the Page_Load or OnPreRender methods. 
It returning "rwEditAddress" instead of "ctl00_cDefaultContent_cAddresses_cBillingAddress_rwEditAddress"
I have a rad text box in the user control and it returning the correct client id "ctl00_cDefaultContent_cAddresses_cBillingAddress_rtbCity"

Vincent
Samaira
Top achievements
Rank 1
 answered on 19 Nov 2013
1 answer
203 views

Hi Telerik support,


My client is using telerik control, version 2012...



We are using RadRotator. I want to get the current showing index. If I retrieve index like:



function OnClientItemShown( sender, eventArgs)

{

     alert( eventArgs.get_item().get_index());

}



it does not always give the right value. For example, if I have 4 items, showing one item per screen. When it start rotating, the index for the first 3 times will be 0, 1, 2, which is correct. However, the 4th item and that after will always have the index as 2. And I found the returned index is not always stable.



Another question, when I called clearItems() to delete all items, then call addRotatorItem to add some items back from the client side, when I call start() after these operation, the type is AutomaticAdvance, there are strange behavior for the first time animation. It seems start rotating all items, then rotate to the second item the first time. If I clearItems again, and then add items back. The first time start() it will skip 1 pages. Can you tell me what I should do to get a stable rotating animation after I have clearItems and addRotatorItems?



Thanks in advance for suggestions.



Joe

Slav
Telerik team
 answered on 19 Nov 2013
2 answers
220 views
for some inexplicable reason telerik controls have stopped working clientside.

I have a Radrotator which now wont display any images.  A RadDropdown which doesnt display or even activate its drop down lists.  CSS for menus, etc is not downloaded so the styling disappears.  RadMenus dont do anything when you click a menu item, the whole lot has just stopped working.  Does anyone know what could cause this ?
Kate
Telerik team
 answered on 19 Nov 2013
1 answer
657 views
Hi,

I have a RadComboBox to which i want some Javascript to be fired onClientClick of the RadComboBox.

I have set up a simple alert but it does not seem to work. 

Please help.

Thanks

.NET Code:
<telerik:RadComboBox ID="RadComboBoxDropDown" runat="server" OnClientClick="show();"/>

Javascript:
function show()
        {
            Alert("Are you sure you want to submit the page?");
        }
Princy
Top achievements
Rank 2
 answered on 19 Nov 2013
1 answer
90 views
Hi, I got the latest version of the TELERIK ASP.NET AJAX and my grid footer is displayed on top of the data rows, right after the header.

My page has a master grid with many grids (5) inside its template organized in html tables.

I export the grid calling "grid.MasterTableView.ExportToExcel()"

My footer is manipulated on databound as below :

...
Dim footerItem As GridFooterItem = CType(e.Item, GridFooterItem)
footerItem("NAME").Text = "<
div>" & var1 & "</div>" & String.Format("{0:0.00}", var2)
...

How can I correct the export behavior?
Kostadin
Telerik team
 answered on 19 Nov 2013
1 answer
63 views
Hi,

Scripts and Required field validators not working after putting Telerik controls in some pages. In some pages it is working fine.

Following are the details of my page

I have used rad grid and rad button in page1.aspx. while loading the page RadGrid will show with all the details.The RadGrid resides inside a div(divGrid). If user click on New button (RadButton) in this page , the div (divGrid) will go invisible and entry fields will show. These fields also resides inside a div (divEntry).These fields also have some RequiredFieldValidators,CustomValidators etc. But while clicking on Save button RequiredFieldValidators, CustomValidators are not validating and saving the details with null values.This time the div (divEntry) goes invisible and div (divGrid) will visible.

While debugging i found that some file were missing. I am attaching the screen shot for this.


Eyup
Telerik team
 answered on 19 Nov 2013
3 answers
314 views
I have a radtextbox in my page which is enabled when a raddropdownlist item is selected. The textbox is a required field once enabled and I want to perform multiple validation based on selected item of dropdownlist. Suppose first item is selected, the input should be validated for only numbers of a certain length. Suppose if item2 is selected,  user can enter alphanumeric characters. So how to switch the validation based on selected item?
Shinu
Top achievements
Rank 2
 answered on 19 Nov 2013
1 answer
134 views

Hello Sir,

I have the following requirement  to be implemented on my web page. It is similar to MS Excel 2010 Filter. Attached is the sample.

1. Multiple selection from the Dropdown using checkbox option.
2. Have to use web service to load the data ( I have approx. 5000 Items )
3. Autosuggest, while typing system should show the item to be picked.

I Just purchased the new Telerik License . I hope it will support my requirements

Thank you

Regards,
Muru

Shinu
Top achievements
Rank 2
 answered on 19 Nov 2013
1 answer
184 views
Hi I was wondering how to go about populating a ddl inside a Grid Item Template Column from SQL.  I tried doing it through the On Data Bound but I could not get it to work.  Below is my code.
Thanks
    <asp:Panel ID="pnlGrid" runat="server" CssClass="panelGrid">
        <telerik:RadGrid ID="myRadGrid" runat="server" Width="90%" Skin="Web20" CssClass="dvGridWrapper" AllowSorting="true" AllowPaging="true">
                <PagerStyle AlwaysVisible="true" />
                <MasterTableView AutoGenerateColumns="false" Font-Size="10" DataKeyNames="intRecruitId">
                    <HeaderStyle ForeColor="White" Font-Bold="true" HorizontalAlign="Center" />
                    <ItemStyle HorizontalAlign="Center"/>
                    <AlternatingItemStyle BackColor="#B0C4DE"  HorizontalAlign="Center" />
                    <Columns>
                        <telerik:GridBoundColumn DataField="dtRSPStatusChanged" HeaderText="Last Changed" />
                        <telerik:GridTemplateColumn HeaderText="NAME">
                            <ItemTemplate>
                                <asp:LinkButton ID="lnkName" runat="server" Text='<%#Bind("Name")%>' CommandArgument='<%#Bind("intRecruitId")%>' CommandName="OpenForm" ToolTip="Click to See Data"></asp:LinkButton>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn HeaderText="PHASE">
                            <ItemTemplate>
                                <asp:DropDownList ID="ddlPhase" runat="server"></asp:DropDownList>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridBoundColumn DataField="dtShip" HeaderText="SHIP DATE" />
                        <telerik:GridBoundColumn DataField="ddDate" HeaderText="DROP DEAD DATE" />
                        <telerik:GridBoundColumn DataField="dtProjReturn" HeaderText="EST RETURN DATE" />
                        <telerik:GridTemplateColumn HeaderText="STATUS">
                            <ItemTemplate>
                                <asp:DropDownList ID="ddlStatus" runat="server" OnDataBound="ddlStatus_Load"></asp:DropDownList>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn HeaderText="ISSUE">
                            <ItemTemplate>
                                <asp:DropDownList ID="ddlIssue" runat="server" OnDataBound="ddlIssue_Load"></asp:DropDownList>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn HeaderText="EDUCATION">
                            <ItemTemplate>
                                <asp:DropDownList ID="ddlEd" runat="server">
                                    <asp:ListItem Value="0" Text="N/A" />
                                    <asp:ListItem Value="1" Text="HSSR" />
                                    <asp:ListItem Value="2" Text="HSJR" />
                                    <asp:ListItem Value="3" Text="GED +" />
                                    <asp:ListItem Value="4" Text="GED" />
                                    <asp:ListItem Value="5" Text="GRAD" />
                                    <asp:ListItem Value="6" Text="COLLEGE" />
                                </asp:DropDownList>
                            </ItemTemplate>
<%--                            SelectedValue='<%#Bind("intRSPStatusID")%>'--%>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn HeaderText="NOTES">
                                <ItemTemplate>
<%--                                    <asp:Image ID="imgLooker" runat="server" ImageUrl="~/Images/ViewResources.gif" ImageAlign="Middle" BorderStyle="None" />
                                    <asp:PopupControlExtender ID="popInfo" runat="server" PopupControlID="pnlPop" TargetControlID="imgLooker" DynamicContextKey='<% #Eval("strNotes")%>' 
                                    DynamicControlID="pnlpop" DynamicServiceMethod="GetNotes" Position="bottom"></asp:PopupControlExtender>--%>
                                </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridBoundColumn DataField="strRSPSiteLocation" HeaderText="RSP SITE" />
                        <telerik:GridBoundColumn DataField="strUIC" HeaderText="UIC" />
                        <telerik:GridTemplateColumn HeaderText="UPDATE">
                            <ItemTemplate>
                                <asp:LinkButton ID="lnkUpdate" runat="server" Text="Update" ToolTip="Click to Save Data"></asp:LinkButton>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>                            
                    </Columns>
                </MasterTableView>
        </telerik:RadGrid>
    </asp:Panel>
</asp:Content>

Code Behind
    Protected Sub ddlIssue_Load(sender As Object, e As EventArgsHandles ddlIssue.Load
 
        sql = "Select strRSPIssueDesc from RSPIssue"
 
        ddlIssue.Items.Add(New ListItem("Select One""0"))
        buildDD(sql, ddlIssue)
    End Sub
 
    Protected Sub ddlSite_Load(sender As Object, e As EventArgsHandles ddlSite.Load
 
        sql = "select strRSPSiteLocation from RSPSite"
 
        ddlSite.Items.Add(New ListItem("Select One""0"))
        buildDD(sql, ddlSite)
    End Sub
 
    Protected Sub ddlStatus_Load(sender As Object, e As EventArgsHandles ddlStatus.Load
 
        sql = "Select strStatusType from RSPStatus"
 
        ddlStatus.Items.Add(New ListItem("Select One""0"))
        buildDD(sql, ddlStatus)
    End Sub

Princy
Top achievements
Rank 2
 answered on 19 Nov 2013
0 answers
66 views
Hello Team, 

i am using RadTreeview and Radwindow both in my asp.net page. 
on my first aspx page i am having Radtreeview [which i am binding dynamically], once user select any item from the context menu of radtreeview i am calling radwindow to allow user to input some values.
Once user click on submit button, i have to update the Radtreeview so that new changes should be appear in the Tree.

ON click of the submit button of the radwindow, i am actually setting the datasource of RadTree to null and rebind again but its not refreshing with the new changes

please advise
User1
Top achievements
Rank 1
 asked on 19 Nov 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?