Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
184 views

I found a problem with the date components for some reason the system will never accept that I enter a date of any first Sunday after the 15th of the month of October every year.

When I enter one of these dates and move the focus out of the component, the system automatically switches to the previous day.

You can notice the issue even in the pages of the demonstration site:
RadDatePicker
http://demos.telerik.com/aspnet-ajax/calendar/examples/datepicker/custompopup/defaultcs.aspx

RadDateInput
http://demos.telerik.com/aspnet-ajax/input/examples/raddateinput/firstlook/defaultcs.aspx

Calendar / Range Selection
http://demos.telerik.com/aspnet-ajax/calendar/examples/functionality/rangeselection/defaultcs.aspx

Dates with problems:
10/19/2014
10/20/2013
10/21/2012
10/16/2011
10/17/2010
10/18/2009
10/19/2008
10/21/2007
10/22/2006
10/16/2005
10/17/2004
10/19/2003
10/20/2002
10/21/2001
10/22/2000
10/17/1999
10/18/1998
10/19/1997
10/20/1996
10/22/1995
10/16/1994
10/17/1993
10/18/1992
10/20/1991
10/21/1990
10/22/1989
10/16/1988
10/18/1987
10/19/1986
10/20/1985
10/21/1984
10/16/1983
10/17/1982
10/18/1981
10/19/1980

Vasil
Telerik team
 answered on 16 Nov 2011
2 answers
398 views
Hi,

I created radcombobox dynamically. I want to add EnableLoadOnDemand functionality from codebehind. I need a sample of code in asp.net having this functionality doing from codebehind.

Thanks.
Ivana
Telerik team
 answered on 16 Nov 2011
1 answer
150 views
I am trying to set SelectedIndex -1 with the objective that I don't any item in the RadCombo to be highlighted. Whilst the debugger passes the line the next statement says SelectedIndex 0.

How to make the RadCombo not to select any particular item automatically?
Princy
Top achievements
Rank 2
 answered on 16 Nov 2011
2 answers
161 views
Hi

I have a radgrid that uses in place editing (EditMode = InPlace). The radgrid also allows the user to click a button to turn on the filtering by column.

I don't want the edit row and search rows to both appear on the grid at the same time because it might confuse people as they both look similar.

I've been able to remove the filter row when the add new record button is pressed, but I can't seem to do the reverse? The filter button turns on filtering using the ItemCommand event, it's here that I want to turn off the edit row.

Can anyone advise me on how to do this please?

Thanks
Corina
Top achievements
Rank 1
 answered on 16 Nov 2011
1 answer
114 views
I had a requirement to set my description field to the uploaded filename. I used the additional field example supplied by Telerik.
Here is how I set that value:

<telerik:radupload id="RadUpload1" runat="server" onclientadded="addTitle" onclientfileselected="uploadFileSelected" />

<script type="text/javascript" language="javascript">
    function uploadFileSelected(sender, args) {
        var currentIndex = sender._currentIndex - 1;
        fileNameTextBox = $get('<%= RadUpload1.ClientID %>' + 'Desc' + currentIndex);
        var inputValue = args.get_fileInputField().value;
        var fileName = inputValue.substring(inputValue.lastIndexOf("\\") + 1);

        fileNameTextBox.value = fileName;
    }

    function addTitle(radUpload, args) {
        var curLiEl = args.get_row();
        var firstInput = curLiEl.getElementsByTagName("input")[0];

        //Create a simple HTML template.
        var table = document.createElement("table");
        table.className = 'AdditionalInputs';

        //A new row for a Title field
        row = table.insertRow(-1);
        cell = row.insertCell(-1);
        var input = CreateInput("Title", "text");
        input.className = "TextField";
        input.id = input.name = radUpload.getID(input.name);
        var label = CreateLabel("Title", input.id);
        cell.appendChild(label);
        cell = row.insertCell(-1);
        cell.appendChild(input);

        //A new row for a Description field
        row = table.insertRow(-1);
        cell = row.insertCell(-1);

        input = CreateInput("Desc", "text");
        input.className = "TextField";
        input.id = input.name = radUpload.getID(input.name);
        label = CreateLabel("Description", input.id);
        //label.innerHTML = firstInput.valueOf;
        cell.appendChild(label);
        cell = row.insertCell(-1);
        cell.appendChild(input);

        //Add a File label in front of the file input
        var fileInputSpan = curLiEl.getElementsByTagName("span")[0];
        var firstNode = curLiEl.childNodes[0];
        label = CreateLabel("File", radUpload.getID());
        curLiEl.insertBefore(label, firstNode);

        curLiEl.insertBefore(table, label);
    }
</script>

Peter Filipov
Telerik team
 answered on 16 Nov 2011
2 answers
109 views
Hi, I wonder id it's possible to do, achive the following:
Having a filledFilter(filledFilter.png) and saving settings want to save only the structure (cleanfilter.png).

Thanks.
VitorBarao
Top achievements
Rank 1
 answered on 16 Nov 2011
7 answers
214 views
I attached you a file!

by default - Localization-Add text is "Add"
i want to rename it to "Add New Attachment", but when i renamed it the width of this button is still the same?
how can I make this right?
Bozhidar
Telerik team
 answered on 16 Nov 2011
2 answers
82 views
Dir Telerik.

can someone  tell me where on this is site i can download the dll especially v. 2010.2.286.40
My object cannot reference them anymore

Regards
Stuart Hemming
Top achievements
Rank 2
 answered on 16 Nov 2011
2 answers
1.0K+ views
Hi,

How can I change DataBinder.Eval to Container.DataItem)["Value"] if grid is binding from data table.

<%#((System.Data.DataRowView)Container.DataItem)["Value"] %> is working fine in ItemTemplate but not in EditItemTemplate.


line of code which is not working.

 <EditItemTemplate>
<asp:TextBox ID="txtRestrictValue" runat="server" MaxLength="200" Text='<%#((System.Data.DataRowView)Container.DataItem)["Value"] %>'></asp:TextBox>
</EditItemTemplate>

it gives following error:
Unable to cast object of type 'Telerik.Web.UI.GridInsertionObject' to type 'System.Data.DataRowView'.

Warm Thnaks
Reyaz
Jayesh Goyani
Top achievements
Rank 2
 answered on 16 Nov 2011
2 answers
113 views
I have a grid with a formtemplate. The formtemplate has 4 buttons: Save (CommandName="Update"), Cancel (CommandName="Cancel"), GoToStart (OnClick="btnGoToStart_Click"), PrintToPdf (OnClick="btnPrintToPdf_Click"). As you can see 2 of the buttons perform a grid command, and 2 of the buttons has their own click events. After clicking the Save button or Cancel button, the grid does exactly what's expected. But, if I click on Save, and then click on GoToStart or PrintToPdf buttons, they do not enter theis events, but acts like the Cancel button. What am I missing here?
Jayesh Goyani
Top achievements
Rank 2
 answered on 16 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?