radgrid

Access child RadGrid footer in NestedViewTemplate

牧云@^-^@ 提交于 2019-12-11 11:27:30
问题 I have a RadGrid with expandable rows, where each expanded NestedViewTemplate contains a RadGrid. The child RadGrids have a visible footer and a few columns (I've included one, "DtlTransAmount"): <NestedViewTemplate> <asp:Panel ID="pnDetailItems" runat="server" > <telerik:RadGrid ID="rgDetailItems" runat="server" ShowFooter="true" Width="1675px" AutoGenerateColumns="false" AllowPaging="false" OnItemDataBound="rgDetailItems_ItemDataBound" ... > <MasterTableView> <Columns> <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

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

Telerik RadGrid - How do I set default data on insert?

筅森魡賤 提交于 2019-12-11 03:24:29
问题 When I click on the add record button I want one of my columns to have a default value in it. How do I do this in the code behind? It is a dynamic date and can change all the time? 回答1: If the column is not a GridTemplateColumn , you can specify a default value using the column's DefaultInsertValue property, like this: <telerik:GridBoundColumn DefaultInsertValue="12/21/2012" DataType="System.DateTime" DataField="Column1" UniqueName="Column1"></telerik:GridBoundColumn> Otherwise, if it is a

Detecting Drop down with Selenium WebDriver

我与影子孤独终老i 提交于 2019-12-11 03:19:31
问题 http://i.stack.imgur.com/L4WUv.jpg Link to Grid I'm trying to detect the different drop downs on this page (depicted by the filters by the text boxes). The problem i'm having is that it seems that the filters all have the same ids. I can get the webdriver to find the initial filter button but not target the options in the drop down. Note the filters I'm talking about are the ones from the funnel buttons. For example contains, isEqual, between etc * This is wrong but an example it('Should

Telerik Radgrid GridDataItem.DataItem is empty when updating (OnUpdateCommand handler)

这一生的挚爱 提交于 2019-12-11 00:15:00
问题 When handling the OnUpdateCommand event on a RadGrid the DataItem is null. I thought that this would also represent the data item being represented by the row. The Radgrid is populated from an IList and in the handler the code looks like this... protected void rgAllocatedClients_UpdateCommand(object sender, GridCommandEventArgs e) { if (e.Item is GridDataItem) { var gridDataItem = e.Item as GridDataItem; var client= gridDataItem .DataItem as Client; .... .... This works find when handling the

Telerik RadGrid set BoundColumn to ReadOnly in Edit Mode

一世执手 提交于 2019-12-10 19:57:01
问题 I have a Telerik RadGrid that has three bound columns and one button column. I would like to let the user edit the values in only one of the bound columns. The user can add a new record so i can't set the two bound column to read only. Is there anyway i can do this in the ASPX or do i have to do it in the code behind? I have some code that is working but it is not the best. Here's my code: Case "Edit" Dim aoeAnswerCode As GridBoundColumn = CType(e.Item.OwnerTableView.GetColumn("aoeAnswerCode"

Radgrid unable to download file using linkbutton in NestedViewtemplate

孤者浪人 提交于 2019-12-10 11:45:52
问题 I'm using radgrid nestedviewttemplate to show the details of a product on row expand.I also have a linkbutton in my nestedview template which when clicked downloads the file.My code that i use for download works outside radgrid but when included in Nestedviewtemplate it fails to download.here's my code. <telerik:RadGrid ID="loggedInUserOwnResourcesRadGrid" AutoGenerateColumns="false"> <MasterTableView AutoGenerateColumns="false"> <Columns> <telerik:GridTemplateColumn DataField=" Name">

How do I set Telerik RadGrid to Edit mode by default? (ASP.NET)

回眸只為那壹抹淺笑 提交于 2019-12-09 12:36:45
问题 I have a checkbox column in a RadGrid that I want the user to be able to check/uncheck it and set the attached property. When the grid renders however, the checkboxes are disabled, because the grid is not in "edit mode". All the examples I'm finding want me to go through a lengthy process of selecting the record, putting it into edit mode, changing the value, saving the value.... yada yada yada... I just want the whole grid to be in edit mode (or the column, or whatever works) from the get-go