Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
181 views
 in my radgrid i hv one template column want to find following text box .. How to find in JAVASCRIPT

 <telerik:GridTemplateColumn DataField="GameUPC" HeaderText="UPC" SortExpression="GameUPC"
                                    HeaderStyle-HorizontalAlign="Center" FilterListOptions="AllowAllFilters" AutoPostBackOnFilter="True"
                                    ShowFilterIcon="false" CurrentFilterFunction="Contains" UniqueName="GameUPC">
                                    <ItemTemplate>
                                        <asp:Label ID="lblGameUPC" runat="server" Text='<%#Eval("GameUPC")%>'></asp:Label>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:TextBox ID="txtGameUPC" onkeydown="return isNumeric(event.keyCode);" Enabled="true"
                                            MaxLength="12" TabIndex="4" runat="server" Text='<%#Eval("GameUPC")%>'></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="reqFieldValGameUPC" runat="server" ErrorMessage="RequiredFieldValidator"
                                           ControlToValidate="txtGameUPC" Text="Please enter Game UPC code."></asp:RequiredFieldValidator>
                                           <asp:CustomValidator ID="CustomValidator1" runat="server" ControlToValidate="txtGameUPC"
                                            ErrorMessage="Invalid UPC." ClientValidationFunction="validateUPC">
                                        </asp:CustomValidator>
                                    </EditItemTemplate>


URGENT
                                    
                                </telerik:GridTemplateColumn>
Princy
Top achievements
Rank 2
 answered on 05 Jan 2011
3 answers
105 views

I am having a strange behavior with my pop-up window. Everything works fine the first time I load the pop-up window. Once the control comes back to the parent page, if the user tries to load the pop-up page again, it does not load correctly. It changes the size of the window and does not function right. If I refresh the page and load the pop-up it works fine.

Below is my window declaration. let me know what I am doing wrong here:

<telerik:RadWindowManager ID="RadWindowManager1" runat="server" 
        Behavior="None"  ShowContentDuringLoad="false">
        <Windows>
            <telerik:RadWindow ID="RadWindowRole" runat="server"  DestroyOnClose="false" OnClientClose="OnClientClose"
                 Behavior="None" ReloadOnShow="true" ShowContentDuringLoad="false"
                Width="975px" Height="545px" Modal="true" />
        </Windows>
    </telerik:RadWindowManager>
Georgi Tunev
Telerik team
 answered on 05 Jan 2011
4 answers
248 views
Hi,

I am using Telerik Q2 2010 release.

I have a strange problem. I have a loding panel on my page and I am using RadAJAXManager to manage the controls I need to refresh and show the loading panel.

The panel loads fine for the first time. But when I click on another button quickly, the loading panel does not show. Please note that, the click of second button has more work to do and it does not finish its job before 4-5 seconds. Still, I set InitialDelayTime="0" for the loading panel. But it did not work.

If I wait for few seconds (approx 10 seconds) between button clicks, the loading panel shows fine. Can you please let me know what I can do for this.

Let me know if you would like to see any code from my page for further investigation.

Thanks
Atit
Atit Thaker
Top achievements
Rank 1
 answered on 05 Jan 2011
0 answers
45 views
Hello Sir,

In my page i have menu control and radgrid.when i select menuitem and click add new record button from radgrid the radgrid dispay editform on top menu item..i want to add on selected menuitem. how can i do this.

thanks
Rizwan Ansari
Top achievements
Rank 1
 asked on 05 Jan 2011
4 answers
154 views
Hi,

Is is possible to have a conditional data export from the grid? For example let's assume we have a grid with 3 columns as shown below and "Export?" column will either have "Yes" or "No" value. If it has "Yes", that record has to be exported to excel else not?

ID  Name   Export?
1    Scott   Yes
2    Parker  No
3   Milan    Yes


Any help would be highly appreciated and wish you a very Happy New Year ahead.

Many thanks

M G


FISCAL
Top achievements
Rank 1
 answered on 05 Jan 2011
1 answer
87 views
I want to add some popup help on a tabstrip. The help will be specific to each tab. I can't ad an ID to a TabStrip Tab so how do I associate a ToolTip with one?

-- 
Stuart
Stuart Hemming
Top achievements
Rank 2
 answered on 05 Jan 2011
3 answers
88 views
Hi All,
I tried to use RAD Tree view with a custom skin  in ASPX 2.0, but its behavior is strange. It is not displaying +/- buttons with Parent nodes so can not expend/collapse the nodes and also the layout is strange too.  The skin is just renamed default skin and all the images are there but still the problem is there.

I think it might not be loading Javascript properly or initialization issue.

Thanks & Regards.
 
Simon
Telerik team
 answered on 05 Jan 2011
5 answers
470 views
I have a details view in an aspx page that contains the RadUpload control.  This is all encased in a RadWindow that pops up when a user clicks the edit link of a record in a RadGrid control.  When I specify a file to upload and submit the form I'm given a Bad Request (Invalid Verb) HTTP Error 400 page instead of it going back to the main window with the RadGrid, as it should.  This error doesn't occur if I don't specify a file to upload.  I'm not sure what the cause of this problem is, any help is appreciated.  I've included the piece of markup that includes my RadUpload control.  Let me know if more is needed.
<asp:TemplateField HeaderText="Upload Additional File" HeaderStyle-VerticalAlign="Top" ItemStyle-VerticalAlign="Top">
<ItemTemplate>
 <telerik:RadProgressManager ID="RadProgressManager1" runat="server" Skin="Vista" Height="16px" Width="500px" />
<telerik:RadUpload ID="RadUpload1" runat="server" MaxFileInputsCount="1" MaxFileSize="5242880" InputSize="60" Width="450px" ControlObjectsVisibility="None" ToolTip="Select file to attach to ticket (max filesize: 5MB)"  />
</
ItemTemplate>
</asp:TemplateField>

UPDATE:
I notice that this error only seems to occur on my development machine. Tried this on my test server and it works, wondering if there's some setting in IIS that's causing this.  But, again, this only seems to occur when I try to upload a file in my edit window.
Genady Sergeev
Telerik team
 answered on 05 Jan 2011
5 answers
169 views
I've a RadAjaxManager into a MasterPage and i want to refresh a RadGrid and a FormView into a User Control when I click to imbRefresh and I see this JS error:

'undefined' is null or not an object 

this is the code:

<telerik:RadCodeBlock runat="server">
    <script type="text/javascript">
        function Refresh() {
            $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>").ajaxRequestWithTarget('<%= imbRefresh.UniqueID %>', '');
        }
    </script>
</telerik:RadCodeBlock>
<telerik:RadAjaxManagerProxy ID="rmpManager" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="imbRefresh">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="frv" LoadingPanelID="rlp" />                
                <telerik:AjaxUpdatedControl ControlID="rdg" LoadingPanelID="rlp" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>
<telerik:RadAjaxLoadingPanel ID="rlp" runat="server" Skin="MachinaWeb">
</telerik:RadAjaxLoadingPanel>
 
<asp:ImageButton ID="imbRefresh" runat="server" AlternateText="Refresh" CausesValidation="False"
    ImageUrl="~/Images/Refresh-25.png" OnClick="imbRefresh_Click" OnClientClick="Refresh(); return false;" />
 
<mwc:FormView ID="frvStabilimento" runat="server" DataSourceID="ods2">
......................
</mwc:FormView>
 
<mwc:RadGrid ID="rdg" runat="server" DataSourceID="ods"
    Height="340px" Type="Edit">
...............
</mwc:RadGrid>
 
 
Code Behind
 
    protected void imbRefresh_Click(object sender, EventArgs e)
    {
        rdg.Rebind();
        frv.DataBind();
    }

mwc are Server Controls that exted the original classes
Example:
Server Control RadGrid.cs is:

namespace MWC.ServerControls
{
    public class RadGrid : Telerik.Web.UI.RadGrid
    {
        protected override void OnInit(EventArgs e)
        {
           //default value in every RadGrid          
            AllowMultiRowSelection = false;
            AutoGenerateColumns = false;
            EnableEmbeddedSkins = false;
            EnableAjaxSkinRendering = false;
            ShowFooter = false;
...............................
           base.OnInit(e);
}
....................
}
Radoslav
Telerik team
 answered on 05 Jan 2011
1 answer
86 views

I use the following code for RadUpload control

<telerik:RadUpload ID="rdUploadCertificate" CssClass="rad-upload" runat="server" ControlObjectsVisibility="ClearButtons" AllowedFileExtensions=".doc, .docx" InitialFileInputsCount="1" MaxFileInputsCount="1"></telerik:RadUpload>

But while uploading a docx files, extension validation return false. I've tried it also for .xlsx.

I use the following code to validate file extension

return $find('<%= rdUploadCertificate.ClientID %>').validateExtensions();

Am I missing anything?

Shinu
Top achievements
Rank 2
 answered on 05 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?