or

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
|
| - <NewDataSet> |
| - <Table> |
| <hasRowRight>1</hasRowRight> |
| <n_nug_typ_id>50047</n_nug_typ_id> |
| <tnt_name>Discussion entry</tnt_name> |
| <author>Adam , [adam@enviss]</author> |
| <n_id>50140</n_id> |
| <n_wgid>5</n_wgid> |
| <n_tid>5</n_tid> |
| <n_code_name>Workflow test</n_code_name> |
| <n_date_created>2008-12-04T16:26:00+01:00</n_date_created> |
| <n_w_name>Discussion entry workflow</n_w_name> |
| <n_p_code_name>enviss</n_p_code_name> |
| <att_50312>etapa</att_50312> |
| <att_50312_key>50738</att_50312_key> |
| <att_50122>Memo</att_50122> |
| <att_50123>true</att_50123> |
| <att_50124>Workflow test</att_50124> |
| <att_50134>2009-06-03T00:00:00+02:00</att_50134> |
| <att_50135>2009-06-16T00:00:00+02:00</att_50135> |
| <att_50136>2009-06-09T00:00:00+02:00</att_50136> |
| <att_50137>2009-06-17T00:00:00+02:00</att_50137> |
| <att_50138>0</att_50138> |
| <att_50132>engineer2@enviss</att_50132> |
| <att_50132_key>50955</att_50132_key> |
| <att_50133>JF</att_50133> |
| <renderStatus>10</renderStatus> |
| </Table> |
| - <resources0> |
| <att_50132_key>50955</att_50132_key> |
| <att_50132>engineer2@enviss</att_50132> |
| </resources0> |
| </NewDataSet> |
| public void SetData(DataTable dtData) |
| { |
| DataSet ds = dtData.DataSet; |
| // datasetHelper implements selectDisctinct method to generate code-lists form existing appointments data. Adds new table to dataset. |
| DataSetHelper dsh = new DataSetHelper(ref ds); |
| XmlElement xeResources; |
| XmlElement xeResource; |
| string keyAttribute, valueAttribute; |
| ResourceType rt; |
| xeResources = (XmlElement) this.xeProperties.SelectSingleNode("//resources"); |
| // existujÃcà resources se odstranÃ, protože dvojà pÅ™idánà stejný resources způsobuje výjimku |
| this.scheduler.ResourceTypes.Clear(); |
| for (int i = 0; i < xeResources.ChildNodes.Count; i++) |
| { |
| if (xeResources.ChildNodes[i] is XmlElement) |
| { |
| xeResource = (XmlElement)xeResources.ChildNodes[i]; |
| keyAttribute = xeResource.GetAttribute("keyAttribute"); |
| valueAttribute = xeResource.GetAttribute("codeNameAttribute"); |
| dsh.SelectDistinct("resources" + i.ToString(), dtData, keyAttribute, valueAttribute); |
| // resources databinding |
| rt = new ResourceType(xeResource.GetAttribute("name")); |
| rt.DataSource = ds.Tables["resources" + i.ToString()]; |
| rt.KeyField = keyAttribute; |
| rt.ForeignKeyField = keyAttribute; |
| rt.TextField = valueAttribute; |
| this.scheduler.ResourceTypes.Add(rt); |
| } |
| } |
| this.dtData = dtData; |
| // appointments databanding |
| this.scheduler.DataSource = dtData; |
| // one extra attribute no problem with this |
| this.scheduler.Attributes["n_nug_typ_id"] = "n_nug_typ_id"; |
| this.scheduler.DataBind(); |
| } |
| Invalid member name. |
| Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. |
| Exception Details: System.ArgumentException: Invalid member name. |
| Source Error: |
| An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
| Stack Trace: |
| [ArgumentException: Invalid member name.] |
| System.ComponentModel.MemberDescriptor..ctor(String name, Attribute[] attributes) +157 |
| System.ComponentModel.PropertyDescriptor..ctor(String name, Attribute[] attrs) +9 |
| Telerik.Web.UI.Appointment.MapCommonResources(PropertyDescriptorCollection properties) +159 |
| Telerik.Web.UI.Appointment.MapAttributesAndResourcesToProperties(PropertyDescriptorCollection originalProperties) +236 |
| Telerik.Web.UI.Appointment.System.ComponentModel.ICustomTypeDescriptor.GetProperties() +27 |
| System.ComponentModel.MergedTypeDescriptor.System.ComponentModel.ICustomTypeDescriptor.GetProperties() +14 |
| System.ComponentModel.TypeDescriptor.GetPropertiesImpl(Object component, Attribute[] attributes, Boolean noCustomTypeDesc, Boolean noAttributes) +68 |
| System.ComponentModel.TypeDescriptor.GetProperties(Object component) +10 |
| System.Web.UI.DataBinder.GetPropertyValue(Object container, String propName) +53 |
| System.Web.UI.DataBinder.Eval(Object container, String[] expressionParts) +92 |
| System.Web.UI.DataBinder.Eval(Object container, String expression) +106 |
| Telerik.Web.UI.Scheduling.AppointmentTemplate._recurrenceIcon_DataBinding(Object sender, EventArgs e) +49 |
| System.Web.UI.Control.OnDataBinding(EventArgs e) +99 |
| System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +92 |
| System.Web.UI.Control.DataBind() +15 |
| System.Web.UI.Control.DataBindChildren() +211 |
| System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102 |
| System.Web.UI.Control.DataBind() +15 |
| System.Web.UI.Control.DataBindChildren() +211 |
| System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102 |
| System.Web.UI.Control.DataBind() +15 |
| System.Web.UI.Control.DataBindChildren() +211 |
| System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102 |
| System.Web.UI.Control.DataBind() +15 |
| System.Web.UI.Control.DataBindChildren() +211 |
| System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102 |
| System.Web.UI.Control.DataBind() +15 |
| System.Web.UI.Control.DataBindChildren() +211 |
| System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102 |
| System.Web.UI.Control.DataBind() +15 |
| System.Web.UI.Control.DataBindChildren() +211 |
| System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102 |
| System.Web.UI.Control.DataBind() +15 |
| Telerik.Web.UI.RadScheduler.CreateChildControls(Boolean bindFromDataSource) +430 |
| Telerik.Web.UI.RadScheduler.CreateChildControls() +10 |
| System.Web.UI.Control.EnsureChildControls() +87 |
| System.Web.UI.Control.PreRenderRecursiveInternal() +44 |
| System.Web.UI.Control.PreRenderRecursiveInternal() +171 |
| System.Web.UI.Control.PreRenderRecursiveInternal() +171 |
| System.Web.UI.Control.PreRenderRecursiveInternal() +171 |
| System.Web.UI.Control.PreRenderRecursiveInternal() +171 |
| System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842 |
| void drgGrid_ItemDataBound(object sender, GridItemEventArgs e) |
| { |
| if (e.Item is GridEditableItem && e.Item.IsInEditMode) |
| { |
| GridEditableItem item = (GridEditableItem)e.Item; |
| HybridDictionary extractedVals = new HybridDictionary(); |
| e.Item.OwnerTableView.ExtractValuesFromItem(extractedVals, item); |
| } |
| } |
| <cym:RadGrid ID="drgGrid" runat="server" DataSourceID="drgODS"> |
| <ClientSettings Selecting-AllowRowSelect="true" /> |
| <MasterTableView DataKeyNames="DrgID" AlternatingItemStyle-HorizontalAlign="Center" |
| ItemStyle-HorizontalAlign="Center" CommandItemDisplay="Top"> |
| <Columns> |
| <rad:GridBoundColumn DataField="RV" Visible="false" ReadOnly="true" |
| ForceExtractValue="Always" /> |
| <rad:GridBoundColumn DataField="ValidfromDate" HeaderText="Valid From" |
| ForceExtractValue="Always" ReadOnly="true" Visible="false" /> |
| <rad:GridBoundColumn DataField="ValidThroughDate" HeaderText="Valid Through" |
| ForceExtractValue="Always" ReadOnly="true" Visible="false" /> |
| <rad:GridBoundColumn DataField="DrgType" HeaderText="Type" |
| ForceExtractValue="Always" ReadOnly="true" Visible="false" /> |
| <rad:GridBoundColumn DataField="Description" HeaderText="Description" |
| ForceExtractValue="Always" ReadOnly="true" Visible="false" /> |
| <rad:GridBoundColumn DataField="DrgCode" HeaderText="Code" ReadOnly="true" |
| HeaderStyle-Width="100px" ForceExtractValue="Always" /> |
| <rad:GridBoundColumn DataField="Version" HeaderText="Version" ReadOnly="true" |
| HeaderStyle-Width="90px" ForceExtractValue="Always" /> |
| <rad:GridTemplateColumn HeaderText="Type" SortExpression="DrgType" |
| HeaderStyle-Width="70px"> |
| <ItemTemplate> |
| <%#Eval("DrgType") %> |
| </ItemTemplate> |
| <EditItemTemplate> |
| <cym:RadComboBox ID="typeDdl" runat="server" /> |
| </EditItemTemplate> |
| </rad:GridTemplateColumn> |
| <rad:GridTemplateColumn HeaderText="Description" UniqueName="Description" |
| ItemStyle-HorizontalAlign="Left" HeaderStyle-Width="300px"> |
| <ItemTemplate> |
| <%#Eval("Description") %> |
| </ItemTemplate> |
| <EditItemTemplate> |
| <asp:TextBox ID="descriptionTb" runat="server" /> |
| <asp:RequiredFieldValidator ID="descriptionReqVldtr" runat="server" |
| ControlToValidate="descriptionTb" ErrorMessage="* Required." |
| Display="Dynamic" /> |
| </EditItemTemplate> |
| </rad:GridTemplateColumn> |
| <rad:GridTemplateColumn HeaderText="Valid From" SortExpression="ValidfromDate"> |
| <ItemTemplate> |
| <%# DataBinder.Eval(Container.DataItem, |
| "ValidfromDate", "{0:MM/dd/yyyy}") %> |
| </ItemTemplate> |
| <EditItemTemplate> |
| <rad:RadDatePicker ID="fromDateDp" runat="server" |
| EnableEmbeddedSkins="false" Skin="Cymetrix" /> |
| <asp:RequiredFieldValidator ID="fromDateReqVldtr" runat="server" |
| ControlToValidate="fromDateDp" ErrorMessage="* Required." |
| Display="Dynamic" /> |
| </EditItemTemplate> |
| </rad:GridTemplateColumn> |
| <rad:GridTemplateColumn HeaderText="Valid Through" SortExpression="ValidThroughDate"> |
| <ItemTemplate> |
| <%# DataBinder.Eval(Container.DataItem, |
| "ValidThroughDate", "{0:MM/dd/yyyy}") %> |
| </ItemTemplate> |
| <EditItemTemplate> |
| <rad:RadDatePicker ID="throughDateDp" runat="server" |
| EnableEmbeddedSkins="false" Skin="Cymetrix" /> |
| <asp:CompareValidator ID="throughDateCmpVldtr" runat="server" |
| ControlToValidate="throughDateDp" ControlToCompare="fromDateDp" |
| Type="Date" Operator="GreaterThan" Display="Dynamic" |
| ErrorMessage="Valid Through must be less than Valid From." /> |
| </EditItemTemplate> |
| </rad:GridTemplateColumn> |
| <rad:GridEditCommandColumn /> |
| <rad:GridButtonColumn ButtonType="LinkButton" Text="Remove" |
| UniqueName="Remove" CommandName="Remove" ItemStyle-HorizontalAlign="Center" |
| HeaderStyle-Width="60px" /> |
| </Columns> |
| <EditFormSettings EditFormType="Template"> |
| <FormTemplate> |
| <asp:Panel ID="codePnl" runat="server" CssClass="row"> |
| <span class="prompt">Code</span> |
| <div class="data"> |
| <asp:TextBox ID="codeTb" runat="server" /> |
| <asp:RequiredFieldValidator ID="codeReqVldtr" runat="server" |
| ControlToValidate="codeTb" /> |
| </div> |
| </asp:Panel> |
| <asp:Panel ID="versionPnl" runat="server" CssClass="row"> |
| <span class="prompt">Version</span> |
| <div class="data"> |
| <asp:TextBox ID="versionTb" runat="server" MaxLength="3" /> |
| <asp:RequiredFieldValidator ID="versionReqVldtr" runat="server" |
| ControlToValidate="versionTb" /> |
| </div> |
| </asp:Panel> |
| </FormTemplate> |
| </EditFormSettings> |
| </MasterTableView> |
| </cym:RadGrid> |
| function fixAppointmentWidth() { |
| // retrieve all the divs in the page (A lot) |
| var divs = document.getElementsByTagName("div"); |
| // loop the divs |
| for (i in divs) { |
| // retrieve the divs class name |
| divclass = divs[i].className; |
| // check if the classname matches an appointment class (For some reason IE needs a space behind the class name, no clue as to why) |
| if((divclass == "rsApt ") || (divclass == "rsApt")) { |
| // get the current cell width (Which is going to be a percentage) |
| var cellwidth = divs[i].style.width; |
| // strip the % and devide the remainder by 100 to fetch the ammount of cells the appointment is supposed to span |
| var cells = (cellwidth.substr(0,(cellwidth.length -1 )) / 100); |
| // fetch the current (real) pixel value clientwidth |
| var clientwidth = divs[i].clientWidth; |
| // Reset the width to clientWidth + cellcount. (This offcourse assumes the border is 1px as it generally is) |
| divs[i].style.width = (clientwidth + cells) + "px"; |
| } |
| } |
| } |