Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
163 views
In all current examples on RadNumericTextBox with spinbuttons I see InvalidStyleDuration="100". Without this setting, my control with spinbuttons doesn't format properly. The help doesn't say anything.

What is the meaning of this property, how and when is it supposed to be used?
Eliyahu Goldin
Top achievements
Rank 1
 answered on 25 Sep 2009
0 answers
92 views
Hi,

I want to add an alert message to some nodes in my RadTreeView.
Following is my code.

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;  
                            }  
                        }  
                    }  
                }  
            }  
        } 

This is how a part of the Treeview looks in html
<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> 

This is not working. I am getting a alert with null as text, onclick of these nodes.

Please help.
Sudhanva
Top achievements
Rank 1
 asked on 25 Sep 2009
7 answers
188 views
I'm painfully converting my solutions from Q2 2007 to Q1 2009 AJAX. One thing I'm having a problem with is the ToolsFile for RadEditor. In the past, I used an ASPX page to provide dynamic content to the control (especially the links). When I try to do this now, it doesn't work, I get an error. It appears as if the control is not executing the page, but is rather reading it as if it were a text file, which means the dynamic content will not be included, and an error will occur (as the page tag is incorrectly processed). Am I right about this? Is there any workaround?

Michael
Lini
Telerik team
 answered on 25 Sep 2009
1 answer
57 views

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!

 

 

 

 

Iana Tsolova
Telerik team
 answered on 25 Sep 2009
3 answers
184 views
Hi

I've succesfully got a databound radmenu working but it our application I need to be able to open aspx pages in named windows i.e. we end up with multiple open windows.

Is this possible?  There is no target property available in the radmenu and while this is available in the radmenuitem I cant seem to get this to work for a databound menu.

Thanks

Richard
Peter
Telerik team
 answered on 25 Sep 2009
0 answers
138 views
Hi
How add InlineInsertTemplate to RadGrid binding in WebService?

<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> 

Please help :)
Adek
Top achievements
Rank 1
 asked on 25 Sep 2009
3 answers
127 views

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

Peter
Telerik team
 answered on 25 Sep 2009
3 answers
83 views
Is it possible to color code the appointments based on a status? We have a statusid on our appointments that tells us if they are overdue so basically we want all "on-time" appointments / tasks to be green and overdue red.

Thanks,
Sam
Peter
Telerik team
 answered on 25 Sep 2009
1 answer
76 views

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

Mira
Telerik team
 answered on 25 Sep 2009
5 answers
113 views
Hello all,

Im using the radcombobox. For some reason it doenst looks the way it should. Is there any suggestion for the cause of it?

You can see how it looks here

Greets,
Yana
Telerik team
 answered on 25 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?