ASPxGridView -Custom Controls In DetailRow?

Feb 12, 2010

try to have custom controls in a DevExpress grids detail row. When ever a row is expanded I would like to load data into those custom controls based on the Masters Key.I am using the detailrow expended method.

protected void grid_DetailRowExpandedChanged(object sender, ASPxGridViewDetailRowEventArgs e)
if (e.Expanded)
{
int id = Convert.ToInt32(grd.GetRowValues(e.VisibleIndex, "ID"));
...
}

The problem is I don't know how to access the custom controls in the expended detail row. I don't see any Row or Items properties on the grid, which would have been with a FindControl().

View 1 Replies


Similar Messages:

Custom Sort In ASPXGridView Not Working With Paging?

Nov 2, 2010

I've implemented a custom sort for a aspxgridview, following the steps mentioned here: [URL]

However, I've noticed that it only sorts the current active page, so whenever I go to another page I have to click again on the column to sort it.

Is this behavior correct, or am I missing something? How can I solve it?

PS: I thought about capturing the PageIndexChanged event and manually sort the active page, but that seems too hackish...

View 3 Replies

Implementing Custom Delete By Adding To My ASPxGridView GridViewColumnCustomButton?

Sep 2, 2010

Im implementing custrom delete by adding to my ASPxGridView GridViewColumnCustomButton.

Then on my GridView I handle ClientSideEvent

<ClientSideEvents CustomButtonClick="function(s, e) { customButton_OnClick(s, e); }" />

JS:function customButton_OnClick(s, e) {
if (e.buttonID == "customButtonId") {
e.processOnServer = confirm("Really want to delete?");[code]....

now on the server side I user linq to delete specified row and then submit changes to my DataContext and then DataBind() on my grid.

Problem is that sometimes standard ASPxGridView loading panel is shown for about 1 second ant then my row dissapears so it behaves properly but sometimes loading panel stops mooving. and I need to move mouse over my grid or click button so that my Grid is updated(row dissapears).

View 2 Replies

Forms Data Controls :: ASPxGridView RowClick

May 26, 2010

I am new DEVEXPRESS controls . In my project i need to work with ASPxGridView , where i need to make all the row value clickable (for a particular record). When clicked it takes the user to the next page where it displays all the information regarding that record.

give me some insights regading how to approach this problem and how to use rowClick event

View 5 Replies

To Change The Values Of Some Of The Controls In The ASPxGridview Edit Form?

Jul 11, 2010

I'm trying to change the values of some of the controls in the ASPxGridview Edit Form, however they are not changing. It seems to be resetting?

How can I do this and in which event would I do this in?

View 2 Replies

Custom Server Controls :: Custom Composite Control With Custom Templated Child Controls?

Mar 22, 2011

I am trying to build a custom composite control, which allows me to add custom content to each child control. It's a similar concept to what you have with a GridView and TemplateColumn. The markup used to place the control on the page would end up being something like this:

[Code]....

I have the code below, which allows me to put that markup on the page without throwing any errors, and it renders all the correct HTML, except it doesn't render the contents of the ColumnTemplate. I have replaced the Render() code with a comment because it's quite long winded and doesn't add anything important here:

[Code]....

I have tried to follow examples on MSDN and other forums but I can't make this work. I think I'm missing the code to render the contents of the template, but I don't know how to hook that up.

View 1 Replies

How To Invoke AspxGridView Update

Jan 18, 2011

I want to know if I can invoke AspxGridView update. I catch a data on AspxGridView Focused Row in server side. And if this data equles 0, I want to invoke update for this row. Else if this data equles 1, i want to invoke new row. Is it possible?

View 2 Replies

C# - ASPxGridView Header And Subheader?

Aug 13, 2010

I currently use the ASPxGridView from DevExpress (2010 v1). Has anyone had any success creating double headers where the first set of headers span across multiple subheaders?

HeaderSpanColumn1
------- ------- -------
header1| header2| header3
------- ------- -------
3 4 bob

There doesn't seem to be much verbage about this on their support site since it isn't officially supported.

View 1 Replies

C# - ASPxGridView Rows Per Page?

Sep 8, 2010

How can I set maximum number of rows per page to 5? Default is 10.

<SettingsPager PageSize="5">

... doesnt work

View 3 Replies

C# - Fill AspxPopupControl With AspxGridView?

Feb 7, 2011

Im using aspxPopupControl with AspxGridView in it. Is it possible to set control to fill all popup cause now when I try to resize that popup there is a lot of free space at the top and bottom when I increase width od the popup.

View 2 Replies

ASPxGridView POST Timeout?

Feb 17, 2010

I have a ASPxGridView with DetailRow in this row there are three additional ASPxGridViews. Each detail ASPxGridView contains EmptyDataRow templates with link to create a new row:

<a href="javascript:gridViewDetails1.AddNewRow();">AddNewRecord</a>

When master ASPxGridView rows is 1 or 2 then new rows in detail grids adding fine, but if in master ASPxGridView rows about 10 or more then when I clicking on detail grids link to add new row the loading panel appers for unlimited time and FireBug->Net shows that status of POST is timeout and time is about 1 sec.

How can I repair it?

To AGoodDisplayName:

are the detail row gridviews bound to anything?

yes of course, inside the details row of master gridView there are 3 another gridView and each of them have a separate ObjectDataSource.

Are you expanding more than row at a time?No, I have only one row at time:

AllowOnlyOneMasterRowExpanded="true"

Yep:<asp:ObjectDataSource ID="dsMaster" runat="server" TypeName="..." SelectMethod="...">
</asp:ObjectDataSource>
<dxwgv:ASPxGridView ID="gridViewMaster" ClientInstanceName="gridViewMaster" runat="server" DataSourceID="dsMaster">[code].....

View 1 Replies

Show Combo On AspxGridview?

Jul 21, 2010

*i work on northwind database .*In my AspxGridview i want to show comboBox.I fill grid on back end C#.i also want my combo will fill back end.

<dxwgv:ASPxGridView ID="ASPxGridView1" runat="server"
AutoGenerateColumns="False" KeyFieldName="CategoryID"
oncelleditorinitialize="ASPxGridView1_CellEditorInitialize">[code].....

When i run the code AspxGridview fill well but when i click on Edit or New Command on left side of my grid show me bellow error message ;

**Object reference not set to an instance of an object.**

What's the problem is?How to solve this problem.How to bind cell combo on aspx gridview

View 3 Replies

How To Make SingelSelection On ASPxGridView

Aug 27, 2010

Im trying to figure out how can I make singelSelection on ASPxGridView.

The onClick event handled like that:

function GvUsersSelectionChanged(selectedRow) {
//Clear the text selection
if (GvUserClient.IsRowSelectedOnPage(selectedRow.visibleIndex)) {[code]....

all rows are unselected :/

View 1 Replies

AspxGridView Specified Method Is Not Supported?

Jul 12, 2010

Bellow is my .aspx aspxGridview syntax

<dx:ASPxGridView ID="ASPxGridView1" runat="server" AutoGenerateColumns="False"
KeyFieldName="intProductCode" onrowinserted="ASPxGridView1_RowInserted">
<Columns> [code]....

When i want to insert ,show me error message Specified method is not supported.

View 3 Replies

Custom Server Controls :: How To Create Custom Property (DataSource) In Custom Controls

May 15, 2010

I know that how to create custom control and add custom property.

I want to create property like DataSource to my custom control.

View 1 Replies

DevExpress AspxGridView Filter In ObjectDataSource

Mar 16, 2010

One Page In the Page, a custom control In the custom Control, a AspxDropDown The AspxDropDown, has a DropDownWindowTemplate In the DropDownItemTemplate, I add a GridView and a paging/sorting/filtering enabled ObjectDataSource When handling the Selecting event of the ObjectDataSource, I should set filter parameters for the datasource. There filter parameters should come from the FilterRow of the AspxGridView (preferably using the AspxGriedView.FilterExpression property). The problem: the AspxGriedView.FilterExpression property is not set to the proper values (set by the user). Did anyone find a good implementation of what I'm trying to do here?

View 1 Replies

Change AspxGridView Mode On Server Side

Mar 21, 2011

I want to change AspxGridView mode on server side. For example :

if( some clauses)
{
// Mode is : New row
}
else if (some clauses)
{
// Mode is : Edit row
}

View 1 Replies

How To Use ASPxGridView Without Client Scripts And Postback Data

Feb 7, 2011

I added DevExpress GridVIew into my ASP .NET WebForms app. GridView works fine but it generates a huge hidden input with base64-encoded postback data and loads several large javascript files. I don't need any client-side functionality. So, how to disable client-side functionality of this control?

View 1 Replies

ASPxGridview / Trying To Find A Control In Edit Form ?

Jul 15, 2010

I'm trying to Find a control in my edit form just before I hit the submit button on it(custom), however it isnt returning any value entered in the memo, even though I have inputted some value. It seems like its resetting. Its not binding to anything.

Code:

Dim Memo As ASPxMemo = CType(ASPxGridView_BranchQueue.FindEditFormTemplateControl("ASPxMemo_ResubmissionRationale"), ASPxMemo)

MsgBox(Memo.Text.ToString())

View 1 Replies

C# - ASPxGridView - Simply Add Example Values With Only A DataSource Property?

May 19, 2010

I have a ASPxGridView. In it(for the uninformed) is only a DataSource property for telling it what data to load. My problem is that I'm simply trying to mock up an example and don't need to tie it to an actual database. How would I do this? I basically just want a few rows and some columns but since it only takes a datasource I'm not sure how to do it. Would ObjectDataSource be what I'm looking for?

View 1 Replies

How To Access In Server Side AspxGridView Combobox Selected Value

Jan 7, 2011

I want to access selected value of GridViewDataComboBoxColumn in server side at GridViewUpdated event. Do you have any idea about how can it be?Here is columns of AspxGridView

<dx:GridViewDataComboBoxColumn Name="Sprint_id" Caption="Sprint" FieldName="refSprint_id" VisibleIndex="8">
<PropertiesComboBox ValueType="System.Int32" DataSourceID="sdsSprintler" TextField="adi" ValueField="sprint_id">
</PropertiesComboBox>
</dx:GridViewDataComboBoxColumn>

Combo can fill but i couldnt access the selected item in GridView updated event

View 1 Replies

JavaScript Error In IE6 When Opening ASPxGridView Edit Form

Jul 24, 2010

I'm using DevExpress ASPxGridView edit form, using default edit form. However when I open the edit form in IE6 and click "update" to insert the record, it causes a JavaScript error that says "type" is null or not an object". However it works fine in IE7. I am puzzled and unsure of how to resolve this. Code is below.

<dx:ASPxGridView ID="ASPxGridView_JobTitles" runat="server"
AutoGenerateColumns="False" Caption="Titles"
ClientInstanceName="ASPxClientGridView_Titles"
DataSourceID="SqlDataSource_JobTitle" KeyFieldName="Title" Width="500px">
<Settings UseFixedTableLayout="True" />
<Columns>
<dx:GridViewCommandColumn ButtonType="Image" Caption=" " VisibleIndex="0"
Width="65px">
<UpdateButton Visible="True">
<Image Url="~/images/update.png">
</Image>
</UpdateButton>
<CancelButton Visible="True">
<Image Url="~/images/cancel.png">
</Image>
</CancelButton>
<EditButton>
<Image Url="~/images/file_edit.png">
</Image>
</EditButton>
<HeaderTemplate>
<dx:ASPxButton ID="ASPxButton_New0" runat="server" AutoPostBack="false"
Image-Url="~/images/file_add.png" Text="New">
<ClientSideEvents Click="function(s,e){ASPxClientGridView_Titles.AddNewRow();}" />
</dx:ASPxButton>
</HeaderTemplate>
</dx:GridViewCommandColumn>
<dx:GridViewDataTextColumn FieldName="Title" VisibleIndex="1">
<PropertiesTextEdit>
<ValidationSettings CausesValidation="True">
<RequiredField ErrorText="Is Required" IsRequired="True" />
</ValidationSettings>
</PropertiesTextEdit>
</dx:GridViewDataTextColumn>
<dx:GridViewCommandColumn ButtonType="Image" Caption=" " VisibleIndex="2"
Width="65px">
<DeleteButton Visible="True">
<Image Url="~/images/file_delete.png">
</Image>
</DeleteButton>
</dx:GridViewCommandColumn>
</Columns>
<SettingsBehavior ConfirmDelete="True" />
</dx:ASPxGridView>
<asp:SqlDataSource ID="SqlDataSource_Title" runat="server"
ConnectionString="<%$ ConnectionStrings:TEST %>"
SelectCommand="SELECT [Title] FROM [Titles]"
UpdateCommand="UPDATE Titles SET Title = @Title WHERE (Title = Title)"
DeleteCommand="DELETE FROM Titles WHERE (Title = @Title)"
InsertCommand="INSERT INTO Titles(Title) VALUES (@Title)">
<InsertParameters>
<asp:Parameter Name="Title" Type="String" />
</InsertParameters>
<UpdateParameters>
<asp:Parameter Name="Title" Type="String" />
</UpdateParameters>
</asp:SqlDataSource>

View 2 Replies

C# - Devexpress ASPxGridView Column - Add A Link (button) To Specific Rows?

May 14, 2010

I have an ASPXGRIDVIEW which is binded to an SQL query.I added to the grid an additional COLUMNCUSTOMBUTTON.But what happens is, that for all the rows it put a link there.I am trying to find a way to add to this column a link (button) ONLY to specific rows!I am unable to understand how to do it

View 1 Replies

Javascript - Changing Value In ASPxGridView.OnCustomCallback When Already In Edit Mode Will Not Save The New Value/

Mar 8, 2011

I have an ASPxGridView shown to the user with an edit command button. When the user clicks the edit command button the selected row will change into the edit form.In the edit form I have a control which when clicked will do a custom callback through javascript, the custom callback handler will then change a value on the selected row and call UpdateEdit() to save the changed value and return to the regular grid view layout.

However the new value is never saved to the underlying datasource, in fact if I debug the DataSourceControl's ExecuteUpdate method I see the updated value in the oldValues collection and the values collection has the original value.The javascript that is called from the control in the editform:

javascript:grid.PerformCallback("CloseOrder");

The custom callback handler which runs on the server:

protected void gdOrders_CustomCallback(object sender, ASPxGridViewCustomCallbackEventArgs e) {
if (e.Parameters == "CloseOrder") {
var row = gdOrders.GetDataRow(gdOrders.EditingRowVisibleIndex);[code]...

View 1 Replies

Custom Server Controls :: How To Custom Controls Derived From Existing Controls - Overriding Default Property Values

Nov 15, 2010

I have some (probably very basic) questions about developing custom controls. I am wanting to derive a set of button controls, and the first one I have started on is a "DeleteButton", that has a additional property (DeleteConfirmationText) that is built into the OnClientClick attribute. To get that added, I overrode the Render method as follows:

[Code]....

This all works well. Now, I will add some logic to make sure that there is some text in the DeleteConfirmationText property, but that isn't the intent of my question.
What I am also wanting to do is to override some of the default property values, so I added that to the default constructor:

[Code]....

Now, in the designer in VS2008, and I look at the properties for the control, there isn't a default value shown in the "Properties" section, and the Causesvalidation still shows the underlying classes default value of "True". As well, in design mode, where the GridView control that containse my DeleteButton control would be displayed, there is an error box "There was an error rendering the control. 'Are you certain you want to delete this attorney?' cound not be set on property 'DeleteConfirmationText'. Here's the markup where I am defining the deletebutton control:

[Code]....

What am I doing wrong?

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved