
grid.MasterTableView.EditMode =
GridEditMode.EditForms;
grid.MasterTableView.EditFormSettings.EditFormType =
GridEditFormType.AutoGenerated;
Whenever user attempts to Update a record that results in the exception, I handle the exception through ItemUpdated event:
| private static void grid_ItemUpdated(object source, GridUpdatedEventArgs e) |
| { |
| if (e.Exception != null) |
| { |
| HandleInsertUpdateException((source as RadGrid), e, false); |
| e.ExceptionHandled = true; |
| e.KeepInEditMode = true; |
| } |
| } |
where HandleInsertUpdateException is my function for printing the error message.
The problem I'm faced with is this: whenever the user hits the Cancel link, the updated (incorrect) value still gets displayed in the grid.
What is the proper way to refresh the grid to have it display the original value whenever Update fails?
This is the definition we have in .aspx
<telerik:RadCalendar ID="RadCalendar2" runat="server" Font-Names="Arial,Verdana,Tahoma"
ForeColor="Black" Skin="Outlook" Style="border-color: #ececec"
EnableViewSelector="True" AutoPostBack="false">
</telerik:RadCalendar>
A function with the following lines is called on pageload:
RadCalendar2.SpecialDays.Clear();
RadCalendar2.SelectedDates.Clear();
RadCalendarDay NewDay = new RadCalendarDay(RadCalendar2);
foreach (DataRow drrow in dtALLDates.Rows)
{
NewDay =
new RadCalendarDay(RadCalendar2);
NewDay.Date =
Convert.ToDateTime(drrow["CalendarDate"]);
NewDay.ToolTip =
Convert.ToInt32(drrow["SeatsAvailable"]) > 0 ? Convert.ToInt32(drrow["SeatsAvailable"]) > 1 ? drrow["SeatsAvailable"] + " seats are available" : "1 seat is available"
:
Convert.ToInt32(drrow["InSchedule"]) == 0 ? "Session not offered or it is a holiday." : "Seats are not available.";
Boolean bselect = Convert.ToInt32(drrow["SeatsAvailable"]) > 0 && Convert.ToBoolean(drrow["AllowEdit"]) == true ? true : false;
NewDay.IsSelectable = bselect;
if (Convert.ToBoolean(drrow["IsOpted"]) == true)
{
NewDay.IsSelected =
true;
RadCalendar2.SelectedDates.Add(
new RadDate(Convert.ToDateTime(drrow["CalendarDate"].ToString())));
}
RadCalendar2.SpecialDays.Add(NewDay);
}
When we navigate from one month to another month, the highlighted dates are cleared. I tried lot of things. But nothing working. Please help me to come out of this issue.
Thanks a lot in advance.
Siva

I am using RadWindow in my Aspx pages. And there is a problem I've got:
The caption of window is displayed incorrectly in IExplorer. Look at samples from Explorer and Chrome.
Window is defined in Aspx as follows:
<radw:radwindowmanager runat="server">
<Windows>
<radw:RadWindow id="ARAjuda" title="Ajuda - Conhecimentos" Width="600px" Height="450px" Runat="server"
ReloadOnShow="false" Modal="true" Behavior="Move, Close" onclientshow="OnClientShow" ShowContentDuringLoad="true"/>
<radw:RadWindow id="SendConhecimento" title="Conhecimentos - Sugerir Novo Conhecimento" Width="500px" Height="350px" Runat="server"
ReloadOnShow="false" Modal="true" Behavior="Move, Close" onclientshow="OnClientShow" ShowContentDuringLoad="true"/>
</Windows>
</radw:radwindowmanager>
And is called to be shown as follows:
function ShowHelp()
{
window.radopen("Dialogs/Help.aspx", "ARAjuda");
return false;
}
The content of Help.aspx is about like that:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>Ajuda - Conhecimentos</title>
<script type="text/javascript" language="javascript" src="../../JS/RadWindow.js"></script>
</head>
<body>
<form id="Form1" method="post" runat="server">
<table width="100%">
<tr>
<td align="center">
<b>Conhecimentos</b>
<hr style="color: #CC0000; background-color:#CC0000;" />
</td>
</tr>
<tr>
<td style="text-align:justify;">
Etiam sem libero, dictum vitae, lobortis sed, vehicula non, nibh. Donec quam. Ut lectus nulla, dictum et, vestibulum in,
congue ac, est. Quisque mollis mollis magna. Duis convallis est sed sem. Ut luctus quam eget nulla. Fusce tristique rhoncus
ante. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Sed tincidunt accumsan erat.
Aliquam tincidunt commodo leo. Etiam porttitor pede non leo. Nulla nisi nunc, pretium a, consectetuer at, gravida sit amet, leo.
Suspendisse dignissim ornare velit.
<p></p>
In mi. Quisque eu turpis at turpis porta gravida. Suspendisse facilisis nisi sit amet nibh. Proin pharetra, massa eget scelerisque
dictum, mi nulla malesuada mi, et posuere leo nisl ut est. Suspendisse eleifend metus at massa. Donec quis leo nec magna tincidunt
placerat. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Suspendisse neque risus,
commodo sed, ullamcorper in, vestibulum in, tellus. In neque lorem, condimentum quis, egestas a, vulputate vel, purus. In accumsan
viverra orci.
</td>
</tr>
<tr>
<td align="center">
<br />
<button onclick="CancelEdit();" type="button" class="mediumButton">Fechar</button>
</td>
</tr>
</table>
</form>
</body>
</html>
Any idea, how to fix it ?
Hi
The slide items of menu are showing in upward direction in FireFox even if there is plenty space at the below side of the menu. If there is no space to spread the slide items below the menu then it shows at the upward side, that is fine, but after that if we provide plenty space below the menu still the slide items shows at upward side.
The slide items behave properly in IE and Safari.
Please go through the attached file for more clarity
Please suggest me what i have to set for getting the menu working properly for FireFox.
Thanks
Datta Navatre

Hi..
I have a requirement in radgrid. Where ever we have Grid with sortable columns, the column header must be underlined. I tried the following code. it works well in FF but not in IE (previously i have customised the header text appearence by overwriting the css)
<telerik:GridTemplateColumn HeaderStyle-Font-Underline="true" HeaderText="Category Name" HeaderStyle-HorizontalAlign="Center"
SortExpression="Name" HeaderStyle-Width="170px" ItemStyle-HorizontalAlign="Left"
ItemStyle-VerticalAlign="Middle">
<ItemTemplate>
<asp:LinkButton ID="lblShortCode" OnClick="EditeRecord" CommandArgument='<%# Eval("RecordID") + "~" +Eval("ProgramCatId") %>'
runat="server" Text='<%# Eval("Name") %>'></asp:LinkButton>
</ItemTemplate>
<ItemStyle VerticalAlign="Middle" BorderColor="#8AB3C9" BorderWidth="1px"></ItemStyle>
</telerik:GridTemplateColumn>
Thanks.
Jeeivtha