Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
128 views
Hello,

I have been working to add the new DropDownTree control to my project and noticed an undesired behavior when using it in Tri-state mode.  While checking the boxes visually does display correctly, it doesn't appear that the correct values are getting passed through the OnClientEntryAdding and OnClientEntryRemoving events using this method which you have on your help pages (which I actual found under RadAutoCompleteBox because the help for RadDropDownTree is useless and incomplete):

<script type="text/javascript">
    function entryAdding(sender, eventArgs) {
        alert(eventArgs.get_entry().get_value());
    }
    function entryRemoving(sender, eventArgs) {
        alert(eventArgs.get_entry().get_value());
    }
</script>


For example, using hierarchical tree such as:

[ ] Arizona
 -- [ ] Phoenix
 -- [ ] Tuscon
 -- [ ] Flagstaff
[ ] California
 -- [ ] San Diego
 -- [ ] San Francisco
 -- [ ] Hollywood

...If I check "Arizona", on the UI "Phoenix, Tuscon, and Flagstaff" all get checked as expected, however; "Arizona" appears to be the only value actually returned from the entryAdding alert whereas I would expect to see "Arizona, Phoenix, Tuscon, and Flagstaff" .  Additionally, if I decide to uncheck say Tuscon, the UI does display this correctly and "Arizona" renders as the third state check, however; once again only "Arizona" is returned from the entryAdding alert whereas I would expect to see "Arizona, Phoenix, and Flagstaff".

What am I missing here to get this to return the correct values to mimic what is shown on the UI side?

Regards,
Steve
Steve
Top achievements
Rank 1
 answered on 27 Feb 2013
2 answers
172 views
Last week, I saw an example of the RadMenu that when you clicked on the menu, it opened up with car brands like VolksWagen, Fiat, etc.  I cannot seem to find this demo that displays the car brands so nicely...can anybody tell me where I can find that example?  Thanks!
Brett
Top achievements
Rank 1
 answered on 27 Feb 2013
1 answer
247 views
Hi I am setting the properties of RadDatepicker as follows:

 <telerik:RadDatePicker ID="rdpCommunicationDate" runat="server" SelectedDate='<%# rdpCommunicationDate.MaxDate.AddDays(-1) %>'
                                EnableEmbeddedScripts="true" >
                                <DateInput MinDate="01/01/1000" MaxDate="12/31/3000" DisplayDateFormat="MMMM dd yyyy" DateFormat="dd/MM/yyyy" EmptyMessage="YYYY MM DD" >
                                </DateInput>
                                <ClientEvents  OnDateSelected="OnDateSelected">
                        </ClientEvents>
                            </telerik:RadDatePicker>


when I enter the date in format "yyyy MM dd" it is always taken as yyyy dd MM. Unless the month part is greater than 12 for example:
2000 01 23.
MasterChiefMasterChef
Top achievements
Rank 2
 answered on 27 Feb 2013
4 answers
290 views
I'm using a RadComboBox.  I have AllowCustomText = "true" and Filter = "Contains" as shown below:

<telerik:RadComboBox runat="server"
    AllowCustomText="True" Filter="Contains"
    OnClientTextChange="rcbName_ClientTextChange"
    OnClientSelectedIndexChanged="rcbName_ClientSelectedIndexChanged">
    <Items>
        <telerik:RadComboBoxItem runat="server" Text="Test"/>
        <telerik:RadComboBoxItem runat="server" Text="Tests"/>
        <telerik:RadComboBoxItem runat="server" Text="test"/>
        <telerik:RadComboBoxItem runat="server" Text="other"/>
    </Items>
</telerik:RadComboBox>

I'm interested in the behavior that occurs when the user does not select an item, but presses the Enter key.

Initially, I found that when the user types text, but doesn't select an item from the matching list, then presses Enter, it raises the OnClientSelectedIndexChanged event.  That's not a problem for my situation.  However, I noticed that when the user types text that exactly matches an item from the matching list (complete word or phrase and case-sensitive), but doesn't select the matching item from the matching list, then presses Enter the OnClientSelectedIndexChanged event is not raised. This caused a problem for my situation.

I then added the OnClientTextChange event handler.  Now if the user enters text that exactly matches an item in the list, doesn't select the item, then presses enter, the OnClientTextChange event will be raised.  But if the user enters text that doesn't exactly match, then doesn't select an item, then presses enter, the OnClientSelectedIndexChanged event is still raised.

To test the above situation, just add the following javascript:

function rcbName_ClientTextChange(sender, eventArgs)
{
    alert("ClientTextChange");
}
 
function rcbName_ClientSelectedIndexChanged(sender, eventArgs)
{
    alert("ClientSelectedIndexChanged");
}

You'll find that if you type "tes", then press Enter, the ClientSelectedIndexChanged event will be raised.  If you type "test", then press Enter, the ClientTextChange event will be raised.

Raising the OnClientSelectedIndexChanged event when the user doesn't make a selection is an interesting occurrence itself.  The event not being raised if the text exactly matches an item is equally interesting.  Since this is all interesting, my question is, is this behavior by design?  Is it not likely to change in future releases?  I can make it work fine.  I just wanted to make sure that's the way Telerik intended and to let other users know this works this way.

Thanks!


Jon Shipman
Top achievements
Rank 1
 answered on 27 Feb 2013
0 answers
62 views
Hi,
      When give the telerik forum URL its gives the following error. i used IE 8 in XP os. This is for your kind information.

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; InfoPath.2; .NET CLR 2.0.50727)
Timestamp: Sun, 27 Jan 2013 17:13:36 UTC


Message: HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917)
Line: 0
Char: 0
Code: 0
URI: http://www.telerik.com/community/forums/aspnet-ajax.aspx


Message: 'loginUrl' is undefined
Line: 9975
Char: 5
Code: 0
URI: http://www.telerik.com/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ctl00_RadScriptManager_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a89093640-ae6b-44c3-b8ea-010c934f8924%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%3aen-US%3a6aabe639-e731-432d-8e00-1a2e36f6eee0%3a16e4e7cd%3af7645509%3a22a6274a%3bTelerik.WebSite.SharedControls%2c+Version%3d1.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3dnull%3aen-US%3a19ee69a5-7154-4c1a-9de4-3abe4a760f83%3aa93acafa%3bTelerik.Web.UI%2c+Version%3d2012.2.912.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a6aabe639-e731-432d-8e00-1a2e36f6eee0%3a24ee1bba%3ae330518b%3a1e771326%3a8e6f0d33%3a58366029%3bTelerik.WebSite.SharedControls%2c+Version%3d1.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3dnull%3aen-US%3a19ee69a5-7154-4c1a-9de4-3abe4a760f83%3af08febbe


Dhamodharan
Top achievements
Rank 1
 asked on 27 Feb 2013
1 answer
160 views
Hello,
I am using a RadChart like this:
<telerik:RadChart ID="rcServiceChart" runat="server"
   SeriesOrientation="Horizontal"
   DefaultType="StackedBar100"
   Skin="Hay"
   Width="500px"
   Height="100px"
   AutoLayout="true">
   <ChartTitle Visible="false" />
   <Legend Visible="false" />
</telerik:RadChart>

I would like to hide
1) The numbers that appear on the bar (solved this)
2) The Y axis label (solved this)
3) The X axis label

UPDATE: I don't think its a X axis label. How can I hide this "1" on my chart?

p.s. I would also like the plot area to fill the chart area too.

Thanks in advance,
Matt

Solved by this answer.
Matt
Top achievements
Rank 1
 answered on 27 Feb 2013
4 answers
200 views
Hi

The Upload function of RadEditor Image Manager is a great convenience feature for developers, but I would like to simplify the upload dialog a little for my inexperienced users by showing a single select box in the first instance, instead of the three that show by default. How can I best do this?

There doesn't seem to be a property of the image manager for this.

Thanks

Clive

Q2 2010 version of the controls on asp.net 4.0
Clive Hoggar
Top achievements
Rank 1
 answered on 27 Feb 2013
3 answers
137 views
There is a RADDatePicker control inside the RADGRID and when they are editing the field, Invalid date error msg should be thrown and the Invalid date should persist with the error msg. With the help of hidden control, I got the Invalid date and displaying Invalid date error message but the wrong date wipes away. Is there a property to display the wrong date.
Eyup
Telerik team
 answered on 27 Feb 2013
1 answer
104 views
Hello Sir/Madam,

I m using rad grid with item command and selected index changed events now i want whenever i use item commad current row color should be changed as appear in selected index change event


                                                                                           or


or 2nd possibilty is also here that is i m using three rad grids in which 1st grid id is grd_optnandprcng so that whenever i fired item command of fthis grid then second grid data(id="Req_items") and Third grid data(id="opt_items") should not refresh or ajax refersh image should not appear with it but on selected index changed it should be refresh .

 <telerik:AjaxSetting AjaxControlID="grd_optnandprcng">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="Req_items"></telerik:AjaxUpdatedControl>
                    <telerik:AjaxUpdatedControl ControlID="opt_items"></telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>

so please tell me solution of both possibility.

Thanks
Eyup
Telerik team
 answered on 27 Feb 2013
1 answer
97 views

I need to create the following page layout with Splitters and Panes; the entire browser window should be occupied with the splitter and must grow and shrink with the browser. The page would have 3 main sections: top, middle, bottom. The top section will have a menu, the bottom section would have a table or a DocZone. The middle part is divided into two sections, left and right with a Splitbar to be able to move it to the right or left. Here is what’s really important:

  1. The 3 main sections must occupy the entire browser page
  2. When the page grows or shrinks, only the middle part would grow/shrink with it

 

Your help with this layout would be much appreciated,
-Sam

Dobromir
Telerik team
 answered on 27 Feb 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?