Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
287 views
Hello,
I  used the following script for open the radwindow from another radwindow. It is work but i want  to size(width,height) the window.
I can't unsertand how to set the size in this script.
 <telerik:RadScriptBlock runat="server" ID="test1_script">
    <script type="text/javascript">
        var test1Wnd;
        function GetRadWindow() {
            var oWindow = null;
            if (window.radWindow)
                oWindow = window.RadWindow; //Will work in Moz in all cases, including clasic dialog       
            else if (window.frameElement && window.frameElement.radWindow)
                oWindow = window.frameElement.radWindow; //IE (and Moz as well)       
            return oWindow;
        }
        function open_fromTest1() {
            var oBrowserWindow = GetRadWindow();
            if (oBrowserWindow) oBrowserWindow = oBrowserWindow.BrowserWindow;
            if (oBrowserWindow == null) {
                window.radopen("Default2.aspx" + "", "NewWindow1");
                
            }
            else {
                setTimeout(function() {
                    test1Wnd = oBrowserWindow.radopen("Default2.aspx", "NewWindow1");
                   
                }, 0);
            }
        }
    </script>
</telerik:RadScriptBlock>
and I used the RadButton:
<telerik:RadButton ID="cmdPrint" runat="server" SkinID="Button" AutoPostBack="false" Text="Print Prescription" OnClientClicked="open_fromTest1" />

I also added this: window.onresize(600, 1000);
It is not work.

Please help me as soon as possible.

Thanks and Regards
Jiten Mutum


rdmptn
Top achievements
Rank 1
 answered on 09 Apr 2012
6 answers
94 views
I currently have a popup with an Update and a Cancel button.
I would like to have 3 buttons - Update, Save and Cancel.
Save would do just that, but NOT close the popup.
This behavior is typical of many applications where Update means save+close and Save means save+leave-open.

How would go about implementing this Save functionality for my popup?

Thanks

Jim
Tsvetina
Telerik team
 answered on 09 Apr 2012
2 answers
169 views
Hi All,

We are having some difficulties on clearing RadDatePicker selected values. We have multiple RadDatePicker on our page and we want to clear its selected date to NULL or empty its input box, we already tried filtering RadDatePicker, DatePickingInput and RadDateInput with no success.

"No problem on JavaScript but we need to do it on server side"

Sample Code:

public void ResetFormControlValue(Control parent)
{
    foreach (Control c in parent.Controls)
    {
        if (c.Controls.Count > 0)
        {
            ResetFormControlValue(c);
        }
        else
        {
            switch (c.GetType().ToString())
            {
                case "Telerik.Web.UI.RadNumericTextBox":
                    break;
                case "Telerik.Web.UI.RadTextBox":
                    break;
 
                case "Telerik.Web.UI.DatePickingInput": // Clear all RadDatePicker
                    ((RadDateInput)c).Clear();
                    break;
            }
        }
    }
}

Thanks for any help!


Renan
Top achievements
Rank 1
 answered on 09 Apr 2012
1 answer
176 views
Hi
How can I use RadDataPager with AspGridView?
Shinu
Top achievements
Rank 2
 answered on 09 Apr 2012
1 answer
165 views
Hello telerik .

I'm looking for a way for adding grid row dynamically.

I don't want to use any datasource for adding  row.

I woud like to finding solution likes combobox or listview control style.

Is there a other way?
Shinu
Top achievements
Rank 2
 answered on 09 Apr 2012
3 answers
118 views
Hi,
Thanks for your attention,I am now getting a problem with radgrid,the requirements : I use the method to keep the checkbox state,that is the selected rows state,while paging.this method can reference the url:http://www.telerik.com/help/aspnet-ajax/grid-persist-selected-rows-client-sorting-paging-grouping-filtering.html, but now,I want to the other radgrid named selectedItems,can record the former radgrid's selected rows at the same time,for example,when you selected one row of the former radgrid,the selectedItems radgrid will add the selected row;when the user cancel selected row,the selectedItems will remove the row;when the user select the all selected button(in the header of the grid which can control the current page's rows),the selectedItems radgrid control will add the whole selected rows in time,what should I do now?another question is,if the former radgrid contans [ "id","name""sex"],but the selectedItems contains the["id","name","address"],here,we suppose the id is the keyname,and an item contains fields:["id","name","sex","address"],
the former radgrid control's record :

          id         name     sex
   '1001'  'Tony' 'male'
     '1002 '    'Suny'     'female'

now,When I select the fist row,id is '1001',then the following selectedItems will add the row:

         id          name      address
   '1001'  'Tony'  'Shanghai,China'

of couse,when I re-select the former radgrid's row,with the id is '1001' ,the selectedItems will remove it accordingly.Please had better not use the session,if you think the session is available,please account for that,I am a rookie,Thanks!

omer
Top achievements
Rank 1
 answered on 08 Apr 2012
1 answer
295 views
in the editform, I have a textbox that allow user input double and I have RadInputManager with NumericTextBoxSetting set to Type="Number" attached to that textbox.

now when I bring up the editform to edit existing record, the number 1628.87 is automatically format to 1,628.87, now when I click update, the method UpdateValues in method xxx_UpdateCommand throws exception:"1,628.87 is not a valid value for Double"

is this a bug? Thanks.
Henry
Top achievements
Rank 1
 answered on 08 Apr 2012
2 answers
115 views
Hello ,
I use RadNotification control to notify my users about some new events that happens on server.
Everything is works fine , but now I have some new scenario  : should be notification even if the browser is minimized ,
I can use java script timer  and open new window , but i want to use the RadNotification control.

Any suggestion for me ?
Thank you.

dima kramskoy
Top achievements
Rank 1
 answered on 08 Apr 2012
2 answers
89 views
when in edit or add new record form, how can I set the focus to a particular textbox?

thanks.
Henry
Top achievements
Rank 1
 answered on 08 Apr 2012
3 answers
87 views
three columns in the grid, I want to the aggregate value in the third column = sum(first column) / sum(second column) -1, and show it in percentage. I guess this has to be done in the code behide, how to wire that?

Thanks.
Henry
Top achievements
Rank 1
 answered on 08 Apr 2012
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?