Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
110 views
Hi all,

having a bit some problems with radgris:

1 - cant put column size correct.
2- When scrolleble its true the grid goes hogh wire.
3 - and cant put the grid ocuping all de div.

can anybody help, i have fields of a max of 4 number lenght and it gores like it was 256.
Pavlina
Telerik team
 answered on 22 Apr 2013
1 answer
147 views
Hi,

I have an existing site that has a bunch of dropdownlists in it that don't work in IE10..

They work fine in Chrome/FF/Safari/IE8/IE7..

When I click on the dropdown "triangle" in the dev console I get the error:
SCRIPT5007: Unable to get property 'documentElement' of undefined or null reference 
Telerik.Web.UI.WebResource.axd, line 166 character 2

The Telerik.Web.UI.dll shows the following details in the Windows file properties window:

File Version : 2011.3.1115.40
Product Version : 2011.3.1115.40

I was told that updating to a later version can break other functionality and will potentially require a lengthy coding investment to get things working..

Is there anything I can do with this version to get around this problem in IE10..

Thanks

Thanks
Hristo Valyavicharski
Telerik team
 answered on 22 Apr 2013
1 answer
161 views
Hi, I am looking for some performance improvement techniques that can be used for telerik grid for mvc.
please suggest some videos/blogs.
Petur Subev
Telerik team
 answered on 22 Apr 2013
1 answer
89 views
How to get following chart series in telerik radchart
Missing User
 answered on 22 Apr 2013
1 answer
70 views
Hello,

I am using RadGuage trail version for demo purpose.

Actually I am looking How this will help me in my application.

I have seen there is no effect of Size in Minor Ticks and Major TIcks.

Please look the Attachment which I have just make one application.

There is three atrributes in Major Ticks and Minor Ticks.

Color, Width and Size.

Color and Width take  effect but there is no effect of size on image preview.

Can you provide me demo for this ?

Thank you.
Danail Vasilev
Telerik team
 answered on 22 Apr 2013
1 answer
86 views
We have a RadFilter attached to a RadGrid, and some of the column headers use a BR tag to force them onto two lines in the grid in order to fit all the columns into the available space. Is there a way to take that BR out for that column on the RadFilter so the words won't be wrapped in the RadFilter?
Eyup
Telerik team
 answered on 22 Apr 2013
3 answers
101 views
Hello Guys, 

I have a datagrid with a column as Dropdown, the update/insert/delete is inline. When I click on EDIT, I want that dropdown load all data from database but the correct register selected. I used the command "combo1.DataValueField = "TM_CP_TIPO_MODULO", but don't working, 

Someone know where are the problem?

===================================================================================

Source code:
===================================================================================
 protected void rdgRegistros_ItemDataBound(object sender, GridItemEventArgs e)
        {
            if (e.Item is GridEditableItem && e.Item.IsInEditMode)
            {
                
                FitUtil.EncryptedQueryString args = new FitUtil.EncryptedQueryString(Request.QueryString["args"]);
                GestaoClientesDAL.ModulosDAL objModulosDAL = new GestaoClientesDAL.ModulosDAL();
                int idProduto = Convert.ToInt32(args["IdProduto"]);
                DataSet dtsModulos = objModulosDAL.RecuperaModulo(Conexao, idProduto);

                //Popular DropDown em modo edição  
                GridEditableItem editableItem = e.Item as GridEditableItem;
                TextBox txtNome = (editableItem["MO_NOME"].Controls[0] as TextBox);
                TextBox txtCodigo = (editableItem["MO_COD_MODULO"].Controls[0] as TextBox);
                CheckBox chbAtivo = (editableItem["MO_ATIVO"].Controls[0] as CheckBox);

                //Popular DropDown em modo edição                  
                GestaoClientesDAL.TipoModuloDAL objTipoModuloDAL = new GestaoClientesDAL.TipoModuloDAL();
                DataSet dtsTipoModulo = objTipoModuloDAL.ListaTiposModulos(Conexao, idProduto);
                RadComboBox combo1 = (RadComboBox)editableItem["dplTipo"].Controls[0];               

                combo1.DataSource = dtsTipoModulo;
                combo1.DataTextField = "TM_NOME";
                combo1.DataValueField = "TM_CP_TIPO_MODULO";
                combo1.DataBind();

                //Melhorando a largura do componente
                txtNome.Width = 300;
                txtCodigo.Width = 30;
                combo1.Width = 130;
            }
        }
===================================================================================
ASPX
===================================================================================

<telerik:RadGrid ID="rdgRegistros" runat="server" Visible="False" 
                        CssClass="gridPadrao" AllowPaging="True"
                        Width="895px" AutoGenerateColumns="False"  CellSpacing="0" GridLines="None"
                        AllowSorting="True" OnNeedDataSource="rdgRegistros_NeedDataSource" 
                        OnDeleteCommand="rdgRegistros_DeleteCommand" 
                        onupdatecommand="rdgRegistros_UpdateCommand" Culture="pt-BR" 
                        AllowMultiRowEdit="True" onitemdatabound="rdgRegistros_ItemDataBound" 
                        PageSize="5" oninsertcommand="rdgRegistros_InsertCommand">
                        <ClientSettings EnableRowHoverStyle="True">
                        </ClientSettings>                                               

                        <MasterTableView CommandItemDisplay="Top" AutoGenerateColumns="false"
                        DataKeyNames="MO_CP_MODULO" InsertItemPageIndexAction="ShowItemOnCurrentPage">

                            <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
                            <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
                                <HeaderStyle Width="20px"></HeaderStyle>
                            </RowIndicatorColumn>
                            <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
                                <HeaderStyle Width="20px"></HeaderStyle>
                            </ExpandCollapseColumn>

               <EditFormSettings>
                    <EditColumn FilterControlAltText="Filter EditCommandColumn column" >
                    </EditColumn>
                </EditFormSettings>
                            
<Columns>
...
 <telerik:GridDropDownColumn HeaderText="Tipo do Módulo" UniqueName="dplTipo"  DropDownControlType="RadComboBox"
                                    DataType="System.Int32" DataField="TM_NOME" Visible="false">
                                </telerik:GridDropDownColumn>
</Columns>

( I posted only the part referent with my problem )
===================================================================================
Query(SQL)
===================================================================================

public DataSet RecuperaModulo(string conexao, int IdModulo)
        {
            try
            {
                SqlConnection conn = new SqlConnection(conexao);
                SqlDataAdapter da = new SqlDataAdapter();
                SqlCommand cmd = new SqlCommand();
                cmd.Connection = conn;
                cmd.CommandType = CommandType.Text;
                cmd.CommandText = "SELECT * FROM MODULO "
                    + " WHERE MO_CP_MODULO = " + IdModulo.ToString() + " "
                    + " ORDER BY MO_NOME";
                DataSet ds = new DataSet();
                da.SelectCommand = cmd;
                conn.Open();
                da.Fill(ds);
                conn.Close();
                return ds;
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
                return null;
            }
        }

Princy
Top achievements
Rank 2
 answered on 22 Apr 2013
2 answers
106 views
How can i cancel edit in code behind?

Thank you.
Sonia
Top achievements
Rank 1
 answered on 22 Apr 2013
1 answer
113 views
Hi,

I am using hyperlink inside item template  to navigate other pages that based on type.
If type is Task then I am giving navigateURL is Edittask.aspx
If type is Email then I am opening a radwindow to show email body.
Now I would like to open Attachment if type is attachment.

Note : I am taking image content direct from DB not from any path.
Table & column info here :



Generally I can use GridAttachmentColumn to open/save attachment like this..



I want the same popup that If i click on hyperlink when type is attachment

Code :

Dim subject As String = String.Empty
           Dim item As GridDataItem = DirectCast(e.Item, GridDataItem)
           Dim link As HyperLink = DirectCast(item.FindControl("hlnkDescription"), HyperLink)
           Dim type As String = item("Type").Text
           Dim Privacy As String = item("Privacy").Text
           Dim lnkTaskNo As HyperLink = DirectCast(item.FindControl("hlnkTaskNo"), HyperLink)
           Dim taskNo As String = lnkTaskNo.Text
 
 If type IsNot Nothing And type <> "" Then
               Dim taskHierarchyURL As String = "~/MyTasksHierarchyMain.aspx?TaskNo=" + taskNo + "&Subject=" + subject + "&Id=" + item("Id").Text + ""
               Select Case type
                   Case "Task", "Group"  '28/03/2013  & 03/04/2013
                       If taskNo IsNot Nothing And taskNo <> "" Then
                           If Privacy = "Confidential" Then
                               link.Text = "Private & Confidential"
                               link.CssClass = "hidelink"
                               link.Enabled = False
                           Else
                               If Session("searchtype") = "All" Then
                                   link.NavigateUrl = taskHierarchyURL
                               Else
                                   link.NavigateUrl = "~/EditTask.aspx?TaskNo=" + taskNo + "&Subject=" + subject + "&Id=" + item("Id").Text + ""
                               End If
                           End If
                       End If
                   Case "Email"
                       If taskNo IsNot Nothing And taskNo <> "" And taskNo <> "0" Then
                           If Privacy = "Confidential" Then
                               link.Text = "Private & Confidential"
                               link.CssClass = "hidelink"
                               link.Enabled = False
                           Else
                               'Start : 11/04/2013
                               'link.NavigateUrl = "~/EditTask.aspx?func=email&TaskNo=" + taskNo + "&Subject=" + subject + "&Id=" + item("Id").Text + ""
                               lnkTaskNo.NavigateUrl = "~/EditTask.aspx?func=email&TaskNo=" + taskNo + "&Subject=" + subject + "&Id=" + item("Id").Text + ""
                               link.Attributes("href") = "javascript:void(0);"
                               link.Attributes("onclick") = [String].Format("return ShowEmailBodyForm('{0}','{1}');", item("Id").Text, e.Item.ItemIndex)
                               'End : 11/04/2013                           
                           End If
                       Else
                           link.NavigateUrl = "~/MasterScreen.aspx?page=EmailMasterLink&TaskNo=0&Mth=0&Yr=0&Subject=" + subject + "&Id=" + item("Id").Text + ""
                           If item("InitiatorName").Controls.Count > 0 Then
                               DirectCast(item("InitiatorName").Controls(0), TextBox).Visible = False
                           End If
                       End If
                       Dim message As String = HtmlRemoval.StripTagsRegex(item("Message").Text).Replace(".", "").ToString()
                       item("Message").Text = message.Substring(0, 100) + "..."
                       Session("SearchEmail") = True '03/04/2013
                   Case "Attachment"
                       If taskNo IsNot Nothing And taskNo <> "" And taskNo <> "0" Then
                           If Privacy = "Confidential" Then
                               link.Text = "Private & Confidential"
                               link.CssClass = "hidelink"
                               link.Enabled = False
                           Else
                               link.NavigateUrl = "~/EditTask.aspx?func=attachments&TaskNo=" + taskNo + "&Subject=" + subject + "&Id=" + item("Id").Text + ""
                           End If
                       Else
                           link.NavigateUrl = "~/MasterScreen.aspx?page=UncategorisedAttachments,NonTask&Subject=" + subject + "&Id=" + item("Id").Text + ""
                       End If                    
               End Select
           End If

Design  :
<telerik:GridTemplateColumn ShowSortIcon="true" SortExpression="Subject" FilterControlAltText="Filter Subject column"
                                       DataField="Subject" FilterControlWidth="250px" DataType="System.String" UniqueName="Subject"
                                       HeaderText="Click to view attachment / emails / tasks">
                                       <ItemTemplate>
                                           <asp:HyperLink ID="hlnkDescription" Target="_blank" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "Subject")%>'></asp:HyperLink>
                                       </ItemTemplate>
                                   </telerik:GridTemplateColumn>


Please help on this .. Thanks in advance..
Vasil
Telerik team
 answered on 22 Apr 2013
3 answers
125 views
Hi,

I am using Telerik's 2012.1.411 version. In this, the radgrid's vertical scroll seemed to be shifted outside the header. I am attaching the snapshots of it.
Earlier, the vertical scroll was within the last header.
I am not sure whether the version change has caused this changed or how?
Venelin
Telerik team
 answered on 22 Apr 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?