Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
175 views
What's the best way to realize a two way binding between two RadComboBox's?

I have a user control wit only a RadComboBox that get filled with company names and companyID's I have two fill() methods. Both sets the companyId as value and one with the company name as text and the other the companyID as text.
I use two user controls in a Edit-FormTemplate van the RadGrid. setting them in ItemCreate event - One shoving the company name and the other shoving the companyID,. They are both set to the same SelectedIndexChanged evnt.

In this SelectedIndexChanged I want to set the Selected value of both when the event is fired. But how do find the Usercontrols?

I tried various code snippert but I can'get it to work, so as this:
var temp = (sender as RadComboBox).NamingContainer.NamingContainer;
DealerComboBox combo = (DealerComboBox)temp.FindControl("DealerComboBoxCodeCode");

Please help

Anders Pedersen

Nencho
Telerik team
 answered on 21 Aug 2013
5 answers
351 views
By using this code image is not zoom as per provided value.But in image editor zoom value displayed as 40.
how can i zoom the image on reset function using java script.
I used this below code:

script:
function OnClientCommandExecuted(imageEditor, args) {
if (args.get_commandName() == "Reset") {
            imageEditor._zoomImage(40);
  }
}
Aspx:
  <telerik:RadImageEditor ID="rieControl" runat="server"
                        OnClientLoad="OnClientLoad" OnClientCommandExecuted="OnClientCommandExecuted">
  </telerik:RadImageEditor>
Arron
Top achievements
Rank 1
 answered on 21 Aug 2013
1 answer
149 views
I am using a RadWindow (which is being called from a parent window as a pop up) inside a aspx page.
Inside the rad window i have a Rad Text box and a Rad DateTime picker.
Refresh button and close button is Enabled for the rad window.

the radcontrols are populated to default values at the page load time.
Now if i select a date from date time picker and enter a number in the text box and click on the refresh button the values inside the text box and the date time picker remains what i have entered and selected. It should be defaulted back to the original values.

However this is happening only in Mozilla Firefox but this works fine in IE and Chrome.

Does anyone know what could be the cause or is that a bug in Firefox.

Marin Bratanov
Telerik team
 answered on 21 Aug 2013
4 answers
325 views
Hi,

In my application I have the requirement that users can rotate an inserted image. Can I achieve this functionality with the RadImageEditor? If yes, can you give me some hint how to implement this function?

Thank you
Arron
Top achievements
Rank 1
 answered on 21 Aug 2013
6 answers
123 views
 I need some spacing between select and clear buttons.

<td style="width: 350px">   
                                            <telerik:RadUpload ID="ruUploadFile" runat="server" AllowedFileExtensions=".txt,.xml"
                                                MaxFileInputsCount="1" ControlObjectsVisibility="ClearButtons" Width="345px"
                                                MaxFileSize="1000000000" Visible="false">
                                            </telerik:RadUpload>
 </td>
I attached the auto generated code also
Peter Filipov
Telerik team
 answered on 21 Aug 2013
3 answers
95 views

Hello,

    I have a user control and a hyper link which opens a radwindow and it contatins a grid to add and remove rows and the parent page has multiple user controls I need to call an event in another user control for any changes in radwindiw aspx page 's radgrid is this possible ?

 

Thank you

Sr

Eyup
Telerik team
 answered on 21 Aug 2013
3 answers
567 views
Hi Team, 
I have a form with a radgrid and two buttons viz. Enable and Disable.
When I click Disable, grid should get disabled with its paging, sorting, filtering and every property disabled.
When I click Enable, grid should get enabled with all its properties enabled.

I tried what has been said in this link.
But this link shows a way only to disable the grid from client side script. For enabling the grid, I need to fire the AjaxRequest event which I don't want to.
Also, the paging property does not get disabled.
I can still change the page index or page size, which causes postback and enables the grid again.

Could you please help me to enable and disable the grid from client side??
Any help appreciated.

Thanks,
Lok..
Konstantin Dikov
Telerik team
 answered on 21 Aug 2013
1 answer
94 views

I am able to edit only the last row in a radgrid.When I select any other row ..it throws an error..

"There was a problem extracting DataKeyValues from the DataSource. Please ensure that DataKeyNames are specified correctly and all fields specified exist in the DataSource."

All the datakeynames are defined, still getting the above error.

Did any one faced this problem..If I m able to edit one row why not others..please suggest.

Thanks

Jayesh Goyani
Top achievements
Rank 2
 answered on 21 Aug 2013
1 answer
102 views
Hello, I am facing the following problem:
some time ago to generate pdf made ​​from a Report was fast and normal, however now the same PDF with the same code takes about 5 minutes for the file generation can not identify What did this slowly leaving this generation, because in project (Location on my machine) generation is instantaneous, however when it is updated on the server (which by the way is much faster) application arrives to give "time out" so much time it takes to generate.
Slav
Telerik team
 answered on 21 Aug 2013
3 answers
255 views

I have a RadDropDownTree on my page as follows:

<telerik:RadDropDownTree ID="Tree1" runat="server" ButtonSettings-ShowClear="true" OnClientEntryAdded="EntryAdded" AutoPostBack="true" DefaultMessage="--Select--" DefaultValue="-1" OnEntryAdded="Tree1_EntryAdded">
    <DropDownSettings AutoWidth="Enabled" CssClass="raddropdowntree" />
</telerik:RadDropDownTree>

The EntryAdded client side event is used to collapse the dropdown upon selection and is as follows:

function EntryAdded(sender, eventArgs) {
    sender.closeDropDown();
    return true;
}

The EntryAdded server side event is currently blank.

My problem is that the server side event EntryAdded is not fired if I specify the OnClientEntryAdded client side event. Postback happens upon selection of any item in the dropdowntree, Page_Load is fired, but then the control returns to the page without invoking the EntryAdded event. Another issue is that after postback, my selected value is cleared and it goes back to the default value of "--Select--".

I also tried replacing the declaration with  OnClientEntryAdded="if(!EntryAdded()) { return false; }"  but this returns a JavaScript error, saying if is unexpected.

If I remove the client side event, the EntryAdded server side event is invoked and the selected value of the dropdowntree is also retained. 

The entire thing is in a RadAjaxPanel, if it helps.


Please advise. Thanks in advance.


Peter Filipov
Telerik team
 answered on 21 Aug 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?