Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
130 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
358 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
89 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
558 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
158 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
120 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
225 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
211 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
175 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
5 answers
277 views
We've developed a tool for a client of ours that uses the radScheduler control so they can make plans for their consultants for the future.

However, we've received a call today to say that they cannot view data beyond 1 year into the future. I've done some testing, and noticed that the end date is indeed 365 days from today (today being 21st May 2013 - EndDate is 21st May 2014) , and it's read only. If I set the StartDate of the timeline view to be after this (30th June 2014), the radScheduler control only shows data up to the TimeLineView EndDate and not beyond.

How can I get around this, and force the radScheduler control to show data beyond 365 days from a given date?

We are using an older version of the control, but you have removed other controls we use (such as RadPanelBar) so upgrading will be a major pain.

Karl

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