Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
103 views
hello,

i am using a RadTimePicker in my RadGrid's EditForm's UserControl. like so:

<Telerik:RadTimePicker id="rdpArrestTime" SelectedDate='<%# Eval("ArrestDateTime") %>' DateInput-DateFormat="HH:mm" Width="97" TimePopupButton-Visible="false" TabIndex="22" Runat="server" /> 


...this doesnt seem to work when the db-value is NULL.

how does one set it?


thanks,
matt
Serrin
Top achievements
Rank 1
 answered on 17 Oct 2008
9 answers
88 views
Hi,

    I use RadDateTime and my problem is when my RadDateTime is disable.  Here is the process.
1- I have a checkbox doing postback when checked and this checkbox disable my RadDatetime.
2- On page loading, I register a client script when checkbox is checked to do window.setinterval for reloading page every 30 seconds (in Chart1_CallBack).
3- In Chart1_CallBack, when the timer reach 30 seconds, I set the datetime (selectedvalue) to datetime.now (I set the servercontrol to this value and register a script using Callbackmanager - setDate(x))
4- Since my datetime is disable, The value never change to datetime.now, even if I change it using servercontrol or client-side script.  I tried to enable control + setvalue + disablecontrol in server and client-side, but the value always stay the same.  I see the value change on my screen and after the page is reloaded and the new value is lost.

any idea?
thank you
MHNault
Top achievements
Rank 1
 answered on 17 Oct 2008
2 answers
151 views
I have been playing with the "Customizing the Advanced Template" example.  I have added another asp:linkbutton to the AdvancedEditForm.ascx with a blank CommandName as a way to initiate a postback that doesn't do an "Update" or "Cancel".  After the postback seems like the viewstate is gone.  The subject, description etc... are blank once the page reloads.  How do I maintain the viewstate across postbacks?

Thanks in advance,
--Greg

Greg
Top achievements
Rank 1
 answered on 17 Oct 2008
1 answer
105 views
I've applied custom styling to the rad menu for a sitefinity installation, but I've encountered a problem. No matter what I try and set for animation settings in the radmenu control, it always expands really slowly. I've tried setting a different type of animation, as well as different speeds from 5000 down to 5 and even zero but nothing happens, it always expands very slowly... is there somewhere else I need to change this setting?
SelAromDotNet
Top achievements
Rank 2
 answered on 17 Oct 2008
3 answers
103 views
I am trying to set the value of a radNumericTextbox using javascript but it errors in the javascript (in the Telerik controls) it seems as though the methods such as Round etc are not being bound to the object.

I then get an error here:-
if(!this.get_numberFormat().KeepNotRoundedValue){  
_49=NumberFormat.Round(_49,this);  



It seems as though that _49 = 5, NumberFormat is an object but there is no Round Method and so it dies.

Any ideas on how to resolve this please.

Many Thanks

Greg

Daniel
Telerik team
 answered on 17 Oct 2008
1 answer
370 views

Hi,

I am adding a user control into a rad dock programatically on click of a button.

There is a Rad grid with in the user control that is created and added dynamically to the controls of Web User Control.

This grid does not show up in the Web User Control added to thedock.

As an alternative, i tried adding the grid in the design view and try to set the data source in the Page_Init function.  When doing this, null reference exception comes up as the grid seems to be a null object.

Objective is to set different properties to the grid (in the web user control) based on the button click event and add that user control to the dock.

 

Petko
Telerik team
 answered on 17 Oct 2008
8 answers
511 views
Hi

I am using Telerik controls 2008 Q2 SP2.

By using Javascript, is there a way to expand all / collapse all a hierarchy grid that uses a NestedTableView instead of DetailTables?

By using a for loop I tried: 

    grdVenue.get_masterTableView().expandItem(i);


While this does expand the item the +/- image doesn't reflect the change.


Kind regards

Mark Eaton
Nikolay Rusev
Telerik team
 answered on 17 Oct 2008
1 answer
101 views
I've been pulling my hair out reading every article on how to access controls that are in edit mode, however I cannot find an example on how to access the actual data item in the code behind:

eg:  I want to access the value of the inline <%# Eval("title") %> in my VB code on an ItemCreated event *** NOT *** the value of lblTitle.

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

Any help would be much appreciated.  Thanks.
Daniel
Telerik team
 answered on 17 Oct 2008
4 answers
170 views
hello,

since the RadGrid columns have no simple property for "IsRequired" (which would make data-entry required in edit mode), i had to write my own custom column classes. they work in MasterTableViews. cool.

but, they dont work when used in DetailTables. when i use this:

<Nola:RequiredGridBoundColumn UniqueName="Name" HeaderText="Name" DataField="Name" MaxLength="50" /> 

i get this:

You must override Clone() for a derived grid column.

why is this?

here is the source code:

namespace CustomTelerikExtensions 
    /// <summary>   
    /// An extended GridBoundColumn that requires users to enter data into the GridBoundColumn's TextBox. 
    /// </summary>   
    public class RequiredGridBoundColumn : GridBoundColumn 
    { 
        public override void InitializeCell(TableCell cell, int columnIndex, GridItem gridItem) 
        { 
            base.InitializeCell(cell, columnIndex, gridItem); 
 
            // if in edit mode && the editor is not null 
            if (gridItem.IsInEditMode && cell.Controls[0] != null
            { 
                //assign ID of the default editor, if it is empty or null   
                if (!Strings.Exists(cell.Controls[0].ID)) 
                    cell.Controls[0].ID = String.Format("{0}_TextBox"this.DataField); 
 
                //add new required-field-validator 
                RequiredFieldValidator requiredValidator = new RequiredFieldValidator(); 
 
                requiredValidator.ID = gridItem.OwnerGridID + "_RequiredFieldValidator" + columnIndex; 
                requiredValidator.ControlToValidate = cell.Controls[0].ID; 
                requiredValidator.Text = "&nbsp;Required"
                requiredValidator.CssClass = "required"
 
                string message = String.Format("\"{0}\" cannot be empty."this.HeaderText); 
                requiredValidator.ErrorMessage = message; 
                requiredValidator.ToolTip = message; 
 
                //add validator to the cell 
                cell.Controls.Add(requiredValidator); 
            } 
        } 
 
        //''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 
 
        public override GridColumn Clone() 
        { 
            return base.Clone(); 
        } 
    } 




thanks,
matt
Rosen
Telerik team
 answered on 17 Oct 2008
1 answer
110 views
Hi,

I have scheduler on a test page and based on a querystring value, it displays different information. Now I am addressing error handling and instances where the querystring does not exist or is invalid. No matter what, Scheduler wants to be bound to DataKeyField, DataSubjectField, DataStartField and DataEndField. What if we just dont want the calendar to show in some instances? How can we disable the calendar and avoid errors related to the abscence of the above required databind fields?
Peter
Telerik team
 answered on 17 Oct 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?