Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
284 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
109 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
160 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
53 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
1 answer
178 views
I have to access the entire fullpath once a user makes a selection from my dropdowntree. I know that I can do this with using .SelectedText but my REAL values I need to work with are stored in the DataValueField and using .SelectedValue only gets me the "real" checkboxed items, not the full path which might include the Parent item if its indeterminate. I've looked to see if there was a method for this, and cannot seem to find one. Can you please help, or at least show me a work around.

Thanks.

Shinu
Top achievements
Rank 2
 answered on 19 Nov 2013
1 answer
574 views
Hi,

I use the RadAsyncUpload control to let visitors select one or more files.
I only want my upload / save button to be enabled whenever:

1. There are files available and actually uploaded
2. When NO upload is currently active

Is there a way to check how many files are actually uploaded and still uploading?
If I remove a file, or add a file I need to have some sort of client-side counter.

Not sure how to achieve.

Any ideas, samples?

Thanks,
Daniel
Shinu
Top achievements
Rank 2
 answered on 19 Nov 2013
5 answers
2.2K+ views
Hi,

I'm using Filtering option in a RadGrid. All is working fine but I cannot change the width value of the Filter control.
I try to change the width control of a GridBoundColumn but there are not available properties to do it.

How can I change Width of Filter control?

J-F Delisle
Princy
Top achievements
Rank 2
 answered on 19 Nov 2013
6 answers
490 views
Hi,
   I would like to know if there is any provision for setting format string in RadNumericTextBox while in the edit mode.  I mean if it is possible to provide something like "#####.##" so that the user will be able to enter a maximum of 5 digits before the decimal point and a maximum of 2 digits after the decimal point while in edit mode.  I don't like to use radMaskedTextBox because of poor user experience.  Given below is the code which I have given:

 <telerik:RadNumericTextBox ID="txtCrAmt" Text='<%# bind("cramt") %>' MinValue="0" MaxValue="99999999.99" MaxLength="11" DataType="System.Decimal" Culture="en-GB" AutoPostBack="false" ClientEvents-OnKeyPress="KeyPressed" EnabledStyle-HorizontalAlign="Right" runat="server">  

 <NumberFormat AllowRounding="false" DecimalDigits="2" DecimalSeparator="." GroupSeparator="," GroupSizes="3"   />
                           
 </telerik:RadNumericTextBox>

Alphonse
Jhonny
Top achievements
Rank 2
 answered on 18 Nov 2013
6 answers
148 views
I have a grid with conditional row coloring to indicate status.  I am also using the drag and drop functionality.  When I select rows, the row color is changed to indicate selected.  When I unselect rows, the original row colors are not restored.  Instead, the rows are set to white.  How can I preserve the original row colors?  Thank you.
Richard
Top achievements
Rank 1
 answered on 18 Nov 2013
5 answers
236 views
I know that there have been a few posts around this so I will try to keep this short. I have tried practically every solution without luck. Here is my situation.

I have a RadGrid control on Default.aspx page.  This RadGrid has an Edit Link which invokes RadWindow which opens
the CreateEdit.aspx page.  After making changes, when I hit Save, I want to RadWindow to close AND RadGrid in the Default.aspx ( Parent ) page to refresh.  I am able to save the changes but the RadGrid does not get updated.  When I refresh the Default.aspx page, I see the updated changes.

Can someone guide me step by step as to what needs to be done to implement this functionality.  ASP.net coding in c# or vb.net is easy, but when it comes to javascript, I get super confused.

Thanks,
Mk



Charles
Top achievements
Rank 2
 answered on 18 Nov 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?