| int temp = 0; |
| foreach (RadTreeNode node in rdtreeTeamBrand.Nodes) |
| { |
| if (node.Nodes.Count > 0) |
| { |
| for (int i = 0; i < node.Nodes.Count; i++) |
| { |
| RadTreeNode brandNode = node.Nodes[i]; |
| foreach (DataRow row in tblTeamBrandDetails.Rows) |
| { |
| if (node.Value == row["TeamID"].ToString() && brandNode.Value == row["BrandID"].ToString()) |
| { |
| node.Checked = true; |
| brandNode.Checked = true; |
| temp = Convert.ToInt32(objconfig.CheckBrandSwotForPlanPeriod(Convert.ToInt32(node.Value), Convert.ToInt32(brandNode.Value), PlanningPeriodID)); |
| if (temp != 0) |
| { //this is where im adding the radalert at.. |
| brandNode.Attributes.Add("onclick", |
| string.Format(@" |
| function _showAlert() {{Sys.Application.remove_load(_showAlert); |
| radalert('{0}', null, 100, '{1}');}}; |
| Sys.Application.add_load(_showAlert);", "Brand will be excluded from the PlanningPeriod.", "Novartis iPlan")); |
| brandNode.ForeColor = System.Drawing.Color.Navy; |
| } |
| } |
| } |
| } |
| } |
| } |
| <div class="rtTop"> |
| <span class="rtSp"></span><input type="checkbox" class="rtChk" /><span class="rtIn">AFIN</span> |
| </div></li><li class="rtLI"><div class="rtMid"> |
| <span class="rtSp"></span><input type="checkbox" class="rtChk" /><span class="rtIn">FEM</span> |
| </div></li><li class="rtLI"><div class="rtMid"> |
| <span class="rtSp"></span><input type="checkbox" class="rtChk" checked="checked" /><span class="rtIn" onclick=" |
| function _showAlert() {Sys.Application.remove_load(_showAlert); |
| radalert('Brand will be excluded from the PlanningPeriod.', null, 100, 'Novartis iPlan');}; |
| Sys.Application.add_load(_showAlert);" style="color:Navy;">PROLE</span> |
| </div> |
Hey Telerik team,
I am facing some weird problem. In my page, I have a Gridview and and an HTML table containing 2 Telerik Calandar controls. Table is hidden at page load.
GridView:
<asp:GridView ID="uxtechgrid" runat="server" BorderStyle="None" ShowHeader="True"
Width="75%" AutoGenerateColumns="False" EmptyDataText="No records found" OnRowCommand="uxtechgrid_RowCommand"
OnRowEditing="uxtechgrid_RowEditing" OnRowCreated="uxtechgrid_RowCreated">
<Columns>
<asp:TemplateField ItemStyle-Width="30%" HeaderText="Review Step">
<ItemTemplate>
<asp:LinkButton runat="server" ID="action" Text='<%# Bind("WorkflowItemTemplateName") %>'
CausesValidation="false" CommandArgument='<%# Bind("WorkflowitemtemplateID") %>'
CommandName="Edit"></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField ItemStyle-Width="30%" HeaderText="Review Group Type" ItemStyle-HorizontalAlign="Center"
DataField="WorkflowItemTemplateTypeName"></asp:BoundField>
<asp:BoundField ItemStyle-Width="20%" HeaderText="Start Date" ItemStyle-HorizontalAlign="Center"
NullDisplayText="Not Assigned" HtmlEncode="false" DataFormatString="{0:d}" DataField="StartDateString">
</asp:BoundField>
<asp:BoundField ItemStyle-Width="20%" HeaderText="End Date" ItemStyle-HorizontalAlign="Center"
NullDisplayText="Not Assigned" HtmlEncode="false" DataFormatString="{0:d}" DataField="EndDateString">
</asp:BoundField>
</Columns>
</asp:GridView>
and HTML table is like :
<
tr id="uxDynamic" runat="server" visible="false" align="center" style="width: 100%">
<td colspan="2">
<table>
<tr>
<th colspan="2">
Review Step:
<asp:Label ID="uxReviewStep" runat="server"></asp:Label>
<asp:Label ID="uxWrkFlwTmpID" Visible="false" runat="server"></asp:Label>
</th>
</tr>
<tr>
<th>
Start Date:
</th>
<td>
<telerik:RadDatePicker ID="uxStartDate" runat="server" MinDate="2006-01-01" SharedCalendarID="sharedCalendar"
Skin="Gray" Culture="English (United States)">
<DateInput EmptyMessage="- Select a date -">
</DateInput>
</telerik:RadDatePicker>
<asp:RequiredFieldValidator runat="server" Display="Dynamic" ID="Requiredfieldvalidator1"
ValidationGroup="grp" ControlToValidate="uxStartDate" ErrorMessage="Please select start Date."></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<th>
End Date:
</th>
<td>
<telerik:RadDatePicker ID="uxEndDate" runat="server" MinDate="2006-01-01" SharedCalendarID="sharedCalendar"
Skin="Gray" Culture="English (United States)">
<DateInput EmptyMessage="- Select a date -">
</DateInput>
</telerik:RadDatePicker>
<asp:RequiredFieldValidator runat="server" Display="Dynamic" ID="Requiredfieldvalidator2"
ValidationGroup="grp" ControlToValidate="uxEndDate" ErrorMessage="Please select End date."></asp:RequiredFieldValidator><br />
<asp:CompareValidator ID="dateCompareValidator" runat="server" ControlToValidate="uxEndDate" Display="Dynamic"
ControlToCompare="uxStartDate" Operator="GreaterThan" Type="Date" ErrorMessage="The End Date cannot be before the Start Date<br /><br />">
</asp:CompareValidator>
</td>
</tr>
<
tr>
<td colspan="2">
<asp:Button ID="uxSubmit" runat="server" OnClick="submitButton_Click" Text="Submit"
ValidationGroup="grp" />
</td>
</tr>
<
div style="display: none">
<telerik:RadCalendar ID="sharedCalendar" Visible="false" runat="server" EnableMultiSelect="false"
UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x"
RangeMinDate="2006/01/01" Skin="Gray" />
<asp:PlaceHolder ID="sharedCalendarPlaceHolder" runat="server"></asp:PlaceHolder>
</div>
Now on click of Hyperlink Column in Grid, We display the "TR" showing 2 Datepickers using shared Calendar. It works fine when I click on first(any) Hyperlink; both the calendar opens perfectly. But on clicking Second time any Hyperlink, it shows just first calendar not Second. In Javascript it shows "_1ca" as null; I guess that is stopping it to show. Can you please help me out?
Please let me know if you need any other details!
Thanks in Advance!
| <telerik:RadScheduler ID="RadScheduler1" runat="server" Width="100%" DataKeyField="idraport" |
| DataStartField="raportdatastart" DataEndField="raportdatakoniec" DataSubjectField="opis" |
| Skin="Office2007" Height="400px" ShowFooter="false" RowHeaderWidth="52" OverflowBehavior="Scroll" |
| HoursPanelTimeFormat="H:mm" TimelineView-UserSelectable="false" > |
| <Localization AdvancedAllDayEvent="<%$ Resources:General, CaleDni%>" Save="<%$ Resources:General, Zapisz%>" |
| Cancel="<%$ Resources:General, Anuluj%>" AdvancedFrom="<%$ Resources:General, Od%>" |
| AdvancedTo="<%$ Resources:General, Do%>" AdvancedEditAppointment="<%$ Resources:General, FormularzRaportu%>" |
| ConfirmDeleteText="<%$ Resources:General, ConfirmDeleteText%>" ConfirmDeleteTitle="<%$ Resources:General, ConfirmDeleteTitle%>" |
| HeaderToday="<%$ Resources:General, Dzis%>" HeaderDay="<%$ Resources:General, Dzien%>" |
| HeaderMonth="<%$ Resources:General, Miesiac%>" HeaderWeek="<%$ Resources:General, Tydzien%>" |
| ShowMore="<%$ Resources:General, Wiecej%>" AllDay="<%$ Resources:General, CalyDzien %>" /> |
| <WebServiceSettings Path="WebService/SchedulerWebService.asmx" ResourcePopulationMode="ServerSide" /> |
| <InlineInsertTemplate> |
| TEST!!! |
| </InlineInsertTemplate> |
| </telerik:RadScheduler> |
Hi,
1. How do I get the horizontal scroll bar for the timelineview in the scheduler?
2. How do I set the height and with of the appointment inthe time line view?
Thanks
Sabarish
Hi,
I am using a RadGrid in my Asp.net Form. I am facing an issue like the Grid is not refreshing automatically. Here is the scenario, I have Radgrid that displays list of items. Once it is displayed, when ever the user double click the RadGrid list, asp.net Pop-up window will be opened. User can modify the content in the POP-up window. Once the modification is done, then user clicks the Save image button I have to update the modified content to the DB as well as the Radgrid should be refreshed automatically. How can we achieve this using RadGrid. Please help me out to solve this issue.
Thanks,
KG