Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
131 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
128 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
563 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
119 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
225 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
87 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
281 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
502 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
8 answers
525 views
I have some UserControls that were working fine for quite some time (years in fact).  I have upgraded to a the latest (Q1 2012 release) of the controls and it no longer works correctly.  They are user controls because I am loading them dynamically in a tab control/pageview control...

The part that is no longer working is that I am grabbing the toolbar that is positioned above the RadGrid and changing some of the buttons based on some user permissions in the OnGridCreated event handler.  It can no longer find the RadToolbar control.  If I place a button at the bottom of my control and try to find the RadToolbar at that point, it finds it.  Which lead me to think that the OnGridCreated event is now firing before the RadToolbar has been created.

So, does anyone know if anything changed in this new version or even the one previous?  I think it was fine in v.2011.1.519.35.
Seth
Top achievements
Rank 1
 answered on 03 Apr 2012
6 answers
156 views
At design time, when RadGrid is in source view, properties are not shown in properties window.

Only when we switch to the Design view and press F4 (to view Properties Window) or right click on the control to View Propeties, the Properties window appears with a list of properties and events.

Thereafter things work fine even on switching to code view.

Is it a bug? Why dont i see the Properties in the Properties Window when i am in the source view for the first time. Why do i need to switch to design view to view the list of properties.

Kindly suggest.

Regards
Tarun Singla
Iana Tsolova
Telerik team
 answered on 03 Apr 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?