Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
59 views
In our application we have functionality that when user double click on any row of Rad-grid then that row become in editable mode. so now we have requirement that when user double click on a specific column of that row then after coming in editable mode that control must be auto focused.
So i need the value of cell on which it is double clicked to set the focus on that control when that row comes in editable mode. So is there any event of Rad-grid which provides this functionality.

Any suggestion will be helpful.

In my attached image if i double click on row's RateType column then the RateType Drop Down which comes in editable mode must be auto focused.
Himanshu
Top achievements
Rank 1
 asked on 06 Sep 2013
1 answer
126 views
I have the below line in my header template of radpanelbar.
<td style="text-align: right"><span class="rpExpandHandle" style="cursor: pointer;"></span></td>
I want to capture this expand collapse event from onclientitemclicking function.
On expanding/collapsing i want to prompt the user. How can i achieve this.
Peter Filipov
Telerik team
 answered on 06 Sep 2013
3 answers
335 views
Hi,
Can we restrict a window close event? It should show a alert message and not close the window.





Thanks
Shinu
Top achievements
Rank 2
 answered on 06 Sep 2013
4 answers
81 views
Hi

The file filtering in File Open dialog is working in IE only and in other browser it list all the files. Why this is happening? Any solution?
Shinu
Top achievements
Rank 2
 answered on 06 Sep 2013
3 answers
542 views
Hi,

Is there any way through JavaScript to detect if a row is selected using left click or right click? When a row is right clicked, it is first selected and immediately the context menu is fired.
If a row is left clicked, it is selected, and right clicking on the selected row fires the context menu. I need to distinguish between the two.


Regards,
Ali.
Ali
Top achievements
Rank 1
 answered on 06 Sep 2013
3 answers
147 views
There is a radgrid in my web application and I am displaying its edit form a user control. The grid edit form has an upload control to upload files. All were working fine when I run this application from localhost and once this application is moved to IIS7 on the windows server 2008 production server, the upload is not working. Everything works fine if I edit without upload a file. If I upload a file and try to save the edit form, IE displays it cannot find display the page and MF says that the connection has been reset.

Not sure what is causing this issue with the same application on IIS.
Senthil
Shinu
Top achievements
Rank 2
 answered on 06 Sep 2013
1 answer
112 views
Good afternoon stoy trying to access the data of a hidden column in the event rowdrop, but the value displayed is ""
<telerik:RadGrid ID="GrdDetalleHorario" runat="server" AllowMultiRowSelection="true"
                                AutoGenerateColumns="False" GridLines="None" Width="240px">
                                <AlternatingItemStyle />
                                <ItemStyle />
                                <MasterTableView>
                                    <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
                                    <RowIndicatorColumn>
                                        <HeaderStyle Width="20px"></HeaderStyle>
                                    </RowIndicatorColumn>
                                    <ExpandCollapseColumn>
                                        <HeaderStyle Width="20px"></HeaderStyle>
                                    </ExpandCollapseColumn>
                                    <Columns>
                                        <telerik:GridBoundColumn Visible="false" DataField="HorarioDetalleID" HeaderText="Codigo"
                                            UniqueName="HorarioDetalleID" >
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn Visible="false" DataField="HorarioID" HeaderText="HorarioID"
                                            UniqueName="HorarioID" >
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn ItemStyle-Width="10px" DataField="HoraInicio" HeaderText="H. Ini."
                                            UniqueName="HoraInicio">
                                            <ItemStyle Width="10px"></ItemStyle>
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn ItemStyle-Width="10px" DataField="HoraFinal" HeaderText="H. Fin"
                                            UniqueName="HoraFinal">
                                            <ItemStyle Width="10px"></ItemStyle>
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn Visible="false" ItemStyle-Width="10px" DataField="Flag"
                                            HeaderText="Receso" UniqueName="Flag">
                                            <ItemStyle Width="10px"></ItemStyle>
                                        </telerik:GridBoundColumn>
                                    </Columns>
                                    <EditFormSettings>
                                        <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                                        </EditColumn>
                                    </EditFormSettings>
                                    <PagerStyle PageSizeControlType="RadComboBox"></PagerStyle>
                                </MasterTableView>
                                <FilterMenu EnableImageSprites="False">
                                </FilterMenu>
                                <HeaderStyle BackColor="#D7FFFA" HorizontalAlign="Center" />
                                <PagerStyle PageSizeControlType="RadComboBox"></PagerStyle>
                                <ClientSettings AllowRowsDragDrop="True">
                                    <Selecting AllowRowSelect="True" EnableDragToSelectRows="false" />
                                    <%--<ClientEvents OnRowDropping="onRowDropping" />--%>
                                </ClientSettings>
                            </telerik:RadGrid>
the code is as follows:
Protected Sub GrdDetalleHorario_RowDrop(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridDragDropEventArgs) Handles GrdDetalleHorario.RowDrop
        If String.IsNullOrEmpty(e.HtmlElement) Then
            Dim CursoSemestre As Curso_Presupuesto = oCurso_Presupuesto.ObtenerCursos_SemestreIDPrueba(Session("IDACA"))
            For Each oRowItem As GridDataItem In e.DraggedItems
                Dim ohorarioDetalleID As Integer = oRowItem.Item("HorarioDetalleID").Text  'Here the return value is " "
                Dim oHorarioID As Integer = oRowItem.Item("HorarioID").Text 'Here the return value is " "
                Dim oHoraInicio As String = oRowItem.Item("HoraInicio").Text
Princy
Top achievements
Rank 2
 answered on 06 Sep 2013
4 answers
203 views
Hi,

I have a RadPageView with several RadGrid controls on each page. I am trying to accomplish a few things:

1. Add a CommandItem button but still have the default "refresh" button as well as have the buttons created from CommandItemSettings-AddNewRecordText and ShowExportToPdfButton. Defining a CommandItemTemplate removes these buttons.

2. I want to Hijack the functionality of the CommandItem button created by ShowExportToPdfButton and call my own PDF export method/handler.

3. Since there will be many Grids, how can I hijack each grid's ShowExportToPdfButton and identify which grid to export from the same export method?

Basically, I want a generic way to hijack each Grid's ShowExportToPdfButton or insert into each grid's CommandItem bar a generic exportPDF button that I define.

An add on question is how to find the width of each visible column that is to be exported so that I can set the grid.ExportSettings.Pdf.PageWidth accordingly.

Thanks for any advice.
kernelk
Top achievements
Rank 1
 answered on 06 Sep 2013
4 answers
202 views
By default the blinking yellow status icon is to the left side of the filename, how hard is it to move it to the right side?
Kjell
Top achievements
Rank 1
 answered on 05 Sep 2013
1 answer
165 views
Hello,
I am using 2012.2.607.40 version of RadEditor. I have the editor inside a PageView. I have javascript that resizes my editor width (the resize code works perfectly except if I click on a ribbon bar tab). The problem I am having is when I navigate to the editor (ajax or direct page load) and then click on one of the ribbon bar tabs, the resize code does not resize the ribbon bar, which remains at it original 100% width. This also happen if I open the editor pageView on the initial page load so I don't think it has to do with Editor/PageView/Css issues? If I change to the Default editor toolbar, the editor and default toolbar resize correctly.

Here is my resize javascript code:
window.onresize = onPageResize;
    function onPageResize() {
        var editor = $find("<%=edEditor.ClientID %>");
        if (editor != null) {
            setTimeout(function () {
                var wt = jQuery('.editorTop').width();
                wt = (wt - 15);
                editor.setSize(wt, 600);
                editor.get_element().style.width = wt + "px";
            }, 200);
        }
    }
 
I do have the following code in my Master page to help with the well-known Css limitation:
<Telerik:RadStyleSheetManager ID="SSH1" EnableStyleSheetCombine="true" runat="server">
        <StyleSheets>
            <Telerik:StyleSheetReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Skins.Editor.css" />
            <Telerik:StyleSheetReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Skins.Default.Editor.Default.css" />
            <Telerik:StyleSheetReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Skins.Window.css" />
            <Telerik:StyleSheetReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Skins.Default.Window.Default.css" />
        </StyleSheets>
    </Telerik:RadStyleSheetManager>

Finally here is my editor markup:
<telerik:RadEditor ID="edEditor" Height="600px" Skin="Default" ToolbarMode="RibbonBar" toolsfile="~/Editor/Tools/ToolsFile.xml" EnableResize="false" OnClientLoad="edEditor_ClientLoad" OnClientModeChange="edEditor_ClientModeChange" runat="server">
    <CssFiles>
        <telerik:EditorCssFile Value="~/Editor/Styles/EditorContentArea.css" />
    </CssFiles>
</telerik:RadEditor>

Thank you!

Ianko
Telerik team
 answered on 05 Sep 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
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?