Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
78 views
Hello, I upgraded to the latest and it seems that the LoginStatus and LoginName are rendering as Buttons!  They are supposed to be normal text, I think.  I use the formdecorator in my master page for All controls - any way to turn it off specifically for this or to override the style below?  Note: I'm not a CSS expert, so you would have to tell me what to put.   Maybe a good feature going forward is to also specify IgnoreControls="LoginControl", in case you want ALL but ignore only these controls...
thanks
Marty

<span id="ctl00_ctl00_DefaultContent_LoginView1_loginName1" class="rfdLoginControl">Welcome sa</span>
Bozhidar
Telerik team
 answered on 28 Dec 2010
1 answer
197 views
Hi,
We are facing issues while using the Clinet side validation (RequiredFieldValidator) in RadGrid EditFormSettings section.
The Edit/Add form has a button (btnGrdSave), on click btnGrdSave button the RequiredFieldValidator doesn't gets fired, instead the server side code is executed. This behaviour is causing the server code execution before validating the form.

I am attaching the code, kindly review and help me in sorting out the issue.

Code:
<telerik:RadGrid ID="RadGridAmount" runat="server" GridLines="None" AllowPaging="True"
                                                                        PageSize="5" AllowSorting="True" AutoGenerateColumns="False" ShowStatusBar="true"
                                                                        HorizontalAlign="NotSet" AllowMultiRowEdit="false" AllowFilteringByColumn="true"
                                                                        OnItemCommand="RadGridAmount_ItemCommand" Width="100%" AllowMultiRowSelection="False" AllowAutomaticUpdates="True"
                                                                        OnNeedDataSource="RadGridAmount_NeedDataSource" OnPreRender="RadGridAmount_PreRender">
                                                                        <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
                                                                        <MasterTableView CommandItemDisplay="Bottom" DataKeyNames="RangeID" EditMode="PopUp">
                                                                            <CommandItemSettings ShowAddNewRecordButton="true" />
                                                                            <Columns>
                                                                                <telerik:GridTemplateColumn UniqueName="TemplateColumn" HeaderText="Select" AllowFiltering="false">
                                                                                    <ItemTemplate>
                                                                                        <asp:CheckBox ID="chkRangeID" runat="server" AutoPostBack="false" />
                                                                                    </ItemTemplate>
                                                                                </telerik:GridTemplateColumn>
                                                                                <telerik:GridBoundColumn UniqueName="RangeID" HeaderText="RangeID" AllowFiltering="false"
                                                                                    DataField="RangeID" Visible="false">
                                                                                </telerik:GridBoundColumn>
                                                                                <telerik:GridBoundColumn FilterControlWidth="105px" HeaderStyle-Width="300px" ItemStyle-Width="300px"
                                                                                    DataField="RangeFrom" HeaderText="RangeFrom" SortExpression="RangeFrom" UniqueName="RangeFrom"
                                                                                    HeaderStyle-Font-Bold="true" ReadOnly="true">
                                                                                </telerik:GridBoundColumn>
                                                                                <telerik:GridBoundColumn FilterControlWidth="105px" HeaderStyle-Width="300px" ItemStyle-Width="300px"
                                                                                    DataField="RangeTo" HeaderText="RangeTo" SortExpression="RangeTo" UniqueName="RangeTo"
                                                                                    HeaderStyle-Font-Bold="true" ReadOnly="true">
                                                                                </telerik:GridBoundColumn>
                                                                                <telerik:GridTemplateColumn HeaderText="Percentege" DataField="Percentege" UniqueName="Percentege"
                                                                                    HeaderStyle-Font-Bold="true" AllowFiltering="false">
                                                                                    <ItemTemplate>
                                                                                        <asp:TextBox ID="txtPercentage" runat="server" Width="30%"></asp:TextBox>
                                                                                    </ItemTemplate>
                                                                                </telerik:GridTemplateColumn>
                                                                                <telerik:GridTemplateColumn HeaderText="Amount" DataField="Amount" UniqueName="Amount"
                                                                                    HeaderStyle-Font-Bold="true" AllowFiltering="false">
                                                                                    <ItemTemplate>
                                                                                        <asp:TextBox ID="txtAmount" runat="server" Width="30%"></asp:TextBox>
                                                                                    </ItemTemplate>
                                                                                </telerik:GridTemplateColumn>
                                                                                <telerik:GridEditCommandColumn>
                                                                                </telerik:GridEditCommandColumn>
                                                                                <telerik:GridButtonColumn CommandName="Delete" Text="Delete" UniqueName="Delete">
                                                                                </telerik:GridButtonColumn>
                                                                            </Columns>
                                                                            <EditFormSettings InsertCaption="Add new item" CaptionFormatString="Edit RangeID: {0}"
                                                                                CaptionDataField="RangeID" EditFormType="Template">
                                                                                <FormTemplate>
                                                                                    <table id="Table3" cellspacing="1" cellpadding="1" width="250" border="0">
                                                                                        <tr>
                                                                                            <td>
                                                                                            </td>
                                                                                            <td>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td>
                                                                                                Range From:
                                                                                            </td>
                                                                                            <td>
                                                                                                <asp:TextBox ID="txtRangeFrom" Text='<%# Bind("RangeFrom") %>' runat="server" ValidationGroup="RangeValidation1">
                                                                                                </asp:TextBox>
                                                                                                  <asp:RequiredFieldValidator runat="server" ID="rfvFrom" ControlToValidate="txtRangeFrom"
                                                                                                    Display="Dynamic" ErrorMessage="Range From is required" ValidationGroup="RangeValidation1" />
                                                                                           
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td>
                                                                                                Range To:
                                                                                            </td>
                                                                                            <td>
                                                                                                <asp:TextBox ID="txtRangeTo" Text='<%# Bind("RangeTo") %>' runat="server" ValidationGroup="RangeValidation1">1
                                                                                                </asp:TextBox>
                                                                                                  <asp:RequiredFieldValidator runat="server" ID="rfvTo" ControlToValidate="txtRangeTo"
                                                                                                    Display="Dynamic" ErrorMessage="Range To is required" ValidationGroup="RangeValidation1" />
                                                                                           
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                    <table style="width: 100%">
                                                                                        <tr>
                                                                                            <td align="right" colspan="2">
                                                                                                <asp:Button ID="btnGrdSave" runat="server" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'
                                                                                                    ValidationGroup="RangeValidation1" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'>
                                                                                                </asp:Button>&nbsp;
                                                                                                <asp:Button ID="btnGrdCancel" Text="Cancel" runat="server" CausesValidation="False"
                                                                                                    CommandName="Cancel"></asp:Button>
                                                                                                <asp:ValidationSummary ID="valsumm" runat="server" ValidationGroup="RangeValidation1" ShowSummary="true">
                                                                                                </asp:ValidationSummary>
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </FormTemplate>
                                                                            </EditFormSettings>
                                                                        </MasterTableView>
                                                                    </telerik:RadGrid>
Nikolay Rusev
Telerik team
 answered on 28 Dec 2010
0 answers
144 views
I have a RadComboBox with AutoPostBack property set to "True". When the SelectedIndexChanged of RadComboBox gets fired, the page does gets loaded completely, but suddenly after that it throws a javascript runtime error. The same happens even on click of a button too.

I have attached the snapshot of the error that pops up.

Even if i comment out all the code written in SelectedIndexChanged Event, still its throws the same javascript runtime error. So i think there is something wrong with the markup written (but not sure).

It would be of great help to me if you shed some light on the possibilities of what might be the cause of the error.

Please do reply on urgent basis, as i am stuck in my project due to this issue.

Thanks in advance.
<telerik:RadAjaxManager ID="radAjaxManager" runat="server" EnableHistory="True">
        <AjaxSettings>
           <telerik:AjaxSetting AjaxControlID="btnAddMembers">           
             <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="radGvViewMembers" LoadingPanelID="radMembersLoadingPanel" />
                    <telerik:AjaxUpdatedControl ControlID="radGvViewExisitngMembers" LoadingPanelID="radMembersLoadingPanel" />
                    <telerik:AjaxUpdatedControl ControlID="lblImport"/>
                    <telerik:AjaxUpdatedControl ControlID="lblErrorImport"/>
                    <telerik:AjaxUpdatedControl ControlID="radComboDatabase"/>
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="btnRemoveMembers">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="radGvMembers" LoadingPanelID="radMembersLoadingPanel" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
 
<telerik:RadAjaxLoadingPanel ID="radMembersLoadingPanel" runat="server" Height="75px"
        Width="75px" Transparency="2">
        <asp:Image ID="loadingImg" runat="server" ImageUrl="~/App_Themes/Default/images/loading.gif"
            AlternateText="Loading..." />
    </telerik:RadAjaxLoadingPanel>
 
<!-- RadComboBox   -->
<telerik:RadComboBox ID="radComboDatabase" runat="server" AutoPostBack="true" OnSelectedIndexChanged="radComboDatabase_SelectedIndexChanged"
                        AppendDataBoundItems="true">
                        <CollapseAnimation Type="OutQuint"></CollapseAnimation>
                        <Items>
                            <telerik:RadComboBoxItem Text="Select database" Value="-1" />
                        </Items>
                    </telerik:RadComboBox>

Anup
Top achievements
Rank 1
 asked on 28 Dec 2010
0 answers
87 views
Hi Sir,

I download the trial version use tree list for testing to see my requirement.

My most of the requirement are fulfill in the treelist but I want to Context Menu in TreeList and use it backed side.

If this possible ? then please give me one small example.

Thanking you,

Kishor Dalwadi
Kishor Dalwadi
Top achievements
Rank 2
 asked on 28 Dec 2010
2 answers
99 views
Hi sir,

I have requirement for use radiobuttonlist as resources type.

Advanaceform's all controls  and one more control radiobuttonlist as attribute use in my application.

Please give me proper solution for that.

Thanking you.

Kishor Dalwadi
Kishor Dalwadi
Top achievements
Rank 2
 answered on 28 Dec 2010
2 answers
284 views
Hi, I have a gridview and am using templates to display and edit data. In the Item templates I use a Label to display the records RefrigerantType. When I go to edit mode I have a dropdown which is bound to a sqlDatasource and it works fine except that I need it to default to the value of the label in the item template. I have searched quite a bit but can't seem to find a way to do this. One thing that is different here is that there is only one Column in the table for the Refrigerant Type so both the DataTextField and DataValueField are the same. How do I get the value of the Label and set the dropdown default value to it? Thanks for any help.
AkAlan
Top achievements
Rank 2
 answered on 28 Dec 2010
0 answers
114 views
Hello,
          I have a flash control that I want to hide /show on click of a button. This flash control and button are inside UpdatePanel. 

 The flash control is below

    <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
    WIDTH="200" HEIGHT="40" id="myMovieName"><PARAM NAME=movie VALUE="xyz.swf">
    <PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE=#FFFFFF>
    <EMBED href="xyz.swf" width="200px" height="40px" bgcolor="#FFFFFF" NAME="myMovieName" ALIGN=""
    TYPE="application/x-shockwave-flash" PLUGINSPAGE="https://www.macromedia.com/go/getflashplayer" >
    </EMBED>
    </OBJECT> 


This works well in IE but not in Google Chrome. I use "display" property's "none" and "block" to hide/show the control. If I have textbox instead of flash control it works in google chrome. Is there anything that I m missing.  Please let me know.

Thanks,
Bharani
Bharani Mani
Top achievements
Rank 1
 asked on 28 Dec 2010
1 answer
107 views
Hello -- I am using RadScheduler with a WCF service and custom data provider. I am still early in development, and have successfully retrieved basic, non-recurring appointments from my data store and shown them on the GUI. Now I am trying to show a recurring appointment, and I keep getting "The server method 'Get Appointments' failed". What I need to know is: how do I get the GUI to show me the details of this exception so I can figure out what's going wrong? I've walked through all my server code and no exception occurs. I need real exception details now, and I don't know how to get the GUI to show them to me. Please help!!

Thanks,
Landon
Landon
Top achievements
Rank 1
 answered on 27 Dec 2010
4 answers
517 views
I have a page that displays a radWindow. If modal is set to "true" it displays a horizontal scrollbar on my parent page. if set to "false", it doesn't.

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"
    <script type="text/javascript"
 
 function ShowWindow() 
            {                    
        
          var wnd = window.radopen("window.aspx", "win");      
                      wnd.restore(); 
                  wnd.setSize(document.body.scrollWidth-170,document.body.scrollHeight+180); 
                   wnd.center();            
            } 
             
        </script> 
    </telerik:RadCodeBlock> 
     
 
                        <asp:Button ID="button" runat="server" Text="Show" CssClass="button" OnClientClick="ShowWindow();return false;"/> 
               
     
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server" style="overflow:hidden;"
        <Windows> 
            <telerik:RadWindow ID="win" VisibleStatusbar="false" KeepInScreenBounds="true"  
            DestroyOnClose="false" runat="server" InitialBehaviors="Close,Move,Resize" Behaviors="Close,Move,Resize"  
            ShowContentDuringLoad="true" Skin="Simple" Overlay="true" Modal="true" Title="Window"
            </telerik:RadWindow> 
        </Windows> 
         
    </telerik:RadWindowManager> 

I narrowed this down to probably an issue with the width and height of the ModalOverlay. because if I add the following styles,

 .TelerikModalOverlay    
 {     
  width:100% !important; 
  height:100% !important; 
 }  


 it eliminates the scrollbars on the parent page, however, causes strange issues when then moving the radWindow from its default position (i.e. the widthand height of the Modal Overlay no longer reach the bounds of the parent page if the radWindows is moved around)


Any ideas on how to fix this one way or another?
Camilo
Top achievements
Rank 1
 answered on 27 Dec 2010
0 answers
153 views
When my App page is open for like 1- 3 hours, then Below error comes :-

RadUpload Ajax callback error. Source url returned error: 503
Service Unavailable

../Relerik.RadUploadProgressHandler.ashx?RadUrid=543c70bc -aebe-47f8-9c29-166dea518b11

Did yoiu register the RadUploadProgressHandler in web.config ?

Please, see the help for more details: RadUpload for ASP.NET Ajax -Configuration -RadUploadProgressHandler.

-------------------------------------------------------------------------------------------------------------------------------
Even I have Register this handler. My code in webconfig for adding handler is :-

<
httpHandlers>
<
remove verb="*" path="*.asmx"/>
<
add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<
add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<
add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
<
add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false"/>
<
add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false"/>
<
add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false"/>

<
add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false"/>

<
add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/>
</
httpHandlers>


I would really appreciate if someone could help to resolve this issue.

Thanks in advance....
Kapil Sharma

 

kapil sharma
Top achievements
Rank 1
 asked on 27 Dec 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?