
I have a .NET 4.0 web application which implements an error handler within the Application_Error event of Global.asax.
When an exception occurs this intercepts it and sends me an email including a variety of information like the logged in user, the page the error occurred on, the contents of the session etc.
This is all great but there is some fundamental detail missing which I seem unable to locate, i.e. the name of the control or the value that caused it to be out of range:
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. |
|
Hi Everyone,
I'm sure this is an obvious question but how do I set a default time when a user selects a date.
I have 2 RadDateTimePicker controls on a page where the user selects a daterange.
When the user selects a From date I want to automatically set the time portion of the returned date to 0:00 and when the user selects a To date I want to default the time to 23:59.
What am I missing, surely there is a default Time property somewhere that controls the time portion of the date returned from the Calendar.
Many thanks
Antony
I have a Radgrid using automatic Update, and a custom Edit Form template. I need to pass all the values of an edited row so I can populate an email that will be sent to users from the code-behind. Using the code below that I have cobbled together from various posts, I can get all the row's current values, but not the updated values using the ItemUpdated event. Is there another event I can use, or different code to obtain Updated values for that row after my Edit Form is closed and database updated? I am new to this, so code examples are helpful. Thanks!
C#
public void RadGrid1_ItemUpdated(object sender, GridUpdatedEventArgs e) { GridEditFormItem item = (GridEditFormItem)e.Item; GridDataItem parentItem = (GridDataItem)item.ParentItem; string emailFlag = parentItem["EmailToSalesFlag"].Text; { if (emailFlag == "true"); string SU = parentItem["StockUnit"].Text; string Make = parentItem["Make"].Text; string Model = parentItem["Model"].Text; string Description = parentItem["Description"].Text; string Type = parentItem["Type"].Text; string CustName = parentItem["CustName"].Text; string Salesperson = parentItem["Salesperson"].Text; string RecDate = parentItem["Rec_Date"].Text; string InvDate = parentItem["Inv_Date"].Text; string SpiffProg = parentItem["SpiffProg"].Text; string SpiffAmt = parentItem["SpiffAmt"].Text; string Notes = parentItem["Notes"].Text; string Approved = parentItem["Approved"].Text; string MgrNotes = parentItem["MgrNotes"].Text; string Email = parentItem["Email"].Text; //Populate HTML email Body PopulateBody(SU, Make, Model, Description, Type, CustName, Salesperson, RecDate, InvDate, SpiffProg, SpiffAmt, Notes, Approved, MgrNotes, Email); } }Hello!
I have a weird problem with my radgrid. In one of my columns (GridBoundColumn), I can't insert the exclamation mark.
It seems like the combination (Shift + 1) is somehow blocked. I can't find anything related to this.
Every other keyboard combination is working. The only way I can add the exclamation mark is by copy paste.
Has anyone encountered this before ? Any help is appreciated!
Thank you!
<telerik:RadButton ID="RadButton1" runat="server" ButtonType="ToggleButton" ToggleType="CustomToggle"> <ToggleStates> <telerik:RadButtonToggleState Selected="true" ImageUrl="../images/ConfirmBtn-Grey.jpg" /> <telerik:RadButtonToggleState ImageUrl="../images/ConfirmBtn-Selected.jpg" /> </ToggleStates></telerik:RadButton>I would like to show null values in a pivotgrid to indicate that a sample is misssing. It only shows zero's regardless the setting of IgnoreNullValues. I would expect null, empty or whatever the setting of EmptyValue. What am I missing here? Using UI for ASP.NET AJAX R2 2018 (version 2018.2.516)
<telerik:RadPivotGrid ID="mainpgrid" runat="server"
AllowFiltering ="false"
AllowNaturalSort="false"
AllowPaging ="false"
ShowFilterHeaderZone ="false"
EmptyValue ="(missing sample)" >
<TotalsSettings GrandTotalsVisibility ="None" ColumnsSubTotalsPosition ="None" RowGrandTotalsPosition ="None" />
<Fields >
<telerik:PivotGridColumnField DataField ="SeriesLabel" Caption ="Label" ></telerik:PivotGridColumnField>
<telerik:PivotGridAggregateField DataField ="Value" IgnoreNullValues ="True" Caption ="IgnoreNull" ></telerik:PivotGridAggregateField>
<telerik:PivotGridAggregateField DataField ="Value" IgnoreNullValues ="False" Caption ="DoNotIgnoreNull" ></telerik:PivotGridAggregateField>
<telerik:PivotGridRowField DataField ="UTZDate" Caption ="Date"></telerik:PivotGridRowField>
</Fields>
</telerik:RadPivotGrid>
Code:
Private Sub testpage_Load(sender As Object, e As EventArgs) Handles Me.Load
If Not IsPostBack Then
Dim t As New DataTable
t.Columns.Add("UTZDate")
t.Columns.Add("SeriesLabel")
t.Columns.Add("Value", System.Type.GetType("System.Int32"))
Dim r As DataRow = t.NewRow
r("UTZDate") = Now
r("SeriesLabel") = "Series 0"
r("Value") = DBNull.Value
t.Rows.Add(r)
r = t.NewRow
r("UTZDate") = Now.AddMinutes(5)
r("SeriesLabel") = "Series 0"
r("Value") = 100
t.Rows.Add(r)
Me.mainpgrid.DataSource = t
Me.mainpgrid.DataBind()
End If
End Sub
