Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
226 views

As I said, how to define style to export GridImageColumn from RadGrid?

I have a GridImageColumn, and the real size of pic is 100px*100px, and I set both ImageHeight and ImageWidth are 40px, it works fine to show on UI, no issues.  my question is, when I export the RadGrid to Excel, GridImageColumn is also export successful, but the size is 100px*100px, how do I define some styles to change the size in Excel when exoprting? because I would like to be same size as shown as on UI. thank you very much.

Attila Antal
Telerik team
 answered on 31 May 2022
2 answers
155 views

Hi,

 

When currentpageindex = 1, grid retrieve only 1 row but if currentPageIndex <> 1 returns the rows excepted.

 

I ajaxified the grid.

        <telerik:RadAjaxManager ClientEvents-OnResponseEnd="AjaxResponseEnd" ID="ramRepostasConsentimentos" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="rgListagem">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="rgListagem" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>

 

I set pageSize to 20 and i am using custom paging.

                    <telerik:RadGrid ID="rgListagem" runat="server" RenderMode="Lightweight" Width="100%" CellSpacing="0" BorderWidth="0" GridLines="None" PageSize="20" EnableViewState="true">
                        <MasterTableView TableLayout="Fixed" AutoGenerateColumns="false" AllowCustomPaging="true" AllowPaging="true" PageSize="20" ShowHeadersWhenNoRecords="true">
                            <Columns>
                                <telerik:GridBoundColumn DataField="numMec" HeaderText="Nº Mec.">
                                    <HeaderStyle CssClass="TextIndent" Width="100px" />
                                    <ItemStyle CssClass="TextIndentRight" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="descColaborador" HeaderText="Colaborador">
                                    <HeaderStyle CssClass="TextIndent" Width="30%" />
                                    <ItemStyle CssClass="TextIndent" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="descConsentimentoInformado" HeaderText="Consentimento Informado">
                                    <HeaderStyle CssClass="TextIndent" Width="70%" />
                                    <ItemStyle CssClass="TextIndent" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="consentimento" HeaderText="Consentimento">
                                    <HeaderStyle CssClass="TextIndent" Width="100px" />
                                    <ItemStyle CssClass="TextIndent" />
                                </telerik:GridBoundColumn>
                            </Columns>
                        </MasterTableView>
                        <HeaderStyle VerticalAlign="Middle" HorizontalAlign="Left" />
                        <AlternatingItemStyle CssClass="TLookUpsRowBlue" VerticalAlign="Middle" />
                        <ItemStyle CssClass="TLookUpsRowGrey" VerticalAlign="Middle" />
                        <PagerStyle Mode="NextPrevAndNumeric" Position="Bottom" PageSizeControlType="None" PagerTextFormat="{4} Pag. {0} de {1}, Registos {2} até {3} de {5}." CssClass="TLookupsFooter" PageButtonCount="5" />
                        <ClientSettings>
                            <Scrolling UseStaticHeaders="true" AllowScroll="true" />
                        </ClientSettings>
                    </telerik:RadGrid>

 

I am using OnNeedDataSourceEvent.


Protected Sub rgListagem_NeedDataSource(sender As Object, e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles rgListagem.NeedDataSource
        Dim SqlCmd As SqlCommand, SqlDa As SqlDataAdapter, Data As DataTable

            SqlCmd = fGetClsFunc.fGetCommand(StoredProcedureName, CommandType.StoredProcedure, True)
            SqlCmd.Parameters("@strAction").Value = "R"
            SqlCmd.Parameters("@skip").Value = rgListagem.MasterTableView.CurrentPageIndex * rgListagem.MasterTableView.PageSize
            SqlCmd.Parameters("@take").Value = rgListagem.MasterTableView.PageSize + 
rgListagem.MasterTableView.CurrentPageIndex * rgListagem.MasterTableView.PageSize

            SqlDa = New SqlDataAdapter(SqlCmd)
            Data = New DataTable()

            SqlDa.Fill(Data)


        rgListagem.DataSource = Data
        rgListagem.VirtualItemCount = SqlCmd.Parameters("@Contador").Value
    End Sub

 

if CurrentPageIndex = 1, Query returns 20 rows but only appear one.

Mukesh
Top achievements
Rank 1
Iron
 answered on 31 May 2022
1 answer
196 views

Is there a better way, or built-in way, when an Item gets Filtered using the drop-down menu, to show it in the header cell like it does when you sort.

I found an old thread and copied it to my Item Command, so an image is shown for now.
Am I missing a setting to do it automatically?  I let them choose the Theme, so I can't arbitrarily impose a syle on the Header.

Thanks

David


            if (e.CommandName == RadGrid.HeaderContextMenuFilterCommandName)
                {
                Triplet arguments = e.CommandArgument as Triplet;
                Pair filter1 = arguments.Second as Pair;
                Pair filter2 = arguments.Third as Pair;
                GridColumn column = (rgCOREPARTS  as RadGrid).MasterTableView.GetColumn(arguments.First.ToString());
                if (filter1.First.ToString() == "NoFilter" && filter2.First.ToString() == "NoFilter")
                    {
                    column.HeaderText = column.UniqueName;
                    }

                else
                    {
                    column.HeaderText = column.HeaderText + "<img src = 'https://hq.certifiedtransmission.com/ufo/Images/Filter02.png' style='float: right;'>";
                    }
                }


Attila Antal
Telerik team
 answered on 31 May 2022
0 answers
690 views

I'm using Sitecore 9.3 and the RTE is currently removing HTML entities that needs to be kept in content.
The issue is with the word joiner entity: 

&#8288;

&NoBreak;

 

https://www.screencast.com/t/nL1ufw7s

 

Is there anything that can be done to fix that behavior?

Thanks!

Rodrigo
Top achievements
Rank 1
 asked on 30 May 2022
1 answer
202 views

Radsearchbox is working fine when user input is by typing or copy-paste but when the input is from  barcode reader radsearchbox not fire Search event.

¿Can i use an alternative event?

Doncho
Telerik team
 answered on 30 May 2022
0 answers
186 views

We have a couple of grids in which we use drag and drop to move content between the grids.  However in a recent update, we needed to add a hyperlink column to the grids.  The problem is when you want to drag and you click on the hyperlink column, it does not select and drag the row, it appears to try and drag a link(and no drag/drop events fire).  Of course we would like the single click to continue to launch a detail page from hyperlink, but click and drag to move the row to the other grid. 

Is is possible to distinguish between a single click to launch the hyperlink content,  but also recognize the click and hold for dragging to move the row to the other grid ???

 

Van
Top achievements
Rank 1
Iron
Iron
 asked on 27 May 2022
0 answers
187 views
RadEditor has Undo Redo controls, The issue is under same page in each different instance RadEditor is retaining data when we click on Undo Redo. So, we need to clear the buffer that exists in Undo, Redo. Please provide any solution for this.
Mallikarjuna
Top achievements
Rank 1
 asked on 27 May 2022
1 answer
616 views
Hi,
the scenario we need is this:
There is a list of images displayed in the gallery view (images are stored on the http file server). After you click on one of the images in the gallery view, we need the image editor to load the selected image for editing, and be able to save it after editing is done.

Do we need to download image first to the local temp folder, or can we load them from the URL? Is there an example?

How can I get image from the selected gallery item loaded into the editor?

Thank you,

Doncho
Telerik team
 answered on 27 May 2022
0 answers
121 views

I am using the Header Context Menu Filter and it is behaving oddly I can't figure this out. 

On page load everything looks good but on a postback  - just the clear sorting goes away.  Any ideas ?

GDPR_erased
Top achievements
Rank 1
 asked on 26 May 2022
0 answers
158 views

RadEditor Font Size and Font name drop down list is moving out of the editor 
Please let me know if it is known issue or do we have any fix for this 

 

Mallikarjuna
Top achievements
Rank 1
 asked on 26 May 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?