Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
54 views
I've got a web page with a script that opens  radwindows for me with an onclose .

       

function openPatientDemoWin(url, title, AddOnClose, OnCloseMethod) {
    var Wnd = radopen(url, 'frank');
    Wnd.set_title(title);
    Wnd.set_behaviors(Telerik.Web.UI.WindowBehaviors.Move + Telerik.Web.UI.WindowBehaviors.Close + Telerik.Web.UI.WindowBehaviors.Resize);
    Wnd.set_autoSize(true);
    Wnd.set_modal(true);
    Wnd.set_visibleStatusbar(false);
     
    Wnd.set_destroyOnClose(true);
    if (AddOnClose == '1') {
 
        Wnd.add_close(OnCloseMethod);
    }
    return false;
}

 

 

 


The radwindow has a radgrid with a radmenu. 

this is the radmenu in the radgrid, the items are added in the codebehind so I can attach attributes to them

<telerik:RadMenu ID="RadMenu1" runat="server"
OnClientItemClicked="RadMenu1_onClicked"
>
<Items>
<telerik:RadMenuItem ImageUrl="/images/icon_actionmenu.gif" BorderStyle="None" BorderWidth="0px" >
<GroupSettings ExpandDirection="Right" ></GroupSettings>
<Items>
</Items>
</telerik:RadMenuItem>
</Items>
</telerik:RadMenu>






These are the scripts on the radwindow that close and pass back arguments for me
<script type="text/javascript">
     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.radWindow) oWindow = window.frameElement.radWindow; //IE (and Moz as well)
 
         return oWindow;
     }
 
     function RadMenu1_onClicked(sender, args) {
         var item = args.get_item();
         var MenuItem = item.get_attributes().getAttribute("MenuItem");
         var DueDateID = item.get_attributes().getAttribute("DueDateID");
 
         var oArg = new Object();
         oArg.MenuItem = MenuItem;
         oArg.DueDateID = DueDateID;
         var oWnd = GetRadWindow();
         oWnd.close(oArg);
     }
      
 
 </script>

this is the script on the parent window that handles the onclose method
function Archive_OnClose(oWnd, args) {
    debugger;
    var arg = args.get_argument();
    debugger;
    if (arg) {
        switch (arg.MenuItem) {
            case '17P':
                 
                break;
            case 'RISK':
 
                break;
            case 'PH':
                debugger;
                window.location = '/OB/OBAssessmentsList.aspx?AM=wfe34tgsdge4&ADD=' + arg.DueDateID;
                debugger;
                break;
        }
 
 
 
    }
    debugger;
}

the problem I am having is after the Archive_OnClose finishes I am getting the following error and am not sure how to get rid of it. By the time this error occurs, the radwindow has already closed and the onclose method has already fired so not sure why it is happening. All the debuggers have been hit
this._renderAccessKey();
b.RadMenu._updateChildrenPositionClass(this.get_parent());
b.RadMenu._updateChildrenPositionClass(this);
},get_linkElement:function(){if(!this._linkElement){this._linkElement=$telerik.getFirstChildByTagName(this.get_element(),"a",0);

the error is on the last line and its
Microsoft JScript runtime error: '$telerik' is undefined

Kate
Telerik team
 answered on 20 Aug 2012
1 answer
142 views
Hi,
I need to group the data in RadGrid by ProjectNo. For data with same ProjectNo, ProjectNo will appear once in multiple row and there is no line in ProjectNo column until next different ProjectNo like below.

http://i1039.photobucket.com/albums/a477/johnsonlim026/GridSorting.jpg

I have search online and go through the demo but no solution on this.
Can someone help?
Andrey
Telerik team
 answered on 20 Aug 2012
3 answers
172 views
Hi,

when you click Barcelona in the left ListBox of the telerik demos - ListBox - server side events
the event SelectedIndexChanged is fired and in the Properties RadListBox1.SelectedIndex
and RadListBox1.SelectedValue
are the actual values.

But in "multiple select" scenario the SelectedIndex and SelectedValue do not change (sometimes).
Hold CTRL and select Bonn and Boston. You can see that the server event is fired, but the text is still Barcelona
and the index does not change.

Sometimes the correct values are fired, but not with every click holding the CTRL key down to select multiple values.

cheers
Hubert
Nencho
Telerik team
 answered on 20 Aug 2012
0 answers
55 views

I Have a grid ( "gridA" ), In Nested View has another Grid ( "gridB" )

In "gridB" has a RadMenu and when the the rad menu is clicked there is a js function to be called see below code sample.

 function missionGridRadMenuOnClick(rowIndex, missionGridId) {
            var grid = $find(missionGridId);
 
            var masterTableView = grid.get_masterTableView(); 

Last line of above code get following error.  
"Object doesn't support property or method 'get_masterTableView'"

I have attached the grid properties when debugging with IE. when debugging also I cant see the 
get_masterTableView(). 

Anybody have an idea about this issue. the main different I see is this grid in a NestedView of another grid.

Thank you in advance,
Dinesh
Top achievements
Rank 1
 asked on 20 Aug 2012
0 answers
65 views
Helo to Telerik Team  .  I need a help . I have  some bill no.s in grid corresponding to those Bill number i have some data
I wants to show in grid like. plz see attached printshot
Jack
Top achievements
Rank 1
 asked on 20 Aug 2012
1 answer
88 views
Hi All,


I am using radGiid to display my data in a tabular form. This data is a registration list, where by each registration could be an individual registration or group registration. The form allows the user to update the payment details of each record, 

One of the Columns displays the amount of each registration. Another template column that has and updateButton; when click it displays the members of the group in a checkboxList control that allows the user to select/deselect each members, 

I bounded the data of the checkboxList inside my radGrid ItemCommand.

My problem is I want to change the amount column in accordance of how many members being selected in the group.

If anyone has an idea on how to implement this. Please share..
Tsvetina
Telerik team
 answered on 20 Aug 2012
1 answer
134 views
I have one delete button in RadGrid as below. After I clicking the button and pop up a confirm windows, I found the margin space between text and button is too small, I try to adjust it by modify the property ConfirmText as "Do you confirm to delete the record?<br/><br/>", but it cannot work. I don't find a property such as ConfirmHTML. Is there a way to implement it?

 <telerik:GridButtonColumn ConfirmText="Do you confirm to delete the record?" ConfirmDialogType="RadWindow"
                                ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" ConfirmDialogHeight="150px"
                                HeaderText="Delete" ConfirmDialogWidth="320px" ItemStyle-Width="30px">
                                <ItemStyle HorizontalAlign="Center" />
                            </telerik:GridButtonColumn>


Shinu
Top achievements
Rank 2
 answered on 20 Aug 2012
1 answer
126 views
Hi,

I am new to ASP.net AJAX RadGrid View control. Can you please help me to developethe Grid control with the below functonalities.
  1. Bind the grid from database dynamically and create columns also dynamically without SQLDatasource.
  2. When the user double click on the row it should editable with the corresponding control(Datepicker,Dropdown,Numeric text
  3. box) based on the column types inline edit mode.
  4. When the user Insert/update and deletethen it should be update to database.
  5. It also should allow the user to create new rocords

If it is possible to get any working sample it would be a great help for me.


Regards,
Kannan S
Andrey
Telerik team
 answered on 20 Aug 2012
1 answer
128 views
How to change the loading icon?
Princy
Top achievements
Rank 2
 answered on 20 Aug 2012
1 answer
66 views
Hi,
We have purchased q3 2009 and q2 2012 version.

In Q3 2009 version we have use telerik grid having inline edit option.Assume we have 2 column compnay name and contact description
When i click edit button 2 column as attached in image show.

My requirement is i need to append * column in company name indicating the end user as mandatory column .
During my insert action i am to handle it but in page load i need to show

if i give compnay name *  in label this * appear in grid column also.which i dont want * to display in grid header

how can i achive it

regards
sanjay
Shinu
Top achievements
Rank 2
 answered on 20 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?