Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
74 views
I have got the Export settings enabled within my RadGrid, but cannot figure out how to execute or initiate an export of the data that is currently in the Grid.


<telerik:RadGrid ID="RadGrid2" runat="server" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" DataSourceID="OpenAccessLinqDataSource1" Skin="Sunset" CellSpacing="-1" GridLines="Both" AutoGenerateEditColumn="True" AllowFilteringByColumn="True" AllowSorting="True" ShowGroupPanel="True">
<ExportSettings ExportOnlyData="True" FileName="SystemCabCommExport">
<Excel Format="ExcelML" />
</ExportSettings>

How do you go about creating a button or link to execute the enabled Export Settings?
Princy
Top achievements
Rank 2
 answered on 05 Jun 2014
5 answers
131 views
Hi,

The examples I have seen have a button-per-appointment approach. I am interested in exporting all appointments via one button click and preferably, that button is a button that is not integrated into the scheduler, but is a simple .net button elsewhere on the page. Has anyone done this/know if it can be done? Thanks!
SDI
Top achievements
Rank 1
 answered on 05 Jun 2014
1 answer
103 views
Is it possible to get Virtual Scrolling going using ObjectDataSource? I haven't been able to find any good examples except for those on the demo-site (http://demos.telerik.com/aspnet-ajax/dropdownlist/examples/functionality/virtualscrolling/defaultcs.aspx). Unfortunately, the DropDownList doesn't seem to provide the ObjectDataSource with values for "StartIndex" and "ItemsCount" as per the WebService-datasource example.

Below is a simple example, describing the desired scenario. The Facade is in place and works well with other types of solutions, e.g. paging a Grid using an ObjectDataSource.


<asp:ObjectDataSource ID="ODSNotifications" runat="server"
        TypeName="NotificationsFacade"
        SelectMethod="Get"
        OnSelecting="ODSNotifications_Selecting"
        EnablePaging="true"
        SelectCountMethod="GetCount"       
        StartRowIndexParameterName="StartIndex"
        MaximumRowsParameterName="ItemsCount">
        <SelectParameters>
            <asp:Parameter Name="userId" Type="Int32" />
            <asp:Parameter Name="fromDate" Type="DateTime" />
        </SelectParameters>
    </asp:ObjectDataSource>
 
    <telerik:RadDropDownList ID="RDDLNotifications" runat="server"
        DataSourceID="ODSNotifications"
        CssClass="RDDLNotifications"
        DataValueField="Title"
        DataTextField="Id"
        OnItemDataBound="RDDLNotifications_ItemDataBound"
        DropDownWidth="200px"
        DropDownHeight="100px"
        EnableVirtualScrolling="true">
        <ItemTemplate>
            <asp:Panel ID="PNotification" runat="server" CssClass="w_n_outer" onclick="StopPropagation(event);">
                <div class="w_n_inner">
                    <asp:Label ID="LType" runat="server" Font-Size="0.8em" />
                    <br />
                    <asp:Label ID="LTitle" runat="server" Font-Bold="true" />
                    <br />
                    <asp:Label ID="LBody" runat="server" />
                </div>
            </asp:Panel>           
        </ItemTemplate>
    </telerik:RadDropDownList>

Any help would be greatly appreciated!


Nencho
Telerik team
 answered on 04 Jun 2014
2 answers
225 views
I set the background color of the RadToolTip but it doesn't work.

Why is it there?

Also, how do you format the text and title?

Thanks.
Raymond
Top achievements
Rank 1
 answered on 04 Jun 2014
3 answers
57 views
Have an AsyncUpload control with MultipleFileSelection set to Automatic.  User can upload multiple images which are previewed in a listview and user can remove or reorder the images before final save.

Seems the AsyncUpload control uploads the files in alphabetic order as oppose to the order that the user has clicked.
Is there any setting or way to make the upload of the files in the order that the user has clicked using Ctrl Mouse Click?

Thanks

Glenn

Hristo Valyavicharski
Telerik team
 answered on 04 Jun 2014
3 answers
200 views
I am looking for a solution that will allow me to click a button or a hyperlink within a row and open a folder on our network.  The location to be opened is stored in the record source for that grid.

I have tried a couple of things, both of which failed.  Granted, the solution I have are either my own creation or a hybrid of my code and assistance from the forums.


FAILED SOLUTION #1
This column contains a button that opens the folder.  This does work locally, but does not work when published to our web folder.
<telerik:GridButtonColumn FilterControlAltText="Filter Files column" CommandName="ShowFiles"  UniqueName="Files" ButtonType="PushButton" HeaderText="Files" Exportable="False" Text="Display">
</telerik:GridButtonColumn>

Protected Sub RadGrid1_ItemCommand(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGrid1.ItemCommand
 
    Dim value As String
 
    If e.CommandName = "ShowFiles" Then
        Dim dataItm As GridDataItem = TryCast(e.Item, GridDataItem)
 
        value = dataItm("Location").Text & "\03 Submitted\"
  
        Process.Start("explorer.exe", value)
  
    End If
 
End Sub


FAILED SOLUTION #2
This does nothing but reload the page. 
<telerik:GridTemplateColumn UniqueName="LinkColumn">
    <ItemTemplate>
        <asp:LinkButton runat="server" ID="LinkButton1" CommandName="ShowFiles"></asp:LinkButton>
    </ItemTemplate>
</telerik:GridTemplateColumn>

Private Sub RadGrid1_ItemDataBound(sender As Object, e As GridItemEventArgs) Handles RadGrid1.ItemDataBound
 
    If TypeOf e.Item Is GridDataItem Then
        Dim item As GridDataItem = TryCast(e.Item, GridDataItem)
        Dim row As DataRow = TryCast(item.DataItem, DataRowView).Row
        Dim linkButton As LinkButton = TryCast(item("Location").FindControl("LinkButton1"), LinkButton)
        linkButton.Text = "Location"
        linkButton.PostBackUrl = "#"
    End If
 
End Sub

  
Protected Sub RadGrid1_ItemCommand(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGrid1.ItemCommand
 
    Dim value As String
 
    If e.CommandName = "ShowFiles" Then
 
        Dim linkButton As LinkButton = TryCast(e.CommandSource, LinkButton)
        Dim dataItm As GridDataItem = TryCast(e.Item, GridDataItem)
        value = dataItm("Location").Text & "\03 Submitted\"
 
        Process.Start("explorer.exe", value)
 
    End If
 
End Sub
Rick
Top achievements
Rank 1
 answered on 04 Jun 2014
1 answer
83 views
Hi ,

I am using Rad Menu.
When I hover my cursor over the rad menu, it opens- which is an expected behaviour.
When I remove my cursor from it, it gets closed- which is also an expected behaviour.
Now when I remove my cursor from it and try to move near the area of menu before it is closed completely, it opens again - Which is not expected.

I have one button beneath the Menu, when I open the menu and think that I dont want to use menu but click the button instead,
I cannot use it within that fraction of second, I need to wait till the menu gets closed completely., otherwise it will open itself again.
Which is quite cumbersome for the user, especially when my Menu list is quite long.

Can any one please suggest how to solve this issue.

Thanks in advance...!!
Plamen
Telerik team
 answered on 04 Jun 2014
3 answers
82 views
Hi, 

I have a problem with the appointment move in the asp.net scheduler. Sometimes when i move the appointment to another slot, it doesn´t stay there. In some machines it never works in some months like (november and december 2014). It happens in all views (month, week, day...). I debbugged the app and when the problem happens it doesn´t show any erros in the pageMethod that update the appointment date. I need a solution for this issue.

Asp.net framework: 3.5
Telerik Version: 2013.1.417.35

Thanks
Hristo Valyavicharski
Telerik team
 answered on 04 Jun 2014
2 answers
305 views
I'm trying to get the currentToggleState text value of Button/Checkbox from within another javascript function of mine.  If I wire in the online example to get at this value as such things work fine:

<telerik:RadButton ID="chkboxMaster" runat="server"  OnClientToggleStateChanged="setToggleChange" ToggleType="CheckBox" ButtonType="LinkButton">
<ToggleStates>
<telerik:RadButtonToggleState Text="Active" Selected="true" PrimaryIconCssClass="rbToggleCheckboxChecked" />
<telerik:RadButtonToggleState Text="InActive" PrimaryIconCssClass="rbToggleCheckbox" />
</ToggleStates>
</telerik:RadButton>

​function setToggleChange(sender, args) {
                
                var tState = args.get_currentToggleState().get_text();  //text value is here
}

function WhatIsTheCurrentToggleText()
{
  //need to get the value here
    var toggleBtn = $find("<%= chkboxMaster.ClientID %>");
    var tv = toggleBtn.get_currentToggleState().get_text();  //no luck
}
Erik
Top achievements
Rank 1
 answered on 04 Jun 2014
5 answers
300 views
I am using v2014.1.403.45 of the ASP Ajax controls and was looking at implementing a Between and Not Between filter on my columns, the problem is the default implementation does not appear to support this functionality.

I know I can use the GridBoundColumn and use the DataType property to implement these filters but I also lose the formatting on the edit / insert, such as only allowing numeric entry in a GridNumericColumn. Is there a way to implement these additional search criteria use GridNumericColumn and GridDateTimeColumn?

Here is my current implementation.

<telerik:RadGrid ID="RadGrid1" runat="server" OnPreRender="RadGrid1_PreRender" AutoGenerateColumns="False" PagerStyle-Position="Bottom" PageSize="20" 
                     EnableLinqExpressions="False" AllowPaging="True" AllowSorting="True" GridLines="None" ShowGroupPanel="True" Skin="WebBlue" 
                     DataSourceID="SqlDataSource1" OnItemDataBound="RadGrid1_ItemDataBound">

    <MasterTableView EditMode="PopUp" AllowFilteringByColumn="true" CommandItemDisplay="Top" AllowMultiColumnSorting="true">

        <CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
        <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"></RowIndicatorColumn>
        <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column"></ExpandCollapseColumn>

            <Columns>

                <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn" />

                <telerik:GridBoundColumn DataField="ReportKey" FilterControlAltText="Filter ReportKey column" HeaderText="ReportKey"
                                            SortExpression="ReportKey" UniqueName="ReportKey">
                    <FilterTemplate>
                        <telerik:RadComboBox ID="RadComboBoxReportKey" DataSourceID="SqlDataSource2" DataTextField="ReportKey" DataValueField="ReportKey" 
                                                AppendDataBoundItems="true" CheckBoxes="true" runat="server" EmptyMessage="Select Report Key's">
                        </telerik:RadComboBox>
                        <asp:ImageButton ID="SearchButton" runat="server" AlternateText="Filter" ToolTip="Filter by Report Key's" 
                                            OnClick="SearchButton_Click" ImageUrl="~/search.png" />
                    </FilterTemplate>
                </telerik:GridBoundColumn>
                

                <telerik:GridNumericColumn DataField="PrepTime" AllowFiltering="true" HeaderText="PrepTime"
                    SortExpression="PrepTime" UniqueName="PrepTime">
                </telerik:GridNumericColumn>

                <telerik:GridNumericColumn DataField="TravelTime" AllowFiltering="true" HeaderText="TravelTime"
                    SortExpression="TravelTime" UniqueName="TravelTime">
                </telerik:GridNumericColumn>

                <telerik:GridNumericColumn DataField="VisitTime" AllowFiltering="true" HeaderText="VisitTime"
                    SortExpression="VisitTime" UniqueName="VisitTime">
                </telerik:GridNumericColumn>

                <telerik:GridCheckBoxColumn DataField="IsVerified" AllowFiltering="true" HeaderText="IsVerified"
                    SortExpression="IsVerified" UniqueName="IsVerified">
                </telerik:GridCheckBoxColumn>

                <telerik:GridCheckBoxColumn  DataField="IsDeleted" AllowFiltering="true" HeaderText="IsDeleted"
                    SortExpression="IsDeleted" UniqueName="IsDeleted">
                </telerik:GridCheckBoxColumn >

                <telerik:GridBoundColumn DataField="LastSavedByUID" AllowFiltering="true" HeaderText="LastSavedByUID"
                    SortExpression="LastSavedByUID" UniqueName="LastSavedByUID">
                </telerik:GridBoundColumn>
            
                <telerik:GridDateTimeColumn DataField="DateLastSaved" AllowFiltering="true" HeaderText="DateLastSaved"
                    SortExpression="DateLastSaved" UniqueName="DateLastSaved">
                </telerik:GridDateTimeColumn>                       

            </Columns>

        <EditFormSettings>
            <EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
        </EditFormSettings>

    </MasterTableView>

    <ClientSettings AllowDragToGroup="True">
        <Selecting AllowRowSelect="true" />
    </ClientSettings>

    <FilterMenu EnableImageSprites="False"></FilterMenu>

    <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default"></HeaderContextMenu>

</telerik:RadGrid>





Maria Ilieva
Telerik team
 answered on 04 Jun 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?