Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
195 views
Hi,

I have a checkboxlist inside a radgrid, added inside the templatecolumn. I have provided seperate datasourceID to both radgrid and the checkboxlist.

In the itemdatabound event of the radgrid, I am modifying the datasource for the checkboxlist and pass the relevant parameter in and binding it to the checkboxlist in that row/item. I am expecting the checkboxlists to be populated with different values for each row. However, all of my checkboxes are populated with the same items.

Can anyone help me please?

kind regards,

Anu
Anu
Top achievements
Rank 1
 answered on 11 Feb 2010
1 answer
128 views
I need some help on how to validate a RadTimePicker input with RadInputManager.

 <telerik:RadTimePicker ID="tpPreFirstSurvey" runat="server" /> 

And within the RadInputManager tag:

  <telerik:DateInputSetting BehaviorID="DateInputBehavior3" DateFormat="hh:mm" Validation-IsRequired="true" > 
        <TargetControls> 
            <telerik:TargetInput ControlID="tpPreFirstSurvey" /> 
        </TargetControls> 
  </telerik:DateInputSetting> 

Any suggestions how to validate the time input? Can´t get it to work...

Best Regards,
Jonas
Dimo
Telerik team
 answered on 11 Feb 2010
3 answers
526 views
I am creating RadListBoxes dynamically at runtime. Some pages may have one, some pages may have 5.

My page has a submit button on it. So, when the page is submitted I am looping through all the fields and getting their values to build some xml which I then send to the database. [I am using Request.Form.AllKeys[x] and Request.Form[x] to get the key and the value from each form field. For the RadListBox controls, I want to get ALL the items that they contain]

How do I get the values (RadListBoxIItems) that are in each list box?

I have not been able to find an example of this sort of "manual" retrieval of the items in a list box.

Thanks for whatever advice you can offer.

UPDATE:
It looks as if this post might offer a way to get the values. I appears I can deserialize the client state of the RadListBox using an RadListBoxClientState object. However, I can't find where that is defined. The thread says that I just need to import Telerik.Web to use it but, that doesn't appear to work. Is this object still available. I will continue searching.

Genady Sergeev
Telerik team
 answered on 11 Feb 2010
1 answer
212 views

Good afternoon All,
I'm implementing a RadNumericTextbox for a timesheet entry page where the users are required to enter their time in half hour increments. 
I've tried attaching a RegularExpressionValidator to the control which has it's ValidationExpression set to "^\d+\.[05]$". 
I would expect an error on anything not ending with a 0 or 5.  I can't get this to accept an entry ending in a 0 (like 1.0 or 3.0).  It accepts entries ending in .5, as expected.

If I set the ValidationExpression to "^\d+\.[12]$", it catches anything that doesn't end with a 1 or 2 - as I would expect.

Is there something about an entry ending in 0?

Here's the aspx for the Textbox

 

 

<telerik:RadNumericTextBox ID="numtxtMonday" runat="server"

 

 

ButtonsPosition="Right"

 

 

EnabledStyle-HorizontalAlign="right"

 

 

IncrementSettings-Step="0.5"

 

 

InvalidStyle-ForeColor="red"

 

 

MaxValue="24" MinValue="0"

 

 

NumberFormat-DecimalSeparator="."

 

 

NumberFormat-DecimalDigits="1" NumberFormat-GroupSeparator=""

 

 

NumberFormat-AllowRounding="true"

 

 

ShowSpinButtons="true" Type="Number" ValidationGroup="saveTime"

 

 

Width="75px" Value="0.0" >

 

 

</telerik:RadNumericTextBox>

thanks!

 

Sheryl

 

 

 

 

Dimo
Telerik team
 answered on 11 Feb 2010
1 answer
108 views
Hi,

I have added AjaxManager in master page and added AjaxManagerProxy in content Page. However, I don't see any controls when using ajaxsetup.

check attachment.

Regards,
Bharat
Sebastian
Telerik team
 answered on 11 Feb 2010
5 answers
1.0K+ views
I am using the Clear() method on the RadListBox items in an Update Panel.  The items are not being cleared from the list box when the method is called.  I'm also calling ClearSelection() on another list box to remove the item selections and this does not seem to be working either.  Both are callbacks in an UpdatePanel to an event being called on the server.

Warren
Genady Sergeev
Telerik team
 answered on 11 Feb 2010
1 answer
286 views

I have a RadDatePicker in which I load SpecialDays with many RadCalendarDay objects. I set the IsSelectable property of many of these to false. When the calendar dropdown is displayed, all dates are properly enabled or disabled.
But in the DateInput the user can still enter and submit one of the dates where IsSelectable=false.

I see all of the dates are in the client.  Is there any client-side script that can be used against that data to prevent submission of an invalid date?
If we need to validate on the server, I'm not certain of what the logic should look like. The following code detects the condition but I'm not sure if this is the right way to go about it:

protected void RadDatePicker1_SelectedDateChanged( object sender , Telerik.Web.UI.Calendar.SelectedDateChangedEventArgs e )  
{  
    RadDatePicker picker = sender as RadDatePicker;  
    if ( e.NewDate == null )  
        return;  
    RadCalendarDay day = picker.Calendar.SpecialDays[ e.NewDate ];  
    if ( day.IsSelectable == false || day.IsDisabled == true )  
    {  
        // set picker to invalid state.  
        // display invalid selection message.  
        // stop other processing.  
        return;  
    }  
    // date is valid, OK to continue processing  
} 

How would we invalidate date picker from the server like that, register a script and force the client to do it?

Thanks.

Martin
Telerik team
 answered on 11 Feb 2010
1 answer
121 views
Hi, When setting ShowContentDuringLoad="false" there is a progress loading instead of the old content, what can I do if I want to change the icon or remove it to be just blank screen?
thanks
Shinu
Top achievements
Rank 2
 answered on 11 Feb 2010
1 answer
108 views

 

Hi,
  I am using Radrotator, which fetches images from the Sharepoint list and it has the property RotatorType="Slideshow". The radrotator is placed in a sharepoint webpart.  The error i am getting is "Control is null or not an object" on the page load or when i refresh the page, it is working fine if all the images are exist in the sharepoint list, if some images are not present it is throwing the "Control is null or not an object". Suppose if there are 7 images in the sharepoint list, when the page is loaded it is loading all the images for the first iteration, when it comes to last slide ( image 7), throwing "Control is null or not an object"

Thanks,
Srikanth
Fiko
Telerik team
 answered on 11 Feb 2010
2 answers
211 views
Hi,

I have two problems with the BinaryImage Column.
The first: how to use the thing with LInq? Shall I extend my Ling2Sql generated class to convert the image column to a format the BinaryImage column can handle? If so - how?
By the way - the thing is around more than half a year - and can still not work with Linq directly?
Not sooo important - it works when I bind to a SQL Source.

The bigger problem. As I commented at this sample
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/raduploadinajaxifiedgrid/defaultcs.aspx?product=binaryimage
this is far away from reality. BUT - I guess this has something to with my problem.
The sample forces the user always to upload an image. This may be OK on insert operations.
But how about edit operations? The user made a mistake (typo) needs to change the text - and after the update the image is gone...

Or think about "long term" data. The user uploads an image, adds text....
After a longer period of time he has some additional information - and wants to add some text.
Unfortunately he has no access to the uploaded image...
Bad luck :)

I guess my customer is a bit sad if I tell him:
We will add an instruction like this:
You can only edit textual content when you can provide an image to upload. :)

To be clear:
I have a (if possible with the BinaryImage Column) Linq Datasource with an image (later there will be 2 images) and some text / date / number fields.
The user must be able to:
a.) Add a record with (or without) an image
--is there a simple way to provide a "No image" display?
b.) Edit a record without uploading a new (the old) image

That's all.

Thanks in advance
Manfred
Veli
Telerik team
 answered on 11 Feb 2010
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?