Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
213 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
69 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
110 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
79 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
147 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
3 answers
116 views
Hello

we are using telerik version "2008.2.826.20" radeditor for one of my project.
It works normal for some of the html fomats. But sometimes there are senarios where on pasting some html in html mode, switch to design mode and then again when tried to switch to Html mode it gives javascript error

Message: 'styleSheet' is null or not an object
Line: 461
Char: 1
Code: 0
URI: http://............/ScriptResource.axd?d=llZhXWl6Cygg2gNOHRv3hQfS9_g_NzcOyPqP5JZNQHJND-oOwSYEBW9js92K5CCKKYPSxJECyJQOoHQRmadliQ2&t=633731249133424980

We tried copying same html in latest radeditor of telerik's site but iwe get same error.
We also tried disabling ConvertToXHtml content filter but that didnt help.

Here is one of the kind of html which we try to paste:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "">
<html><head>
<meta http-equiv="content-language" content="en-us">
<title>Company</title>
</head>
<body >
<div class="mktEditable" id="main_text" ><br>Hello {{First Name:default=Sir/Madam}},<br> <mce:Style><mce:Style> <br>
This is for testing.
<div>
</body>
</html>

When I remove this "<mce:Style><mce:Style>" tag from the html, it works fine.

Can anyone tell me what could be the issue for this? What setting I have to do for getting rid of this?
We aslo want to know whether validation while switching between modes and submitting can be disabled. As stated we tried disabling contentfilters but no use. Tried ContentFilters = "None" also.

Please reply ASAP as this was the complaint from our Clients.

Thanks in advance.
Sups

Rumen
Telerik team
 answered on 27 Nov 2009
8 answers
180 views
Im trying to break down my grid in mutiple datasets for easy sorting and so I dont overload the client with too much data.  So I have a button and in the button I change the SQL and Rebind the data and it displays correctly in the grid. However if you then goto filter etc it repull in the original binding information.

This works except when I got filter then it goes back to the original select statment.
    Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click  
        HistorySQL.SelectCommand = "SELECT DRCMPY, DRYEAR, DRMKT, DRCCOD, DRBCN, DRSSN1, DRSSN2, DRSSN3, DRTEAM, DRPLNR, DRSTYL, DRSTDS, DRFCST, DRFCDS, DRSIZE, DRITEM, DRIDES, " & _  
                      "DRIDS2, DRCOAT, DRCTDS, DRCPRT, DRSD1, DRSD2, DRSD3, DRSD4, DRSD5, DRSD6, DRSD7, DRSD8, DRSD9, DRSD10, DRSD11, DRSD12, DRSU1, DRSU2, " & _  
                      "DRSU3, DRSU4, DRSU5, DRSU6, DRSU7, DRSU8, DRSU9, DRSU10, DRSU11, DRSU12, DRM1, DRM2, DRM3, DRM4, DRM5, DRM6, DRM7, DRM8, DRM9, DRM10, " & _  
                      "DRM11, DRM12, DRL1, DRL2, DRL3, DRL4, DRL5, DRL6, DRL7, DRL8, DRL9, DRL10, DRL11, DRL12, DRO1, DRO2, DRO3, DRO4, DRO5, DRO6, DRO7, DRO8, DRO9, " & _  
                      "DRO10, DRO11, DRO12, DRSD1+DRSD2+DRSD3+DRSD4+DRSD5+DRSD6+DRSD7+DRSD8+DRSD9+DRSD10+DRSD11+DRSD12 AS DRSDYR, " & _  
                      "DRSU1+DRSU2+DRSU3+DRSU4+DRSU5+DRSU6+DRSU7+DRSU8+DRSU9+DRSU10+DRSU11+DRSU12 AS DRSUYR,    " & _  
                      "DRM1+DRM2+DRM3+DRM4+DRM5+DRM6+DRM7+DRM8+DRM9+DRM10+DRM11+DRM12 AS DRMYR, " & _  
                      "DRL1+DRL2+DRL3+DRL4+DRL5+DRL6+DRL7+DRL8+DRL9+DRL10+DRL11+DRL12 AS DRLYR, " & _  
                      "DRO1+DRO2+DRO3+DRO4+DRO5+DRO6+DRO7+DRO8+DRO9+DRO10+DRO11+DRO12 AS DROYR, " & _  
                      "DRM1+DRM2+DRM3+DRM4+DRM5+DRM6+DRM7+DRM8+DRM9+DRM10+DRM11+DRM12+DRL1+DRL2+DRL3+DRL4+DRL5+DRL6+DRL7+DRL8+DRL9+DRL10+DRL11+DRL12+DRO1+DRO2+DRO3+DRO4+DRO5+DRO6+DRO7+DRO8+DRO9+DRO10+DRO11+DRO12 AS YRCost, " & _  
                      "Case WHEN (DRSD1+DRSD2+DRSD3+DRSD4+DRSD5+DRSD6+DRSD7+DRSD8+DRSD9+DRSD10+DRSD11+DRSD12) = 0 Then 0 Else (((DRSD1+DRSD2+DRSD3+DRSD4+DRSD5+DRSD6+DRSD7+DRSD8+DRSD9+DRSD10+DRSD11+DRSD12)-(DRM1+DRM2+DRM3+DRM4+DRM5+DRM6+DRM7+DRM8+DRM9+DRM10+DRM11+DRM12+DRL1+DRL2+DRL3+DRL4+DRL5+DRL6+DRL7+DRL8+DRL9+DRL10+DRL11+DRL12+DRO1+DRO2+DRO3+DRO4+DRO5+DRO6+DRO7+DRO8+DRO9+DRO10+DRO11+DRO12))/(DRSD1+DRSD2+DRSD3+DRSD4+DRSD5+DRSD6+DRSD7+DRSD8+DRSD9+DRSD10+DRSD11+DRSD12)) END AS YRPV " & _  
                      "FROM D097 WHERE DRYEAR Between Year(GetDate())-2003 and Year(GetDate())-2000"  
        HistoryGrid.DataBind()  
    End Sub 
Yavor
Telerik team
 answered on 27 Nov 2009
1 answer
104 views
How can i change output of tabs like
1-Tab1 2-Tab2 3-Tab3

i mean instead of ul , i want to use ol
Thanks.
Paul
Telerik team
 answered on 27 Nov 2009
1 answer
91 views
Hi

I have a RadGrid, datbound in code behind using a dataclass to get the data.

I want to implement sorting and paging, but when I turn it on I get the following error in the _ItemCommand.
Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index
I guess I need to check here that I'm actually looking at a row, If I'm correct how do I do that. If I'm wrong what do I need to do.

This is the start of my code:
   Protected Sub rgUsers_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles rgUsers.ItemCommand  
 
 
        Dim User_ID As Guid = e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("UserId")  
        Dim CommandName As String = e.CommandName  
 
        Select Case CommandName  
            Case "EditUser"  
 

Andy

Pavlina
Telerik team
 answered on 27 Nov 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?