
When using a RadTimePicker in a RadGrid (in a EditItemTemplateColumn), I'm getting Nothing for the RadTimePicker.SelectedTime object when updating.
Thanks!
Here is my RadGrid:
<telerik:RadGrid runat="server" ID="grdScheduleBook" AllowSorting="True" AllowPaging="True" PageSize="15" AutoGenerateColumns="False" OnNeedDataSource="grdScheduleBook_NeedDataSource" RenderMode="Lightweight" HeaderStyle-Font-Size="X-Small" ItemStyle-Font-Size="X-Small" Height="800px"> <MasterTableView EditMode="InPlace"> <Columns> <telerik:GridTemplateColumn FilterControlAltText="Filter TemplateColumn column" HeaderText="Pick Time" UniqueName="PickTime" HeaderStyle-Width="100px"> <EditItemTemplate> <telerik:RadTimePicker ID="RadTimePicker1" runat="server" Skin="Default" Width="88px"> </telerik:RadTimePicker> </EditItemTemplate> <ItemTemplate> <asp:Label ID="Label1" runat="server"></asp:Label> </ItemTemplate> </telerik:GridTemplateColumn> <telerik:GridEditCommandColumn> </telerik:GridEditCommandColumn> <telerik:GridBoundColumn UniqueName="Group" DataField="Group" HeaderText="Group" ReadOnly="True"> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="Payroll" DataField="Payroll #" HeaderText="Payroll #" ReadOnly="True"> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="LastName" DataField="Last Name" HeaderText="Last Name" ReadOnly="True"> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="FirstName" DataField="First Name" HeaderText="First Name" ReadOnly="True"> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="MI" DataField="MI" HeaderText="MI" ReadOnly="True"> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="SeniorDate" DataField="Senior Date" HeaderText="Senior Date" ReadOnly="True"> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="Sequence" DataField="Seq" HeaderText="Sequence" ReadOnly="True"> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="DeptLoc" DataField="Dept #/ Location" HeaderText="Dept/Location" ReadOnly="True"> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="JobCode" DataField="Job Code" HeaderText="Job Code" ReadOnly="True"> </telerik:GridBoundColumn> </Columns> <EditFormSettings> <EditColumn UniqueName="EditCommandColumn1" FilterControlAltText="Filter EditCommandColumn1 column"></EditColumn> </EditFormSettings> </MasterTableView> <GroupingSettings CollapseAllTooltip="Collapse all groups"></GroupingSettings> <ClientSettings AllowColumnsReorder="True" Resizing-AllowColumnResize="true" ReorderColumnsOnClient="True"> <Selecting AllowRowSelect="True" /> <Scrolling AllowScroll="True" UseStaticHeaders="True" /> <ClientEvents OnBatchEditOpening="OnBatchEditOpening" /> <Resizing AllowColumnResize="True"></Resizing> </ClientSettings> <HeaderStyle Font-Size="Small" Font-Bold="True"></HeaderStyle> <ItemStyle Font-Size="Small"></ItemStyle> <FilterMenu RenderMode="Lightweight"></FilterMenu> <HeaderContextMenu RenderMode="Lightweight"></HeaderContextMenu> </telerik:RadGrid>RadGrid_UpdateCommand:
Protected Sub grdScheduleBook_UpdateCommand(sender As Object, e As GridCommandEventArgs) Handles grdScheduleBook.UpdateCommand Dim dataItem As GridEditableItem = TryCast(e.Item, GridEditableItem) Dim timePicker As RadTimePicker = CType(e.Item.FindControl("RadTimePicker1"), RadTimePicker) Dim time As String = timePicker.SelectedTime.ToString() Dim row As DataRowView = dataItem.DataItem Dim sql As String Dim payroll As String = row.Row.ItemArray(1) Dim pickTime As String = Format(time.ToString(), "Short Time") '...(sql command here)...End SubWe have a RadTreeList that is inside an ASP.NET control. On the Page_PreRender of the control we are resetting the selected item (TreeListName.Items[0].Selected = true).
However, when we select something, navigate away from the page, and then back to the page the selected item is getting reset at some point to the selection that it was prior to navigating away. This occurs despite the fact the the selection is getting forced in the PreRender event.
I believe this has something to do with Ajax and/or ViewState. I tried turning off ViewState for the control using EnableViewState = false but the control did not render even though we are using the NeedDataSource event and there was a collection assigned to the DataSource within that event. We have always used NeedDataSource so we know that it works when ViewState is enabled.
Do you have any suggestions or advice?
Thank you.
how can I save map as an image on my server?
I would like a openstreet map of a location with a marker that I can save as a jpg or png.
Marty

Hi,
On the kendo side of things there seems to be a databound event that you can subscribe to. I cannot seem to use this on the htmlchart though. I am trying to add it to the kendo widget element of the chart but it doesn't work. I am moving away from server side stuff where possible so need this to be client based.
kendoWidget.dataBound = function(e) {alert("dataBound");}Any ideas?
Regards
Jon

I'm having a problem with the initial image in my image gallery not being resized when the image gallery is placed in a Bootstrap Collapse panel. As soon as I click to scroll through the images, it works fine, but the initial image isn't resized when the panel is shown. Below is some sample code that should illustrate the problem. Any ideas on how to resolve this?
<div class="panel panel-default"> <div class="panel-heading" role="tab" id="headingOne"> <h4 class="panel-title"> <a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne">Show Images </a> </h4> </div> <div id="collapseOne" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingOne"> <div class="panel-body"> <div class="row"> <div class="col-md-3"> <div class="text-center"> <telerik:RadImageGallery RenderMode="Lightweight" ID="imgGallery" runat="server" LoopItems="true" BackColor="Gray"> <ThumbnailsAreaSettings Mode="ImageSlider" ShowScrollButtons="False" /> <ImageAreaSettings Height="100px" NavigationMode="Zone" ShowNextPrevImageButtons="true" ShowDescriptionBox="False" /> <ToolbarSettings Position="None"></ToolbarSettings> <Items> <telerik:ImageGalleryItem ImageUrl="images/Image1.png" /> <telerik:ImageGalleryItem ImageUrl="images/Image2.png" /> </Items> </telerik:RadImageGallery> </div> </div> </div> </div> </div></div>
I have filtered my RadClientDataSource according to the information available in the docs. The filter works momentarily. When my button is clicked, I can see for a single moment that the grid displays the 1 record matching the filter criteria then all the rows come back. I have tried calling the javascript function from a link and a button (as is shown in the code below). Any ideas?
Here is the code for my page.
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="testControl.aspx.vb" Inherits="virtuePortal2016.testControl" %><!DOCTYPE html><html class="no-js" lang="en"><head runat="server"> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Foundation</title> <link rel="stylesheet" href="stylesheets/app.css" /> <script src="bower_components/modernizr/modernizr.js"></script></head><body> <form id="form1" runat="server"> <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager> <telerik:RadClientDataSource ID="RadClientDataSource1" runat="server" AllowBatchOperations="True" AutoSync="True"> <DataSource> <WebServiceDataSourceSettings> <Select Url="http://virtuepb.ourvoiceusa.com/api/catalogItem" RequestType="Get" /> </WebServiceDataSourceSettings> </DataSource> <Schema> <Model> <telerik:ClientDataSourceModelField FieldName="Qty" /> <telerik:ClientDataSourceModelField FieldName="ProductKey" /> </Model> </Schema> </telerik:RadClientDataSource> <input type="button" onclick="applyFilter()" value="Filter" /> <telerik:RadGrid runat="server" ID="RadGrid1" ClientDataSourceID="RadClientDataSource1" ResolvedRenderMode="Classic" Width="306px" Skin="Metro"> <GroupingSettings CollapseAllTooltip="Collapse all groups"></GroupingSettings> <MasterTableView DataKeyNames="ProductKey"> <Columns> <telerik:GridBoundColumn DataField="ProductKey" HeaderText="ProductKey" UniqueName="ProductKey"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Qty" HeaderText="Qty" UniqueName="Qty"> </telerik:GridBoundColumn> </Columns> </MasterTableView> </telerik:RadGrid> <telerik:RadCodeBlock runat="server" ID="RadCodeBlock1"> <script type="text/javascript"> function applyFilter() { var dataSource = $find('<%= RadClientDataSource1.ClientID %>'); dataSource.get_filterExpressions().clear(); dataSource.get_filterExpressions().add({ fieldName: "ProductKey", value: "417", operator: Telerik.Web.UI.ClientDataSource.FilterOperator.EqualTo }); var masterTable = $find("<%= RadGrid1.ClientID %>").get_masterTableView(); masterTable.rebind(); alert(dataSource.get_filterExpressions().get_count()); return false; } </script> </telerik:RadCodeBlock> <script src="bower_components/jquery/dist/jquery.min.js"></script> <script src="bower_components/foundation/js/foundation.min.js"></script> <script src="bower_components/foundation/js/foundation/foundation.alert.js"></script> <script src="js/app.js"></script> </form></body></html>
Hello there
I have a radComboBox
and I'm trying to accees the selected value from it in app_code(.cs)
there is any way to do it ?

Hello Team,
I am having simple Radgrid. which I am binding with JSON object like below :
$(document).ready(function () {
$(window).load(function () {
var JSONdata = [{ "ID": 1, "FirstName": "Chintan", "MiddleName": "Mukesh", "SurName": "Dave" }, { "ID": 2, "FirstName": "Pratik", "MiddleName": "Mukesh", "SurName": "Dave" }, { "ID": 3, "FirstName": "Devang", "MiddleName": "Subhash", "SurName": "Trivedi" }]
var tableView = $find("<%=form1.FindControl("gridClientSide").ClientID%>").get_masterTableView();
tableView.set_dataSource(JSONdata);
tableView.dataBind();
});
});
Grid Code :
<telerik:RadGrid ID="gridClientSide" runat="server" AutoGenerateColumns="false" AllowFilteringByColumn="true">
<MasterTableView TableLayout="fixed">
<Columns>
<telerik:GridBoundColumn DataField="ID" HeaderText="ID" AllowFiltering="true" UniqueName="ID"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="FirstName" HeaderText="First Name" AllowFiltering="true"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="MiddleName" HeaderText="Middle Name" AllowFiltering="true" ></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="SurName" HeaderText="Sur Name" AllowFiltering="true"></telerik:GridBoundColumn>
</Columns>
</MasterTableView>
<ClientSettings>
<ClientEvents OnCommand="RaiseCommand"/>
</ClientSettings>
</telerik:RadGrid>
function RaiseCommand(sender, args) {
args.set_cancel(true);
sender.get_masterTableView().filter(sender.get_masterTableView().get_filterExpressions().getItem(0).FieldName, sender.get_masterTableView().get_filterExpressions().getItem(0).FieldValue, sender.get_masterTableView().get_filterExpressions().getItem(0).FilterFunction, true);
//sender.rebind();
}
In RaiseCommand function , I am trying to filter radgrid by setting filter expression nothing error occurs but no change applies in rows of grid after execution of this function.
Please help....Please find attached filed
