telerik

Automatically inserting datetime with insert

人盡茶涼 提交于 2019-12-11 09:24:01
问题 I have a radgrid with the setup below. I'm able to properly insert a new row into my table but the Time_Stamp column still shows as NULL . Datatype is datetime in the database. I've tried including the Time_Stamp in my Insert query but still get NULL on the other side. <telerik:RadGrid ID="Grid_ValueCard" runat="server" DataSourceID="SqlValueCard" AutoGenerateEditColumn="True" AllowAutomaticUpdates="True" Width="750px" Skin="WebBlue" AllowAutomaticInserts="True" CellSpacing="0" GridLines=

How Handle Null Values(In Columns) In Telerik RadGrid? (Replace With HTML)

故事扮演 提交于 2019-12-11 08:23:02
问题 i have a BooundColumn in my telerik RadGrid like below : <telerik:GridBoundColumn DataField="Status" FilterControlAltText="Filter Status column" HeaderText="Status" SortExpression="Status" UniqueName="Status" FilterImageToolTip="Filter"> <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" /> <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" /> </telerik:GridBoundColumn> Status Column in my sql server 2008 database can accept null values and RadGrid shows them with an empty

Kendo UI Foreign Key

房东的猫 提交于 2019-12-11 08:22:39
问题 I am new to Kendo UI and I got this problem. I don't understand, what are the basic steps in showing child object information in a column with a foreign key property. I mean, what do I have to do to create a foreign key column. It might be a silly question, but I saw a demo of foreign key on demos pages http://demos.telerik.com/kendo-ui/web/grid/foreignkeycolumn.html, still, I didn't quite get how does it work. Thanks, Vidmantas 回答1: Below is the MVC example for foreign key column demo: Its

Accessing Telerik RadGrid edit mode from javascript

假装没事ソ 提交于 2019-12-11 08:21:50
问题 I invoke one function in javascript. When I call this function rad grid row is already in edit mode . In that function I get reference to RadGrid: var masterTable = $find("<%= RadGrid1.ClientID %>").get_masterTableView(); In edit mode I have edit item: I have a problem here to get/set value of txtName from this javascript function. I have tried: var item = masterTable.selectItem(masterTable.get_dataItems()[0].get_element()); var item = masterTable.selectItem('txtName'); var item = masterTable

Using telerik's RadAjaxManager with nested ASCX controls

孤人 提交于 2019-12-11 07:51:41
问题 I want to use telerik's RadAjaxManager with nested ASCX controls I have the following setup: Page ascx1 ascx2 ascx2 is nested in ascx1 which is in Page. I have a RadAjaxManager on 'Page'. From a control in ascx2, I invoke a javascript method which calls ajax.ajaxRequest(arguments); The problem is that it runs protected void AjaxManager_AjaxRequest(object sender, AjaxRequestEventArgs e) in ascx1 and not the one in ascx2 -- Am I missing something? 回答1: On you child controls you should use the:

Telerik RadCombobox not keeping state when using client side requestItems() to load

社会主义新天地 提交于 2019-12-11 07:24:46
问题 I'm using the Telerik RadComboBox control. I have two related combos and when the user selects a value in the first one I filter the second one. I use the code below to achieve this: localeCombo = $find("<%= ddlLocale.ClientID %>"); localeCombo.requestItems(item.get_value(), false); This works totally fine, but when I do a postback my filtered combo resets to the original non filtered list, although all other controls retain their state. I assume this is because the server side list of items

How to update multiple rows on kendo grid with outside button

守給你的承諾、 提交于 2019-12-11 06:36:46
问题 I have a kendo grid with columns as: i write a function for Close button, when user select rows by check and click Close button, this will auto update IsClosed Column to "True" and this is my code: $(function () { $('#btnClose').click(function () { var grid = $('#grOrders').data("kendoGrid"); $.each($('#grOrders :checkbox:checked').closest('tr'), function () { var data = grid.dataItem($(this)); data.set("IsClosed", true); }); }); }); when i test, it only update a first row checked, don't know

Setting the PaneGroup of a RadPane in the codebehind?

自闭症网瘾萝莉.ら 提交于 2019-12-11 06:27:41
问题 I had created a pane group with rad panes in my XAML as follows : <telerik:RadSplitContainer InitialPosition="DockedBottom" telerik:RadDocking.SerializationTag="RaddySplit"> <telerik:RadPaneGroup telerik:RadDocking.SerializationTag="PaneGroup"> <telerik:RadPane Header="WW2 Adventure" telerik:RadDocking.SerializationTag="WW2"> <vws:ww2gamegrid /> </telerik:RadPane> <telerik:RadPane Header="WW1 Adventure" telerik:RadDocking.SerializationTag="WW1"> <vws:ww1gamegrid /> </telerik:RadPane> <

Telerik RadGridView won't display Dates

南楼画角 提交于 2019-12-11 06:25:53
问题 I'm trying to display my Date in a RadGridView in ShortDate Format. The code I used to generate the column is this : <telerik:RadGridView x:Name="GenInq" Height="Auto" Width="Auto" HorizontalAlignment="Left" Margin="0,-14,0,14" AutoGenerateColumns="False"> <telerik:RadGridView.Columns> <telerik:GridViewColumn Header="Date" Binding.XmlNamespaceManager="{Binding Path=Date, StringFormat='{}{0:dd.MM.yyyy}'}"/> </telerik:RadGridView.Columns> </telerik:RadGridView>` This is my query i used to

populate the telerik RadDatePicker with current date in Xaml wpf

偶尔善良 提交于 2019-12-11 04:49:45
问题 how to show the displaydate or selecteddate on load for RadDatePicker with current date xmlns:sys="clr-namespace:System;assembly=mscorlib" <telerik:RadDatePicker x:Name="datepicker1" Grid.Column="1" Grid.Row="1" Margin="0,2" IsReadOnly="False" AllowDrop="True" SelectedDate="{x:Static sys:DateTime.Now}" DisplayDateStart="{x:Static sys:DateTime.Now}" SelectedValue="{Binding Path=SelectedDate,Mode=OneWay}" /> by default the RaddatePicker shows the 1/1/0001, how to show the current date ? 回答1: I