Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
94 views
hello
I have a RadGrid with MasterTableView and a DetailTableView. In my DetailTableView, when I edit my record, I have a RadDatePicker where I want to put the value of my field "DATE_DEBUT_EMPLOI" So I did it that way and that's working fine.

 

<telerik:GridTemplateColumn

 

 

UniqueName="TemplateColumnDateDebutEmploi"

 

 

HeaderText="Date de d‚but de l'emploi"

 

 

DataField="DATE_DEBUT_EMPLOI">

 

 

<ItemTemplate>

 

 

<asp:Label ID="LbDATE_DEBUT_EMPLOI" runat="server" Text='<%#Eval("DATE_DEBUT_EMPLOI") %>'></asp:Label>

 

 

</ItemTemplate>

 

 

<EditItemTemplate>

 

 

<telerik:RadDatePicker ID="DPicker_DATE_DEBUT_EMPLOI" selecteddate='<%#Eval("DATE_DEBUT_EMPLOI") %>' Runat="server">

 

 

<Calendar ID="Calendar_DATE_DEBUT_EMPLOI" UseColumnHeadersAsSelectors="False" runat="server" UseRowHeadersAsSelectors="False" ViewSelectorText="x"></Calendar>

 

 

</telerik:RadDatePicker>

 

 

</EditItemTemplate>

 

 

</telerik:GridTemplateColumn>

My problem is when I click on add new record for my detailTableView, I get the errror
"not a valid cast" (rapid traduction french to english by myself)
on the line 

 

<

telerik:RadDatePicker ID="DPicker_DATE_DEBUT_EMPLOI" selecteddate='<%#Eval("DATE_DEBUT_EMPLOI") %>' Runat="server">
What can I do to have the value of my field in that control when I edit but not having an erreur when I try to create a new record in my detailtableview

Thanks again in advance!

(I LOOOOVVVEEEE this forum!)

 

Shinu
Top achievements
Rank 2
 answered on 14 Nov 2008
3 answers
80 views
I am trying to get a very simple chart to show on my page, but since charting is so new to me, I don't know how to accomplish the simple stuff.

Here is my Stored Procedure
 
-- =============================================  
-- Author:              Chase  
-- Create date: 11/10/2008  
-- Update date: 11/10/2008  
-- Description: Get Admin Data  
-- =============================================  
ALTER PROCEDURE dbo.bt_BizBoth_AdminAdChart  
 
AS 
SET NOCOUNT ON 
SET ANSI_NULLS ON 
    /* SET NOCOUNT ON */  
 
 
Select   
 
    (Select Count([ID])   
        As TotalBizForSale   
        From bt_BizForSale   
    ) AS TotalForSale,   
      
      
    (Select Count([ID])   
        As TotalBizWanted   
        From bt_BizWanted   
    ) As TotalWanted  
 

And here is my page load
 
    Protected Sub Page_Load(ByVal sender As ObjectByVal e As System.EventArgs) Handles Me.Load  
        Dim BizBothDC As New DAL.BizBothDataContext  
        Dim results = BizBothDC.bt_BizBoth_AdminAdChart  
        RadChart1.DataBind()  
    End Sub 

My problem is that I don't know how to wire it up to my Chart... Basically the chart needs to be a PIE CHART with TOTAL BUSINESSES FOR SALE and TOTAL BUSINESSES WANTED

Note I do not want to use a DataSource in my ASPX.. I think they are just UGLY.

Thanks in advance.
Chase Florell
Top achievements
Rank 1
 answered on 13 Nov 2008
2 answers
158 views
What is the easiest way to add a tooltip for dynamic menu items populated by a web service? You would think there would be a tooltip property on the RadMenuItemData class but there isn't. Suggestions?

Thanks
Ryan
Top achievements
Rank 2
 answered on 13 Nov 2008
3 answers
369 views
Hello i'M using windows component in my proyect, but i dont know how can I use the radalert and reload the page, but when I realad page I need put querystring. The querystring is Able to use parameters.
For example:

reload:  default.aspx?id=1

I need use this because I update data and I need reload all data.

Thanks.

I found this javascript code:
href="javascript:void(0);" onclick="$find('{0}').close(); window.location.href = 'default.aspx';"

and from VB:
ScriptManager.RegisterStartupScript(MeMe.GetType(), "alert""<script type='text/javascript'>Sys.Application.add_load(function(){radalert('Message');})</script>"False

I need send parameters.


george
Top achievements
Rank 1
 answered on 13 Nov 2008
8 answers
558 views
I Have a RadGrid with some field null and some field boolean Value...I have to add control in cetain Cell of RaDGrid....
Protected void RadGrid1_ItemDataBound(object sender,GridItemEventArgs e)
{
     if(e.item.is GridDataItem)
         {
                    DataRowView Rv=(DataRowView)e.Item.DataItem;
                    (Now ...)

          }
}

Till Now I can Access Row of the Grid..Now I have to Access Cell so that I can add control
eg: cell.control.add(CheckBox)..some like this...

Thanks,
DIP
Dip
Top achievements
Rank 1
 answered on 13 Nov 2008
3 answers
250 views
Hi,
I am pasting 3 paragraphs from Microsoft Word into the Telerik editor. Each paragraph (created in Microsoft Word) have different fonts and sizes and every paragraph has a heading as well. If I paste this text from Microsoft Word into Telerik editor and do select all (Control A) in the Telerik editor and apply new font or size it does not work.

Other features that do not work using same senior are:
Background color
Text color

Your prompt response will be greatly appreciated.

Regards,
M
Rumen
Telerik team
 answered on 13 Nov 2008
1 answer
111 views
The following error occurs on the client browser when the user attempts to resize the editor beyond the height or width of the visible area.

Line: 3313
Error: Sys.ArgumentOutOfRangeException: Value must be an integer.
Parameter name: x
Actual value was NaN.

The expected behavior would be to stop dragging at the edge of the screen, or resize the view area to accomodate (adding scrollbars, not resizing the actual window)

Not that it matters, but the RadGrid is within a DetailsView control. The DetailsView control is within a PageView which is inside a RadMultiPage.
Rumen
Telerik team
 answered on 13 Nov 2008
6 answers
152 views

 

Dim ddlMyUniqueName As GridDropDownColumn = CType(theRadGrid.FindControl("MyUniqueName"), GridDropDownColumn)

gives the error that type Control cannot be converted to GridDropDownColumn.

I have had no problems dynamically setting the DataSourceId for a RadGrid in a Page_Load event. Why can't I do it for the DataSourceId on a GridDropDownColumn so I can use different sources on different pages for the same RadGrid control in a *.ascx control? What is the correct way to do this?

Also where is the best discussion (most clear yet also complete) that explains how to find and manipulate controls dynamically using the FindControl method? Is it consistent for all Telerik controls throughout the hierarchy of controls? Or does it vary depending on context in control lifecycle event?

 

Carl
Top achievements
Rank 1
 answered on 13 Nov 2008
3 answers
152 views
Hey guys, I seen a thread here outlining how to have a fixed width on an appointment. It works fine if you have one apppointment, however, not if you have several.

My problem is that I am using the Scheduler as a rostering system, and each time slot may have 10+ people. I would like, rather than the appointment to shrink into the column width, that the column expands, so that if there are 10 people scheduled to work at 9.30am on Wednesday, that their names remain readable in week view.

See here for a screenshot of how it looks at the minute. I would prefer that each appointment remained 100px wide and that the column for Wed expanded, leaving the person's name readable.

Is this possible?
Simon
Telerik team
 answered on 13 Nov 2008
3 answers
161 views
Hello, I have the latest 2008 RAD Controls.
I have sub-items that are quite lengthy that when they wrap are two-three lines long.
The lines that wrap are using the same padding or line-height as the actual items themselves.
Is there a way to decrease the line-height of the wrapped text while maintaining the larger amount of space between the items?
Any help is much appreciated.



John
Top achievements
Rank 1
 answered on 13 Nov 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?