Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
107 views
Hello,

i have added multiple link buttons in each calendar cell. As we know we can't create click events for the added link button while rendering calendar.i have written code like below:

 foreach (var lstCurrentDayWorkOrder in lstCurrentDayWorkOrders)
            {
                var trOfInnerTable = new TableRow();
                innerTableOfWorkOrderRow.Rows.Add(trOfInnerTable);
                var tdForInnerRow = new TableCell();
                trOfInnerTable.Cells.Add(tdForInnerRow);

                var workOrderLink = new LinkButton { Text = "#" + lstCurrentDayWorkOrder.pm_strWorkOrderNum };
                workOrderLink.Attributes.Add("href", "javascript:void(0);");
                workOrderLink.Style["color"] = "blue";

                tdForInnerRow.Controls.Add(workOrderLink);
            }

Regards,
Kapil Garg
Software Engg.
Kapil
Top achievements
Rank 1
 asked on 03 Apr 2012
16 answers
377 views
Hi,

I've just upgraded to the Q1 2011 release of ASP.NEt Ajax and installed IE9. When the editor loads up it generates the following error in a dialogue box on the screen:

"Error while executing filter MakeURLsAbsolute - TypeError: Unable to get value of the property 'InnerHTML': object is null or undefined."

I do not get this issue with IE8. It looks like a problem specific to IE9.

Any ideas?

Thanks

Tim 
Dobromir
Telerik team
 answered on 03 Apr 2012
0 answers
148 views
I am trying to build master detail grid. This is the sample I checked: http://demos.telerik.com/aspnet-ajax/grid/examples/programming/selectedvalue/defaultcs.aspx 

I am not using sqlserver and would need to do the bindings in the c# code behind, is there any sample/demo for this? say I need to get the select row from the master grid, get the detail records for that row and bind to the detail grid. 

Thanks.
Henry
Top achievements
Rank 1
 asked on 03 Apr 2012
4 answers
142 views
I am just started trying RadControl AJAX. I have questions for the Grid.

1)I am able to use the default add/edit form, now how can I customize the add/edit record form? For example, use dropboxlist? (which need to be populated from a list of value and then the current value is selected), use checkbox?(which should bind to current true/false value for bool type data).

2)how to align filter cell? I am expecting "FilterStyle" property, but not found.

Thanks.
Henry
Top achievements
Rank 1
 answered on 03 Apr 2012
9 answers
590 views
Hi,
I am having problem with RadDatePicker when user manual (types into built in Dateinput box) enter date.

Here is details.

I have RadDatepicker control inside RadGrid EditItemTemplate and uses Shared Calendar:

Design :

 <radG:GridTemplateColumn UniqueName="TemplateColumn" EditFormColumnIndex="1" HeaderText="Date"
                                                                                        DataField="TransactionDate" SortExpression="TransactionDate">
                                                                                        <HeaderStyle Width="110px" HorizontalAlign="Center" />
                                                                                        <ItemTemplate>
                                                                                            <asp:Label runat="server" ID="lbldate" Text='<%# Bind("TransactionDates") %>'></asp:Label>
                                                                                        </ItemTemplate>
                                                                                        <EditItemTemplate>
                                                                                            <radCln:RadDatePicker ID="rdTransactionDate" runat="server" Width="110px" MinDate="1960/1/1"
                                                                                                MaxDate="2099/1/1" Calendar-Skin="Default2006" UseEmbeddedScripts="false">
                                                                                           <DateInput ></DateInput>
                                                                                            </radCln:RadDatePicker>
                                                                                            <asp:CustomValidator ID="cvTransactionDate" runat="server" ClientValidationFunction="CheckDate"
                                                                                                ControlToValidate="rdTransactionDate"></asp:CustomValidator>
                                                                                        </EditItemTemplate>
                                                                                    </radG:GridTemplateColumn>

Code:

Inside Grid ItemCreated event Calendar is assigned to Datepicker.
It works fine when date is change using Calendar but does not work when user type into dateinput box to change the date.
Initially I thought it might be due to Ajax setting ( I might have missed of the related settings) but I have also checked by removing all Ajax Manager setting and tested the situation but it still it did not work.

During my testing I found out following details:

OndateSeleted does not fire when User types the date to change it.
Please let me know if I am missing any settings here because it should fire when
1) User chooses as date from Pop Calendar
2) User types the date to change

I would highly appreciate if you could provide any details to solve this problem.

Thanks





Pavlina
Telerik team
 answered on 03 Apr 2012
3 answers
130 views
Hello:

I am experiencing the following problem (I am using ASP.NET AJAX Q3 2010 NET40): I have a grid that uses template columns. When a row is in edit mode and I press the enter key in the textbox after editing the item, a new item is inserted. I wonder why this happens in the first place and what I can do to disable/avoid this behavior.

I have tried disabling automatic inserts, keyboard navigation, submit on enter but to no avail.

 Any feedback is appreciated. 
Thanks!
Eyup
Telerik team
 answered on 03 Apr 2012
5 answers
244 views
I am using the candlestick chart in my .NET C# stock market app. As you can see from http://demos.telerik.com/aspnet-ajax/chart/examples/newfeatures/candlestick/defaultcs.aspx the ChartSeries.Appearance-FillStyle-MainColor only sets the background color of the items whose close was lower than the open. Items whose close was higher than the open seem to have a transparent fill. I need to set those to a color (I want green fill for up days and red for down days).

I thought I could do the following:

foreach (ChartSeriesItem item in RadChart1.Series[0].Items)
{
   item.Appearance.FillStyle.MainColorOpacity = 255;
    item.Appearance.FillStyle.MainColor = item.YValue2 > item.YValue ? Color.Green : Color.Red;
}

But that doesn't build because even though the intellisense for MainColorOpacity says "gets or sets", Visual Studio tells me it's read only and it's stuck at "0" if close > open. How can I set a fill color on these items?
Evgenia
Telerik team
 answered on 03 Apr 2012
1 answer
105 views
Hello,

I have a RadGrid with UseStaticHeaders=true.
When I scroll the horizontal scroll bar, the column headers are fixed but grid contents are scrolling.
This occurs when page is postback.

This occurs in IE. In firebox, it works fine, both headers and contents of grid are scrolling.
Any idea to solve this?
Galin
Telerik team
 answered on 03 Apr 2012
5 answers
298 views
I installed Telerik Asp.Net AJAX RadControls Q3 2011. I open VS 2010 and select Telerik -> RadControls for ASP.Net AJAX -> Create New Telerik Project. I select C# RadControls WebApplication and click OK. I get the error "Microsoft Visual Studio" "Method not found: 'Void Telerik.VSX.WizardEngine.Configuration.ActionInfo.set_ExecuteConditions(Telerik.VSX.WizardEngine.Configuration.ConditionInfo[])'. I close the message box and the VS status bar says "Creating project 'RadControlsWebApp1'...project creation failed. I have re-booted and re-started VS and still get the same error. Please suggest a fix.
Dan
Top achievements
Rank 1
 answered on 03 Apr 2012
3 answers
523 views
Hi,
I am trying to put a RadAjaxPanel and a RadAjaxLoadingPanel  in one User control or even custom server control later.
However, I cannot made it work under Prometheus.
Following is my code which is really simple. Could anyone give me some help or hints?

AjaxPanelUserControl.aspx
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="AjaxPanelUC.ascx.cs" 
 
Inherits="Controls_AjaxPanelUC" %> 
 
<%@ Register Assembly="System.Web.Extensions" Namespace="System.Web.UI" TagPrefix="asp" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<asp:ScriptManager ID="ScriptManager1" runat="server">  
 
</asp:ScriptManager> 
 
<telerik:RadAjaxPanel ID="RadAjaxPanel1" LoadingPanelID="RadAjaxLoadingPanel1" runat="server" 
 
Height="200px" Width="300px">  
 
<asp:Button ID="Button1" runat="server" Text="Button" /> 
 
</telerik:RadAjaxPanel> 
 
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px" 
 
InitialDelayTime="0" Width="75px">  
 
<asp:Image ID="Image1" runat="server" AlternateText="Loading..." ImageUrl="/RadAjaxTest/Images/loadingbar.gif" /> 
 
</telerik:RadAjaxLoadingPanel> 
 

Default.aspx

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> 
<%@ Register Assembly="System.Web.Extensions" Namespace="System.Web.UI" TagPrefix="asp" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<%@ Register Src="Controls/AjaxPanelUC.ascx" TagName="AjaxPanelUC" 
    TagPrefix="uc1" %> 
<!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 runat="server">  
    <title>Untitled Page</title> 
</head> 
<body> 
    <form id="form1" runat="server">  
        <div> 
 
            <uc1:AjaxPanelUC ID="AjaxPanelUC1" runat="server" /> 
        </div> 
    </form> 
</body> 
</html> 

The problem is that loading panel don't show when i clicked the button whereas it works if i don't put them in the usercontrol.
jerry
Maria Ilieva
Telerik team
 answered on 03 Apr 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?