Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
92 views

Below code is placed in page  designer (page level).

<

 

telerik:RadScriptBlock runat="server" ID="RadScriptBlock2">

 

 

 

function

 

openFormReserve() {

 

 

    var dock = $find("<%= RadDock3.ClientID %>");

 

 

    // Center the RadDock on the screen

 

 

    var viewPort = $telerik.getViewPortSize();

 

 

    var xPos = Math.round((viewPort.width - parseInt(dock.get_width())) / 2);

 

 

    var yPos = Math.round((viewPort.height - parseInt(dock.get_height())) / 2);

 

    $telerik.setLocation(dock.get_element(), { x: xPos, y: yPos });

    dock.set_closed(

false);

 

 

    //var descriptionTextBox = $get('<%= ComboFacility.ClientID %>');

 

    Sys.Application.remove_load(openFormReserve);


}

 

 

</telerik:RadScriptBlock>


If I placed this javascript function in Javascript file (Sample.js) and assing link to this js file.

During executing script, the first line of javascript function get the null value.
var dock = $find("<%= RadDock3.ClientID %>");

Main reason is I do not want to place this javascript function at page level, and placing it js file. then How can i get the radcontrol object in javascript function.

Please do provide small sample example.

Thanks and Regards


 

Slav
Telerik team
 answered on 26 Jul 2011
2 answers
87 views
I've made a UserControl containing a RadTreeView; when it is embeded in a webform it works perfectly. But when I embed my userControl in a RadWindow the dotted lines that appear when you drag'n drop nodes disappear (when

EnableDragAndDropBetweenNodes=true)

 

 

!
Do you have an idea of what could cause that problem?

jc mag
Top achievements
Rank 1
 answered on 26 Jul 2011
3 answers
226 views
Is there a way to automatically save the file when the save command is clicked without showing the dialog?  Possibly the best thing would be for me to override the behaviour of some of the commands.  Is this possible?

On a side note:  I get a javascript error when I start typing in the crop width or height dialog.  I was trying to type 100. I selected the current value in the height textbox, type the 1, and it gets the error.
Niko
Telerik team
 answered on 26 Jul 2011
1 answer
86 views
I use Q2 version new skins like

<

 

 

telerik:RadTabStrip ID="RadTabStrip1" runat="server" Skin="Office2010Silver" MultiPageID="MulProfDesPage"

 

 

 

SelectedIndex="0"

 

 

 

ShowBaseLine="True">

 

 

 

<Tabs>

 

 

 

<telerik:RadTab Text="Create Profile" Selected="True">

 

 

 

</telerik:RadTab>

 

 

 

<telerik:RadTab Text="Edit Profile">

 

 

 

</telerik:RadTab>

 

 

 

<telerik:RadTab Text="Inherit Profile">

 

 

 

</telerik:RadTab>

 

 

 

 

 

</Tabs>

 

 

 

</telerik:RadTabStrip>

It shows error page - here I have attach......
How to clear this?

 

Bozhidar
Telerik team
 answered on 26 Jul 2011
3 answers
197 views
Hi Support,
      I'm currently doing a popup for my data selection, this popup is a usercontrol with radgrid inside,
when i use this popup usercontrol inside another usercontrol , I'm encountering a problem,
On the first load / display of the popup the paging ,filtering and rowclick work well but when i press the paging button then use the filtering or the rowclick the grid not response anymore and when i try to check on the error console of the firefox I got the error tableView is null


regards,
Pavlina
Telerik team
 answered on 26 Jul 2011
1 answer
199 views
Hi, I have a RadGrid with a nested GridTableView. I am trying to hook up the OnPreRender event, but it doesn't ever seem to get called. After further experimentation, none of the events seem to be called on this object. The grid exhibits the same behaviour when removed from the AjaxManager. Do I need to do something else to hook up these events?

Thanks

ROSCO
Vasil
Telerik team
 answered on 26 Jul 2011
1 answer
74 views
Hi, I want to know if when using grouping if it is possible to change the group for an item. I have an item that has Group A in the database, but in the vb code-behind I need to change the item to Group B so it gets reported under Group B. I have tried changing the  GridItem("MyGroup").Text  in the ItemDataBound event, but the item doesn't appear under the correct group (even though the text has been changed.

Thanks.
Vasil
Telerik team
 answered on 26 Jul 2011
3 answers
228 views
Hi,
I'm using RadNumericTextBox. In a database I have a column e.g.: Preis decimal(12,2) - oracle.
How can I set in RadNumeric maxlength of digits to 12 for non-decimal digits and 2 for decimal digits?
And another question: when I set maxvalue, when user inputs more digits, the value is automatically sets to maxvalue without any question or warning. Why?
Martin
Telerik team
 answered on 26 Jul 2011
1 answer
110 views
Using this example, http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/multicolumncombo/defaultcs.aspx

How can I show the all of the columns from the selected row in the dropdown after it has been selected?

Thanks
Princy
Top achievements
Rank 2
 answered on 26 Jul 2011
1 answer
244 views
Hi all,
  I am using Rad Date Ticker and Rad Time Picker for entering date range. For 2 Rad Date Picker i used one compare validator and also use one compare validator for 2 Rad Time Picker. If i chnage any startime i got error from compare validator even if endtime is greater than starttime. For date comparison i added type as date in compare validator. But how can i configure for radtime picker?
But if i change or just select end time again error is cleared.

<telerik:RadTimePicker ID="radstarttime" runat="server"  Width="225px" >
    <TimeView CellSpacing="-1" Columns="6" Interval="00:30:00" ></TimeView>
</telerik:RadTimePicker>
<asp:RequiredFieldValidator ID="rfvStartTime" Display="Dynamic" ValidationGroup="EditValidation" SetFocusOnError="true" runat="server" ControlToValidate="radstarttime" ErrorMessage="Start Time is Mandatory!!!" Text="*" ForeColor="Red">
</asp:RequiredFieldValidator>
   
<telerik:RadTimePicker ID="radendtime" runat="server" Width="225px"
    <TimeView CellSpacing="-1" Columns="6" Interval="00:30:00"></TimeView>
</telerik:RadTimePicker>
<asp:RequiredFieldValidator ID="rfvEndTime" Display="Dynamic" ValidationGroup="EditValidation" SetFocusOnError="true" runat="server" ControlToValidate="radendtime" ErrorMessage="End Time is Mandatory!!!" Text="*" ForeColor="Red">
</asp:RequiredFieldValidator>
  
<asp:CompareValidator ID="crvEndTime" runat="server" ControlToCompare ="radstarttime" ControlToValidate ="radendtime" Operator ="GreaterThanEqual" ErrorMessage ="End Time Must be Greater than Start Time" >
</asp:CompareValidator>


Shinu
Top achievements
Rank 2
 answered on 26 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?