obout

Unable to cast object of type 'Obout.Grid.GridTemplate' to type 'System.Web.UI.WebControls.GridViewRow'. not resolving

折月煮酒 提交于 2019-12-25 08:34:25
问题 I want to disable gridview row on button click which is inside the gridview. So for that I have written the below code. protected void btnPayGenInvoice_Click(object sender, EventArgs e) { if (strMode == "M") { Button btn = (Button)sender; GridViewRow row = (GridViewRow)btn.Parent.Parent; row.Enabled = false; } } But I am getting error as Unable to cast object of type 'Obout.Grid.GridTemplate' to type 'System.Web.UI.WebControls.GridViewRow'. kindly let me know what is wrong here UPDATE Getting

ASP.NET How to pass container value as javascript argument

时光总嘲笑我的痴心妄想 提交于 2019-12-23 23:23:08
问题 I am using an oBout Grid control with a template on a textbox. I would like to pass an argument to a javascript, the current row index of a grid when a user clicks on it. But the result of onClick='setGridInEditMode(<%# Container.RecordIndex %>);' /> comes out as onClick="setGridInEditMode(<%# Container.RecordIndex %>);" Is there a way to pass container value to javascript? Here is the markup in question. <cc1:Grid ID="_TrustGrid" runat="server" FolderStyle="Styles/style_7" AllowAddingRecords

Response out of sequence

岁酱吖の 提交于 2019-12-12 18:23:48
问题 I'm using the Obout.com MVC controls and have included the following code in one of my views: @{ Html.Obout(new ComboBox("Languages") { Width = 175, SelectedIndex = (int) ViewData["DefaultLanguage"] - 1, ShowSelectedImage = true } ); } I'm doing it that way because my original attempt failed: @Html.Obout(new ComboBox("Languages") { Width = 175, SelectedIndex = (int) ViewData["DefaultLanguage"] - 1, ShowSelectedImage = true }) ...it seems I need to use the @{} structure. However, when the

Obout controls in C# .Net

牧云@^-^@ 提交于 2019-12-07 01:59:49
问题 Is anyone using the Obout controls in C# .Net? How would you rate these controls, especially the Grid Control? 回答1: I was thoroughly impressed with them. Of all the other control sets out there (infragistics, telerik) this is the only (more than) respectable one I've worked with that was 1) free! and 2) lightweight!. The only caveat to Obout is I had trouble with merging some of these controls and some of the stock AJAX components. Infragistics is by far my favorite (my comment about Obout

Obout controls in C# .Net

三世轮回 提交于 2019-12-05 08:59:00
Is anyone using the Obout controls in C# .Net? How would you rate these controls, especially the Grid Control? I was thoroughly impressed with them. Of all the other control sets out there (infragistics, telerik) this is the only (more than) respectable one I've worked with that was 1) free! and 2) lightweight!. The only caveat to Obout is I had trouble with merging some of these controls and some of the stock AJAX components. Infragistics is by far my favorite (my comment about Obout being "lightweight" is in comparison with the heavy use of viewstate in some of the Infragistics controls) but