User Profile & Activity

soniya k Member

hello

thanks for your efforts

i require a sample with DAL of strongly typed dataset and you have sent a sample of strongly typed collection.

plz send me the same.

 

 

when will i get it..

thanks

 

Posted: December 19, 2011 11:16 PM

i have already mentioned that it happens after execution of batchupdate event of webgrid

Even if i comment the code inside batchupdate event of webgrid , this happens.."xpReqDet" is a datatable to which grid's datasource given.

 I suspect that after batch update it may be searching column in dataset "dsReqOrder" instead of datatable "xpReqDet".How can i rectify the problem

I have also checked turning off the batchupdate feature then also same error occurs

 

after execution of batchupdate event of webgrid,i am getting error "Can't find DataColumn with name "PSEUDO_LINE_ID" in the specified datasource" .When i debug i found that it exists in datatable "xpRequisition.dsReqOrder.xpReqDet".....

 It also updates data in datatable but still shows the error "Can't find DataColumn with name "PSEUDO_LINE_ID" in the specified datasource"...I can't send you a simple sample as my project consists of devexpress dlls that are used in master page..Plz help me fed up with this error .....trying continuously since past two days....It's urgent....

 

protected void gvRequisition_InitializeDataSource(object sender, ISNet.WebUI.WebGrid.DataSourceEventArgs e)

{

if (xpRequisition != null && xpRequisition.dsReqOrder != null)

{

if (xpRequisition.dsReqOrder.xpReqDet != null)

{

// DataView dv =new DataView(xpRequisition.dsReqOrder.xpReqDet);

e.DataSource = xpRequisition.dsReqOrder.xpReqDet;//.dtReqdet;

}

 

 

}

}

protected void gvRequisition_PrepareDataBinding(object sender, ISNet.WebUI.WebGrid.DataSourceEventArgs e)

{

if (gvRequisition.FlyPostBackAction == "Refresh" || !IsPostBack)

{

// gvRequisition.RetrieveStructure(); gvRequisition.RootTable.DataKeyField = "PSEUDO_LINE_ID";

UPdetails.Update();

}

}

protected void gvRequisition_BatchUpdate(object sender, BatchUpdateEventArgs e)

{

// gvRequisition.PerformBatchUpdate(true,true);

 

foreach (WebGridRowChanges rowChanges in e.PendingChanges)

{

try

{

switch (rowChanges.RowState)

{

case RowState.Modified:

{

string TypeGuid = rowChanges.KeyValue.ToString();

MapChangesToObject(rowChanges.Data, TypeGuid);

// DataLayer.UpdateCustomer(customer); break;

}

}

}

catch (Exception exp)

{

// adds the Exception to batch update list to take advantage of WebGrid's partial errors support.

gvRequisition.AddBatchUpdateException(new WebGridBatchUpdateException(rowChanges,

new Exception("Record '" + rowChanges.KeyValue.ToString() + "' has error '" + exp.Message + "'", exp)));

}

 

}

}

private void MapChangesToObject(List<WebGridCellData> data, string strkey)

{ 

DataRow row;

row = xpRequisition.dsReqOrder.xpReqDet.Rows.Find(strkey);

// row.BeginEdit(); foreach (WebGridCellData cellData in data)

{

switch (cellData.Column.DataMember)

{

case "DESCRIPTION":

 

row[cellData.Column.DataMember] = cellData.NewText;

break;

}

}

// row.EndEdit();

}

 

<ISWebGrid:WebGrid ID="gvRequisition" runat="server" Height="300px" UseDefaultStyle="True" Width="100%" EnableViewState="False" OnInitializeDataSource="gvRequisition_InitializeDataSource" OnPrepareDataBinding="gvRequisition_PrepareDataBinding" OnBatchUpdate="gvRequisition_BatchUpdate"> <LayoutSettings AllowBatchUpdate="True" AllowColumnSizing="No" AllowContextMenu="False" AllowAddNew="Yes" AllowDelete="Yes" AllowEdit="Yes" AllowFilter="Yes"> <BatchUpdateSettings AutomaticObjectUpdate="False" AllowReviewChanges="true" /> <ClientSideEvents OnInitialize="InitializeGrid" /> </LayoutSettings> <RootTable DataKeyField="PSEUDO_LINE_ID"> <Columns> <%-- <ISWebGrid:WebGridColumn Caption="Line #" DataMember="LINE_NO" Name="LINE_NO" Width="50px">

</ISWebGrid:WebGridColumn>--%>

<ISWebGrid:WebGridColumn Caption="PSEUDO_LINE_ID" DataMember="PSEUDO_LINE_ID" Name="PSEUDO_LINE_ID" Width="100px"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="PRODUCT_CODE" DataMember="PRODUCT_CODE" Name="PRODUCT_CODE" Width="100px"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="DESCRIPTION" DataMember="DESCRIPTION" Name="DESCRIPTION" DataType="System.String" Width="100px"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Resource" DataMember="RES_NAME" DataType="System.String" EditType="WebComboNET" Name="RES_NAME" WebComboID="cbResource" Width="100px"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Specifications" DataMember="SPECIFICATIONS" Name="SPECIFICATIONS" Width="100px"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="UOM" DataMember="" DataType="System.String" EditType="WebComboNET" Name="UOM" WebComboID="cbUOM" Width="100px"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Numbers" DataMember="NOS" Name="NOS" DataType="System.Int32" Width="100px"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Qty per Unit" DataMember="QTY_PER_UNIT" Name="QTY_PER_UNIT" DataType="System.Int32" Width="100px"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Qty" DataMember="QTY" Name="QTY" Width="20%"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Qty. Fulfilled" DataMember="QTY_FULFILLED" Name="QTY_FULFILLED" DataType="System.Int32" Width="100px"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Qty to be Waived" DataMember="QTY_WAIVED" Name="QTY_WAIVED" DataType="System.Int32" Width="100px"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Qty Waived" DataMember="TOTAL_QTY_WAIVED" Name="TOTAL_QTY_WAIVED" DataType="System.Int32" Width="100px"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Balance Qty." DataMember="BALANCE_QTY" Name="BALANCE_QTY" DataType="System.Int32" Width="100px"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Qty Waived" DataMember="TOTAL_QTY_WAIVED" Name="TOTAL_QTY_WAIVED" DataType="System.Int32" Width="100px"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Remarks" DataMember="REMARKS" Name="REMARKS" DataType="System.String" Width="100px"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Required By" DataMember="REQUIRED_BY" Name="REQUIRED_BY" DataType="System.DateTime" EditType="CalendarCombo" Width="100px"> </ISWebGrid:WebGridColumn> </Columns> </RootTable> </ISWebGrid:WebGrid>

yes i tried it ,when the page is offline and zoomed then also same issue occurs

I got why you can't replicate the second issue (if the page is zoomed then only you will replicate the issue ).My issue was----

2.If you see the file i have attached , in IE 8 ,initially i am able to see dropdown button but once i click it,it disappears ...how can i avoid the same...

To replicate the issue first zoom the page littele bit and then click on dropdown button

 

 

I have 2 questions....

1.Regarding the WebComboShowingDialog.zip which you have sent , In IE 8 it works.... but in mozilla i am still able to see resultbox ...why is so...how can i hide it in mozilla

2.If you see the file i have attached , in IE 8 ,initially i am able to see dropdown button but once i click it,it disappears ...how can i avoid the same...

You have sent me a sample of opening dialogbox in OnAfterItemSelected event whereas i want to open the dialog box on press of dropdown button.How can i do the same. Also I don't want dropdownlist to appear i just want dialog box on press of dropdown button ...Is that possible.... How....

All times are GMT -5. The time now is 3:39 AM.
Previous Next