Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
249 views
Hi,

I have just updated to the Q1 2008 release of both ASP.NET Ajax and ASP.Net toolset.  I am going through a number of pages trying to update existing ASP.NET controls to ASP.NET Ajax controls and have succeeded with most, but the ComboBox is giving me a problem.

I have an Object datasource on a page (called dsProfession) which returns a simple datatable, and the ASP.NET combobox was linked to this OK.  When I change to ASP.NET Ajax combobox it does not like me just putting in the columns names from the Object datasource as it seems to want to validate them.

Is there any work around for this other than manually assigning the values when the page is opened?

The definition of the Combobox is:
<telerik:RadComboBox ID="ddlProfession" runat="server"   
AppendDataBoundItems="True" DataSourceID="dsProfession"   
DataTextField="Name" DataValueField="GroupRef"   
MarkFirstMatch="True" Skin="WindowsXP" Width="200px"   
AutoPostBack="True"   
ToolTip="Select a Profession for the fee quote line from the drop down list">  
<Items> 
   <telerik:RadComboBoxItem runat="server" Text="NONE" Value="-NONE-" /> 
</Items> 
</telerik:RadComboBox> 

and the definition for the Object datasource is:

<asp:ObjectDataSource ID="dsProfession" runat="server"   
SelectMethod="ListGroup" TypeName="dbGroup2  
CacheDuration="1800"   
OldValuesParameterFormatString="original_{0}">  
<SelectParameters> 
 <asp:Parameter DefaultValue="false" Name="ShowArchived" Type="Boolean" /> 
</SelectParameters> 
</asp:ObjectDataSource> 

David Penny
Pillar Software
Simon
Telerik team
 answered on 27 Nov 2009
8 answers
268 views

Hi,

we are using ajax extender controls and radgrid in same form, when we try to refresh the grid using the following javascript code:

 window["<%=rgJobSentTechnicianList.ClientID%>"].AjaxRequest('<%=rgJobSentTechnicianList.UniqueID%>', 'Refresh');                

 we are getting javascript error( "Sys.InvalidOperationException: Two Componentswith the same id ").  Please help me to resolve this problem..

Thanks in Advance,

Karthik
Yvette
Top achievements
Rank 1
 answered on 27 Nov 2009
5 answers
237 views
Hi!

Just a simple question. How do I get the text value of a RadTimePicker control in the code behind? I have searched for it but can't seem to find it. There is a DateInput.Text property but that doesn't show the text written. I must be able to distinguish between an empty control and an invalid one. So, if someone for example writes "xyz" into the control, where do I find this value?

Thanks!
Markus Jansson
Top achievements
Rank 1
 answered on 27 Nov 2009
5 answers
147 views
Hi,

I encountered a problem when i tried to embed video with the radeditor: the video wont play. So i tried the same with the demo project here: http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx (used the RadNavigation.avi video) but it does not work there either. both in the dialog as in the editor in preview mode.

Tried several computers, IE 6 ,7 and 8.

Video plays fine when opened manually, so its not a codec problem.

I just selected a video and inserted it, did not change any settings.

Anyone know whats going on and how to fix this?
Rumen
Telerik team
 answered on 27 Nov 2009
3 answers
219 views
Hi,
I am trying to autosize a raddock to its contents. I have a raddock that contains a grid.
I have just moved to Q3 2009, and was previously using Q2 2008.

I have not entered a value for the raddock height, and this used to autosize the height of the raddock to the grid. This does not seem to happen now..

Any ideas please ?
Many Thanks
Mark
Pero
Telerik team
 answered on 27 Nov 2009
1 answer
79 views
hi

i have this problem when i try to compile this code its says sintax error but i cnt see where the error is

help me plz.

here is the code:
<%@ Page Language="vb" MasterPageFile="Main.Master" AutoEventWireup="false" CodeBehind="UTEPagineDemo.aspx.vb" Inherits="WebBIODemo.UTEPagineDemo" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> 
  <div style="height:500px"> 
      <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> 
      </telerik:RadScriptManager> 
      <!-- content inizia qui --> 
      <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"> 
       
        <script type="text/javascript"> 
            function RowDblClick(sender, eventArgs) { 
                sender.get_masterTableView().editItem(eventArgs.get_itemIndexHierarchical()); 
            } 
        </script>    
            
      </telerik:RadCodeBlock> 
      <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> 
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID=""> 
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="" LoadingPanelID="rlpUTEPagineGRID" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
      </telerik:RadAjaxManager> 
      <telerik:RadAjaxLoadingPanel ID="rlpUTEPagineGRID" runat="server" Skin="Default" /> 
      <div> 
        <telerik:RadGrid ID="grdUTEPagine" runat="server"   
            GridLines="None" 
            AllowPaging="false"  
            AllowSorting="True"  
            AutoGenerateColumns="False" 
            ShowStatusBar="true"  
            AllowAutomaticDeletes="True"  
            AllowAutomaticInserts="True" 
            AllowAutomaticUpdates="True" 
            HorizontalAlign="NotSet"  
            DataSourceID="objDS"> 
            <MasterTableView CommandItemDisplay="TopAndBottom" DataSourceID="objDS" 
                DataKeyNames="CODICELINGUA,CODICEFORM" EditMode="PopUp"> 
                <Columns> 
                        <telerik:GridEditCommandColumn UniqueName="EditRecord" Resizable="false" ButtonType="LinkButton">                                                
                            <HeaderStyle Width="48px" /> 
                        </telerik:GridEditCommandColumn> 
 
                            <telerik:GridBoundColumn DataField="DESCRIZIONE" HeaderText="Descrizione" SortExpression="DESCRIZIONE" 
                                UniqueName="colDESCRIZIONE" FilterImageToolTip="Filtro per descrizione" Resizable="true"> 
                                <HeaderStyle Width="310px" /> 
                            </telerik:GridBoundColumn>       
                                     
                            <telerik:GridBoundColumn DataField="DESCRIZIONEAIUTO" HeaderText="Descrizione AIUTO" SortExpression="DESCRIZIONEAIUTO" 
                                UniqueName="colDESCRIZIONEAIUTO" FilterImageToolTip="Filtro per descrizione inglese" Resizable="true"> 
                                <HeaderStyle Width="310px" /> 
                            </telerik:GridBoundColumn>                   
 
                            <telerik:GridBoundColumn DataField="ANNOTAZIONI" HeaderText="ANNOTAZIONI" SortExpression="ANNOTAZIONI" 
                                UniqueName="colANNOTAZIONI" FilterImageToolTip="Filtro per descrizione inglese" Resizable="true"> 
                                <HeaderStyle Width="310px" /> 
                            </telerik:GridBoundColumn>   
                                 
                        <telerik:GridButtonColumn CommandName="Delete" ButtonType="linkbutton"></telerik:GridButtonColumn> 
                 
                </Columns> 
                <EditFormSettings InsertCaption="New Item" CaptionDataField="CODICELINGUA,CODICEFORM" 
                    CaptionFormatString="Edit CODICELINGUA: {0}, Edit CODICEFORM: {0}" EditFormType="Template"> 
                    <PopUpSettings Modal="true" /> 
                    <FormTemplate> 
                    <table id="Table1" cellspacing="1" cellpadding="1" width="250" border="0"> 
                        <tr> 
                            <td> 
                            </td> 
                            <td> 
                            </td> 
                        </tr> 
                        <tr> 
                            <td> 
                                Descrizione: 
                            </td> 
                            <td> 
                                <asp:TextBox ID="TextBox10" Text='<%# Bind( "DESCRIZIONE") %>' runat="server"> 
                                </asp:TextBox> 
                            </td> 
                        </tr> 
                        <tr> 
                            <td> 
                                Descrizione Aiuto: 
                            </td> 
                            <td> 
                                <asp:TextBox ID="TextBox11" Text='<%# Bind( "DESCRIZIONEAIUTO") %>' runat="server"> 
                                </asp:TextBox> 
                            </td> 
                        </tr> 
                        <tr> 
                            <td> 
                                Annotazioni: 
                            </td> 
                            <td> 
                                <asp:TextBox ID="TextBox12" Text='<%# Bind( "ANNOTAZIONI") %>' runat="server"> 
                                </asp:TextBox> 
                            </td> 
                        </tr> 
                    </table> 
                    <table style="width: 100%"> 
                        <tr> 
                            <td align="right" colspan="2"> 
                                <asp:Button ID="Button1" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>' 
                                    runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'> 
                                </asp:Button>&nbsp; 
                                <asp:Button ID="Button2" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel"> 
                                </asp:Button> 
                            </td> 
                        </tr> 
                    </table>                         
                    </FormTemplate> 
                </EditFormSettings> 
             </MasterTableView> 
            <ClientSettings> 
                <ClientEvents OnRowDblClick="RowDblClick" /> 
            </ClientSettings> 
        </telerik:RadGrid> 
    <asp:ObjectDataSource  
        ID="objDS"  
        runat="server"  
        SelectMethod="selectUTEPagine" 
        UpdateMethod="updateUTEPagine" 
        InsertMethod="insertUTEPagine"       
        DeleteMethod="deleteUTEPagine"       
        SortParameterName="orderBy" 
        TypeName="_classes.GestioneLingue" 
        ConflictDetection="CompareAllValues" 
        OldValuesParameterFormatString="orig_{0}"> 
        <SelectParameters> 
            <asp:ControlParameter ControlID="grdUTEPagine" Name="filterBy" PropertyName="MasterTableView.FilterExpression" Type="String" /> 
        </SelectParameters> 
         
        <UpdateParameters> 
            <asp:Parameter Name="CODICELINGUA" Type="String" /> 
            <asp:Parameter Name="CODICEFORM" type="Int32" /> 
            <asp:Parameter Name="DESCRIZIONE" Type="String" /> 
            <asp:Parameter Name="DESCRIZIONEAIUTO" Type="String" /> 
            <asp:Parameter Name="ANNOTAZIONI" Type="String" /> 
            <asp:Parameter Name="orig_CODICELINGUA" Type="String" /> 
            <asp:Parameter Name="orig_CODICEFORM" Type="Int32" /> 
        </UpdateParameters> 
         
        <InsertParameters> 
            <asp:Parameter Name="CODICELINGUA" Type="String" /> 
            <asp:Parameter Name="CODICEFORM" type="Int32" /> 
            <asp:Parameter Name="DESCRIZIONE" Type="String" /> 
            <asp:Parameter Name="DESCRIZIONEAIUTO" Type="String" /> 
            <asp:Parameter Name="ANNOTAZIONI" Type="String" /> 
        </InsertParameters> 
         
        <DeleteParameters> 
            <asp:Parameter Name="orig_CODICELINGUA" Type="String" /> 
            <asp:Parameter Name="orig_CODICEFORM" Type="Int32" /> 
        </DeleteParameters> 
         
    </asp:ObjectDataSource>        
      </div> 
  </div> 
</asp:Content> 

Daniel
Telerik team
 answered on 27 Nov 2009
2 answers
114 views

Hello all!!!

How to show a few columns from a different tables in RadGrid? I'm want to try a Telerik OpenAccessDataSource, but i don't know how to use it. This tables in herarchy. Help me please!

Thanks in advance.

Sebastian
Telerik team
 answered on 27 Nov 2009
1 answer
84 views
Hi,

I've got a RadGrid that has filtered columns. When I filter the grid, styles elsewhere on my page go a little haywire and the page doesn't look right.

I've been through all the stylesheets looking for conflicting rules but can't find any. I've attached some screenshots to assist.

Any ideas?

Thanks
Dimo
Telerik team
 answered on 27 Nov 2009
1 answer
104 views
Hi, When i click on html button which is in bottom then its add style="overflow: hidden" in body tag.

How to i can fix this issue?

Regards,
Pravesh

Rumen
Telerik team
 answered on 27 Nov 2009
1 answer
158 views

Hi there,

            We use the following setup:

 

Development Enviroment:

Telerik.Web.UI  - Runtime Ver: 2.0.50727 - Ver: 2009.2.826.20

Microsoft Visual Studio 2005 Version 8.0.50727.762  (SP.050727-7600)

Microsoft .NET Framework Version 2.0.50727

Microsoft-IIS/6.0

ASP.NET 2.0 AJAX Extensions 1.0

 

Production Enviroment:

Telerik.Web.UI  - Runtime Ver: 2.0.50727 - Ver: 2009.2.826.20

Windows Server 2003R2 - 32bit Service Pack 1

IIS v6.0

IIS Security Patches, Service Packs, etc...:              none

Antivirus Software:                                                  none

Fire Wall Software:                                                 none

.NET Frameworks Installed:                                    .Net 2.0 SP2, .Net 3.0 SP2, .Net 3.5 SP1

MS Ajax Versions Installed:                                    ASP.Net 2.0 Ajax Extensions 1.0

Line Speed between Server and Internet:               4096kb

Any other software:                                                MS SQL 2005, CA Arcserve Backup

 

In the development environment the Ajax operations work perfectly, but in the Production environment they are consistently unreliable.  They work only sometimes.  This is evident in that if the Ajax transaction has fired as you will see the RadLoadingPanel.  If the Ajax transaction did not fire you will not see the loading panel and you will see the browsers progress bar indicating that the page is doing a regular postback, and of course you will see the entire page reload.

 

We have issues with scenarios like you select a value from a drop menu and then press an Ajaxified button to send that value and get a response back based on it, and the page does a regular PostBack instead of Ajax transaction, and the default value gets sent not the one the User selected from the drop menu.

 

In our testing of these issues in the production environment, we have found that if we disable Ajax on these pages, by removing the components from the RadAjaxManager, and republishing the site, we no longer have the problem of the default value being sent instead of the one the User selected.  This of course, is not what we want to do. We want to use Ajax in our site.

 

These issues all happen around Ajaxified controls, and only happen in the Production environment.  We have none of these type of issues in the development environment.

 

We publish the site with VS2005 and test it on a development server here, and everything is perfect, then we copy those same files to the Production Server and we have the issues outlined above.

 

How can I get to the bottom of this issue and resolve it so we can use Ajax in our site?

 

Regards,

 

                Scott.

Iana Tsolova
Telerik team
 answered on 27 Nov 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?