Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
263 views
We've specified a number of CssClasses for our website's RadGrids' various styles, (specified via a .skin and .css file, so end-users can customise them easier), and have just upgraded to Q1 2009 - and so these settings have now been overridden by the Skin. Because of this, we've disabled the skin, (i.e. Skin=""), but this means the grid's pager appears on four lines as in;

{first} {prev}
{page numbers}
{next} {last}
Displaying page {num} of {count}, {first} to {last}

How can we put this content onto one line without having to return to the default skin?

Thanks,
Paul
Dave
Top achievements
Rank 1
 answered on 09 Feb 2011
2 answers
79 views
Hi,

it took me some while to figure out what was wrong.
Scenario:
RadTabStrip with RadMultiPage, one tab dynamically loads a usercontrol which contains a TreeList.
Important to note here is that the property ClientIdMode of the TreeList is set to Static!

When I expand one column in the TreeList, the loading panel is shown (AjaxManager is on the same page with RadTabStrip).
The second action on the treelist though, refreshes the whole page. 
I tried to contain the problem and created a new web site project, but it worked as I expected,  until I referenced the AjaxControlKit, without using any controls though. 

If I change the ClientIdMode of the TreeList to AutoId, it works as expected. This problem might even occur without loading the usercontrol dynamically
I created a sample project, where can I upload it?

Forgot to add the version info:
  • AjaxControlKit  4.1.40412.0 
  • Telerik.Web.UI  2010.3.1317.40

Cheers Deval
Maria Ilieva
Telerik team
 answered on 09 Feb 2011
1 answer
41 views
Dear All,

If we trun the grid into edit all mode, and move the cursor through tabbing, the horizontal scrollbar dont move. If I move the scroll bar then it do scroll. I dont know why on tabbing, horizontal scroll isnt working. Can you please give me a demo application about this issue.

Similarly, if we use fixed column and above senario is repeated, the serious issues are encontered. We are unable to scroll, dont know why.

Thanks

Nabeel
Pavlina
Telerik team
 answered on 09 Feb 2011
1 answer
43 views
Dear All,

We have a unique functionality in our DataGrid. We need to have edit all functionality, which is easily achievable. However, we also need a button on the header of the column. When this button is clicked, we need to have all the column textboxes in edit mode. We have not yet seen any example which can achieve this task.

Please let us know asap.

Thanks    

Nabeel Faruqui
Pavlina
Telerik team
 answered on 09 Feb 2011
3 answers
72 views
1. Type some text
2. Remain on same line and change font foreground colour. Don't type anything more.
3. Press Enter, and type more text. Notice that the font colour specified in the step above has not taken effect, even though the colour is still showing in the toolbar.

The same thing happens if you change font face, but a change in font size works as you would expect.
Rumen
Telerik team
 answered on 09 Feb 2011
5 answers
74 views
I am using the RadEditorStatistics module.  Is it possible to display the MaxTextLength in the footer of the window so it shows something like:

Words: 40 Characters: 252 of 1250

where 1250 is MaxTextLength

Thanks.  If not, this would be a very nice thing to add.

Michael Grant
Rumen
Telerik team
 answered on 09 Feb 2011
1 answer
104 views
Hello Everyone,

Fixed Columns is the basic feature of our application. We need to have fixed columns and multiple merged headers and other complex functionality in your Grid. When we proceeded with your Grid, we encounter serious issues. Some of the documented issues on your site are as follows which clearly states that these are not supported.

Unsupported scenarios

There are several limitations that you should have in mind. They are caused by the complexity and specifics of the frozen columns feature, which is implemented by means of hiding and showing columns, instead of actually scrolling them.

  • Resizing with frozen column is not supported.  (We don’t need that)
  • Having hidden columns (with Display property set to false) or hiding/showing columns and frozen columns are not supported at the same time. Hidden columns reappear after scrolling.  (Problem)
  • Merged headers with frozen columns are not supported. (Big problem for us)
  • When frozen columns are used, tabbing between the textboxes in an inline edit form is not supported out-of-the-box, because the frozen columns will be scrolled together with the non-frozen. In selected scenarios, this functionality can be achieved if you subscribe to the textboxes' focus events and scroll a specific <div> with Javascript. This <div> has a client ID of "..._Frozen" where "..." is the RadGrid client ID. When doing this, you should take into account the current scroll position, and the width of the column that should be hidden/shown.
  • OnScroll client-side event does not fire when horizontal scroll is used for scrolling. (not a problem for us)
  • Frozen columns are not supported for detail tables of hierarchy grid. (we don’t need that)


Please let us know if there are any workarounds for each of the mentioned issues. We seriously need some solution about these issues, specially the ones which have comments in brackets next to it.  We want to know if these issues will be addressed in the next versions. These are Bottleneck for us to use in our application

Thanks and Regards

Nabeel Faruqui

Pavlina
Telerik team
 answered on 09 Feb 2011
4 answers
168 views
I am using RadEditor and the images that I place in the editor have absolute URLs.  According to what I've read (and what I want) the paths should be relative URLs. 
Rumen
Telerik team
 answered on 09 Feb 2011
2 answers
200 views
I'd like to change the appearance of the date shown within the filter row of my griddatetimecolumn and set it from the default to my native german style.

How do I do that ??

I've tried the itemcreated-event of the grid, but without any success:

    Protected Sub Grid_ItemCreated(ByVal sender As Object, ByVal e As GridItemEventArgs) Handles Grid.ItemCreated
        If TypeOf e.Item Is GridFilteringItem Then
            Dim filteringItem As GridFilteringItem = CType(e.Item, GridFilteringItem)
            'set dimensions for the filter textbox
            'Dim box As TextBox = CType(filteringItem("ContactName").Controls(0), TextBox)


            Dim filterItem As GridFilteringItem = DirectCast(e.Item, GridFilteringItem)
            Dim DateOpened As RadDatePicker = DirectCast(filterItem("column1").Controls(0), RadDatePicker)
            DateOpened.Culture = //some variable i store in session
        End If
    End Sub 'RadGrid1_ItemCreated

Any advice/ hint on this for me ?? Thanks in advance
Hendrik
Hendrik
Top achievements
Rank 1
 answered on 09 Feb 2011
1 answer
122 views

How to get the data from a sessiondatasource?
I get the following scenario:

The code the .aspx is as below:

<sds:SessionDataSource 
        DisplayWarning                  = "False"    
        PrimaryKeyFields                = "dp_key"
        ProviderName                    = "System.Data.SqlClient"
        ID                                         = "devis" 
        runat                                    = "server" 
        ConnectionString                = "<%$ ConnectionStrings:xxxxxxxxxx_Connection %>" 
        ConflictDetection               = "CompareAllValues" 
        OldValuesParameterFormatString  = "original_{0}"
        SelectCommand="SELECT * FROM [devis] ORDER BY dp_key"
        DeleteCommand="DELETE   FROM [devis] WHERE [dp_key] = ?"
        InsertCommand="INSERT   INTO devis(dp_codeprd, dp_nombre, dp_convives, dp_prixs, dp_prixs_unitaire) VALUES (?, ?, ?, ?, ? )" 
           
        >
        <DeleteParameters>
            <asp:Parameter Name="original_dp_key"               Type="Int32"   />
        </DeleteParameters>
        <InsertParameters>
            <asp:Parameter Name="dp_codeprd"                    Type="String"   />
            <asp:Parameter Name="dp_nombre"                     Type="String"   />
            <asp:Parameter Name="dp_convives"                   Type="Int16"    />
            <asp:Parameter Name="dp_prixs"                      Type="Decimal"  />
            <asp:Parameter Name="dp_prixs_unitaire"             Type="Decimal"  />
        </InsertParameters>
</sds:SessionDataSource>

This definition is used in a RadGrid. The code the .aspx is as below:
<telerik:RadGrid 
        ShowFooter              = "false"
        ID                      = "devis_prd" 
        runat                   = "server"
        DataSourceID            = "devis" 
        Width                   = "100%" 
        AllowPaging             = "True" 
        PageSize                = "10" 
        AllowSorting            = "false"
        GridLines               = "None"
           
        AllowAutomaticDeletes   = "True" 
        AllowAutomaticInserts   = "True"
        AllowAutomaticUpdates   = "True"
        onitemdatabound         = "devis_prd_ItemDataBound" 
    >
    <HeaderContextMenu EnableTheming="True">
        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
    </HeaderContextMenu>
    <MasterTableView 
        AutoGenerateColumns         = "False" 
        Width                       = "100%"    
        HorizontalAlign             = "NotSet"  
        CommandItemDisplay          = "None" 
        CurrentResetPageIndexAction = "SetPageIndexToFirst"
        DataKeyNames                = "dp_key, dp_prixs" 
        Name                        = "devis_prd"
        NoMasterRecordsText         = "Votre devis est vide !" 
        NoDetailRecordsText         = "Aucun produit sélectionné !"
        >
        <Columns>
            <telerik:GridBoundColumn
                DataField               = "dp_key" 
                HeaderText              = "Id " 
                SortExpression          = "dp_key" 
                UniqueName              = "dp_key"
                DataType                = "System.Int32" 
                ReadOnly                = "True" 
                Visible                 = "False"
                >
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn 
                DataField               = "dp_CodePrd" 
                UniqueName              = "dp_CodePrd"
                HeaderText              = "Code Produit"
                DataType                = "System.String"
                DataFormatString        = "{0:LLL-LL-000}"
                >
                <HeaderStyle HorizontalAlign="Center" /> 
                <ItemStyle   HorizontalAlign="Center" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn 
                DataField               = "dp_nombre" 
                SortExpression          = "dp_nombre" 
                UniqueName              = "dp_nombre"
                HeaderText              = "Nom du Produit"
                DataType                = "System.String" 
                >
                <HeaderStyle HorizontalAlign="Left" /> 
                <ItemStyle   HorizontalAlign="Left" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn 
                DataField               = "dp_convives" 
                SortExpression          = "dp_convives" 
                UniqueName              = "dp_convives"
                HeaderText              = "Convives"
                DataType                = "System.Int32" 
                >
                <HeaderStyle HorizontalAlign="Right" /> 
                <ItemStyle   CssClass="monto_grid" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn 
                DataField               = "dp_prixs" 
                SortExpression          = "dp_prixs" 
                UniqueName              = "dp_prixs"
                HeaderText              = "Prix de la Paella"
                DataType                = "System.Decimal" 
                DataFormatString        = "{0:C2}"
                >
                <HeaderStyle HorizontalAlign="Right" /> 
                <ItemStyle   CssClass="monto_grid" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn 
                DataField               = "dp_prixs_unitaire" 
                SortExpression          = "dp_prixs_unitaire" 
                UniqueName              = "dp_prixs_unitaire"
                HeaderText              = "Prix unitaire "
                HeaderStyle-Width       = "120"
                DataType                = "System.Decimal" 
                DataFormatString        = "{0:C2}"
                >
                <HeaderStyle HorizontalAlign="Right" /> 
                <ItemStyle   CssClass="monto_grid" />
            </telerik:GridBoundColumn>
            <telerik:GridButtonColumn 
                ConfirmText             = "Cette action permet de supprimer le produit sélectionné de votre devis. <br/><br/>Etes-vous sûr ? <br/><br/>" 
                ButtonType              = "ImageButton"
                CommandName             = "Delete" 
                Text                    = "Supprimer ce produit" 
                UniqueName              = "DeleteColumn" 
                ConfirmDialogType       = "RadWindow"
                >
                <HeaderStyle Width="20px" />
                <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" />
            </telerik:GridButtonColumn>
        </Columns>
        <EditFormSettings>
            <EditColumn CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType"></EditColumn>
        </EditFormSettings>
    </MasterTableView>
    <PagerStyle Mode="NextPrevAndNumeric" />
    <FilterMenu EnableTheming="True">
        <CollapseAnimation Duration="200" Type="OutQuint" />
    </FilterMenu>                        
</telerik:RadGrid>
So no problem here ...!

Then, I need to show the items found on the sessiondatasource and try the following(the code behind the .aspx is as below):
string query_str = "SELECT * FROM [devis] order by dp_key";
DataTable dt = GetDataTable(query_str);
RadGrid_devis_panel.DataSource = dt;
RadGrid_devis_panel.DataBind();
etapa_02.Alert("--> devis_rpt_PreRender : " + dt.Rows.Count);

I do not show any item (dt.Rows.Count = 0), as I can read data from the sessiondatasource?

Thanks in advance!
Jorge Saa-Gerbier

The code the  is as below: (the code behind the  is as below):
Iana Tsolova
Telerik team
 answered on 09 Feb 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?