Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
300 views
My problem is my call to ajaxRequestWithTarget is doing a repost when I expect an ajax update.

I have a master page containing RadAjaxManager, and a content page containing two user controls, uc1 and uc2.

uc1 has a ajax-enabled asp:Button and a text box inside an asp:Panel. Clicking on uc1.Button1 does the right thing, an ajax update without a full page refresh. My Page_Load:

protected void Page_Load(object sender, EventArgs e) 
{ 
  RadAjaxManager radAjaxManager = RadAjaxManager.GetCurrent(Page); 
  radAjaxManager.AjaxSettings.AddAjaxSetting(uc1.FindControl("Button1"),  uc1.FindControl("Panel1"), null); 
} 


I have a list box in uc2. When an item in uc2.List1 is clicked, I want to simulate clicking uc1.Button1. My javascript code looks something like:

var ajaxManager = $find('<%= RadAjaxManager.GetCurrent(Page).ClientID %>'); 
var buttonID = '<%= GetUc1Control("Button1").UniqueID %>'; 
ajaxManager.ajaxRequestWithTarget(buttonID, ''); 


The call to ajaxRequestWithTarget is correctly updating the content of uc1, but it is causing a refresh of the entire page. How do I fix this problem?
Keith Morgan
Top achievements
Rank 1
 answered on 01 Jun 2010
1 answer
82 views
Hi,

I am getting javacript errors while hovering over disabled radcomboboxes in a user control. I am using this usercontrol to display when I load radgrid edit template.
I am enabling and disabling combos based on values in edited row in pageload of usercontrol.ascx.cs and on moving the mouse over the disabled combos, I get error "Value must be a DOM element"

I did searched in telerik forums and located a post discussing similar issue and following solution was suggested there,
<script type="text/javascript" language="Javascript">  
        var oldDomEvent = Sys.UI.DomEvent;  
        Sys.UI.DomEvent = function(rawEvent) {  
            if (rawEvent.srcElement && typeof (rawEvent.srcElement.getClientRects) == "undefined") return;  
            var evt = new oldDomEvent(rawEvent); for (var o in evt) this[o] = evt[o];  
        }  
        for (var o in oldDomEvent) Sys.UI.DomEvent[o] = oldDomEvent[o];     
    </script> 
 This solution do prevent error on mouse hover but throws other javascript errors ( error with browser event handlers or similar) when I perform update or close usercontrol or click on edit command of another row.
Therefore , I need a better and stable solution than the script above to fix my error when I hover over disabled radcomboboxes.

Thanks

Simon
Telerik team
 answered on 01 Jun 2010
2 answers
368 views

Respected Developers,

I am looking for a way to disable the AutoComplete feature of a RadDateInput control.  I can't achieve it.  this is what I have tried:

 

<telerik:RadDateInput runat="server"
ID="DatePlanned"
AutoPostBack="false"
autocompletetype="Disabled"
OnTextChanged="LineDetailDatePlanned_TextChanged"
DateFormat="MM/dd/yyyy"
TabIndex="6"
style="width:105px;height:22px;border: 1px solid #80A0C0;font-family:Arial;font-size:10pt;padding:2px;color:Black;text-align:center;"
IncrementSettings-InterceptArrowKeys="false"
IncrementSettings-InterceptMouseWheel="false" />

 

 


Your help will be appreciatted.

Eduardo Dulanto

 

Eduardo Dulanto
Top achievements
Rank 1
 answered on 01 Jun 2010
1 answer
125 views
Hi there, I have a RadGrid with an Item tempalte


<telerik:RadGrid.... >
<ItemTemplate>
.....
</ItemTemplate>
</telerik:RadGrid>

I'd like to filter the items in my item template, based on a value selected in a treeview. In this case the treeview contains, property types - bungalow, house etc, and the itemtemplate contains a table displaying the various information on a property.

Is this possible ?

In the selectednodechanged event i'm attempting to apply the filtering there.
MyGrid.MasterTableView.FilterExpression = ...

But it can't find the field i'm specifying. Do i have to use a column bound to this datafield in order to filter ?

Pavlina
Telerik team
 answered on 01 Jun 2010
2 answers
83 views
Hello,

I have issue with RadEditor in Opera browser. When I press 'enter' button in Design mode and then switch to HTML and again back to Design, new line is lost. The same is when I do the above and press e.g. Save button (RadEditor inside FormView bound to some db field), new line is lost.

This can be easily reproduced here:

http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx

press enter with cursor placed after 'tons of features:'
switch to HTML and back to design

I tried it with Opera 10.53 and RadControls Q1 2010

I also tried to switch NewLineBr=true/false but no success.
Is there any workaround for this?

Thanks,
Robert
Robert
Top achievements
Rank 2
 answered on 01 Jun 2010
4 answers
370 views
Hello,

I use a RadCalendar. My problem is the following : when the user select a day, I want to deselect all the selected days and select all the week.
So, I use the following parameters : 

UseColumnHeadersAsSelectors

="false" EnableViewSelector="false" UseRowHeadersAsSelectors="true"

For the unselection, it's not a problem, I use the methods unselectedDates and get_selectedDates (for the events OnDateClickand OnRowHeaderClick).

But I don't think a easy to select all the week :
I have 2 ideas to do that :
- Obtains the row (args.get_renderDay().DayRow) and call the method used for a row header click, but I don't see how to call it.
- create a new Date javascript object based on the triplet returned by args.get_renderDay().get_date() and, using the getDay method, manually compute the day for the monday, the tuesday... But I think this way is not the best to do that. 
What's the good solution ?

Thank you in advance,

Christophe.
Maria Ilieva
Telerik team
 answered on 01 Jun 2010
6 answers
191 views
I have noticed a problem with the date picker where it highlights extra dates sporadically between activation and date selection.  It's almost like the calendar hover style gets stuck on sometimes.

You should be able to reproduce the problem even on the Telerik demo for this control at the following link:

http://demos.telerik.com/aspnet-ajax/calendar/examples/datepicker/custompopup/defaultcs.aspx

Just click the button and select a date multiple times.  I'm not sure precisely what is triggering it because it doesn't happen all the time.  I've attached an image with the problem.

Thanks,
Dave



Maria Ilieva
Telerik team
 answered on 01 Jun 2010
1 answer
165 views
Hi,

I am having a page which displays user agreements(pdf format). I use 'embed' tag for this. 
<embed id="embAgreement" runat="server" Width="625" Height="400"></embed>

I need to display an alert window above this based on some conditions. But my window tilebar and border is not visible when it is displayed above this embed tag object. The model behaviour is also not working properly.

I tried even specifying VisibleTitlebar="true" property and Overlay="true" explicitly. But it also didnt help me out.

 I am using Telerik version Q2 2009. But in other places the rad window behaves as expected.

If anybody knows how to solve this issue please help me.

Thanks in advance

 

 

 

 

 

Fiko
Telerik team
 answered on 01 Jun 2010
2 answers
177 views
Hello,

I am trying to figure out why the upload and delete buttons appear disabled(greyed out) on my FileExplorer. I am using a custom file content provider.I have set up the upload and delete paths in the code behind. I have also enabled the viewstate. Can someone please advise as to what else needs to be set for the buttons to be enabled.

Thanks.
Fiko
Telerik team
 answered on 01 Jun 2010
4 answers
125 views
Hi,

Does anyone know how to label the X, Y axis in the chart ? What I want to achieve is to have a line graph with X and Y axis label as below.

Y
|
|
|
|_________________ X

My dll version is 2009.3.1314.35

Thanks,
Ves
Telerik team
 answered on 01 Jun 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?