Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
98 views
Hello!

I have a LinkButton inside a RadAjaxPanel that needs to change some properties when ajax postback occurs. CssClass changes but not OnClientClick and Tooltip. So originally I set the properties like this:

lbtButton.CssClass = "Class1" 
lbtButton.ToolTip = "First Text" 
lbtButton.OnClientClick = "DoThis"

When someone clicks a submit button inside the RadAjaxPanel the code behind tries to change the properties like this:

lbtButton.CssClass = "Class2"    
lbtButton.ToolTip = "Second Text"    
lbtButton.OnClientClick = "DoThat" 

Now the CssClass updates but the OnClientClick and Tooltip properties do not. Why do they not update and what can I do to make it work?

Hope you understand what I'm asking. Any help would be appreciated.

Regards,
Markus
Iana Tsolova
Telerik team
 answered on 26 Oct 2009
3 answers
146 views
After making the clientSettings for my grid: 

 

<ClientSettings AllowRowsDragDrop="true">

 

 

<Selecting AllowRowSelect="True" EnableDragToSelectRows="False"/>

 

 

</ClientSettings>

...and then dragging a row and dropping, I receive the following error:
Unable to cast object of type 'ASP.appforms_aj_master' to type 'Telerik.Web.UI.GridTableView'.

Is there something I have missed in regards to a Master page?

Thanks

 

Pavlina
Telerik team
 answered on 26 Oct 2009
4 answers
188 views
I use radTabStrip with radMultiPage and some radPageViews for each tab.

Since I use RenderSelectedPageOnly="true" the radWindow no more opens when I click on a control which is assigned with OpenerElementID to open a radWindow.

On first start the radWindows open but frist time I change to another tab I can't open the radWindows, I think it has something to do with "RenderSelectedPageOnly", before I use the property every thing worked fine.

I also tried to add the windows dynamically on "TabClick", but it also doesn't work.

What is the problem here and how can I solve it?
Georgi Tunev
Telerik team
 answered on 26 Oct 2009
4 answers
174 views
I'm using the latest version of the controls .

Here's the setup. I have a RadFormDecorator on my Master Page and have it set to only decorate controls that within a certain zone. Now this worked on one of my pages, but on this one it didn't.

Below is the page markup:
 <div id="WebBlueZone" style="padding: 20px 5px;"
        <div style="padding-bottom: 15px; text-align: left;" class="PropertyHeaderBlueText"
            Property Inquiry 
        </div> 
        <table border="0" cellpadding="0" cellspacing="0" width="100%" class="tablePaddingAll"
            <tr> 
                <td style="width: 22%"
                    Check In Date: 
                </td> 
                <td style="width: 78%"
                    <telerik:RadDatePicker ID="dpCheckInDate" runat="server" SharedCalendarID="calShared"
                        <Calendar UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False" ViewSelectorText="x"
                        </Calendar> 
                        <DatePopupButton HoverImageUrl="" ImageUrl="" /> 
                    </telerik:RadDatePicker> 
                    <asp:RequiredFieldValidator ID="reqCheckInDate" runat="server" ControlToValidate="dpCheckInDate" 
                        Display="Dynamic" ErrorMessage="Required" ValidationGroup="SubmitInquiry"></asp:RequiredFieldValidator> 
                </td> 
            </tr> 
            <tr> 
                <td style="width: 22%"
                    Check Out Date: 
                </td> 
                <td style="width: 78%"
                    <telerik:RadDatePicker ID="dpCheckOutDate" runat="server" SharedCalendarID="calShared"
                        <Calendar UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False" ViewSelectorText="x"
                        </Calendar> 
                        <DatePopupButton HoverImageUrl="" ImageUrl="" /> 
                    </telerik:RadDatePicker> 
                    <asp:RequiredFieldValidator ID="reqCheckOutDate" runat="server" ControlToValidate="dpCheckOutDate" 
                        Display="Dynamic" ErrorMessage="Required" ValidationGroup="SubmitInquiry"></asp:RequiredFieldValidator> 
                    <asp:CompareValidator ID="cvCheckOutDate" runat="server" ControlToCompare="dpCheckInDate" 
                        ControlToValidate="dpCheckOutDate" Display="Dynamic" ErrorMessage="Check Out Date Cannot Be Before Or Same As Check In Date" 
                        Operator="GreaterThan" Type="Date" ValidationGroup="SubmitInquiry"></asp:CompareValidator> 
                </td> 
            </tr> 
            <tr> 
                <td colspan="2"
                    <asp:CheckBox ID="chkIsFlexible" runat="server" Text="Check off if your dates are flexible" 
                        TextAlign="Left" /> 
                </td> 
            </tr> 
            <tr> 
                <td style="width: 22%"
                    Number of Adults: 
                </td> 
                <td style="width: 78%"
                    <telerik:RadComboBox ID="ddlAdults" runat="server" MaxHeight="110px" Width="70px" 
                        MaxLength="10" NoWrap="True"
                        <Items> 
                            <telerik:RadComboBoxItem runat="server" Text="0" Value="0" /> 
                            <telerik:RadComboBoxItem runat="server" Text="1" Value="1" /> 
                            <telerik:RadComboBoxItem runat="server" Text="2" Value="2" /> 
                            <telerik:RadComboBoxItem runat="server" Text="3" Value="3" /> 
                            <telerik:RadComboBoxItem runat="server" Text="4" Value="4" /> 
                            <telerik:RadComboBoxItem runat="server" Text="5" Value="5" /> 
                            <telerik:RadComboBoxItem runat="server" Text="6" Value="6" /> 
                            <telerik:RadComboBoxItem runat="server" Text="7" Value="7" /> 
                            <telerik:RadComboBoxItem runat="server" Text="8" Value="8" /> 
                            <telerik:RadComboBoxItem runat="server" Text="9" Value="9" /> 
                            <telerik:RadComboBoxItem runat="server" Text="10" Value="10" /> 
                            <telerik:RadComboBoxItem runat="server" Text="11" Value="11" /> 
                            <telerik:RadComboBoxItem runat="server" Text="12" Value="12" /> 
                            <telerik:RadComboBoxItem runat="server" Text="13" Value="13" /> 
                            <telerik:RadComboBoxItem runat="server" Text="14" Value="14" /> 
                            <telerik:RadComboBoxItem runat="server" Text="15" Value="15" /> 
                            <telerik:RadComboBoxItem runat="server" Text="16" Value="16" /> 
                            <telerik:RadComboBoxItem runat="server" Text="17" Value="17" /> 
                            <telerik:RadComboBoxItem runat="server" Text="18" Value="18" /> 
                            <telerik:RadComboBoxItem runat="server" Text="19" Value="19" /> 
                            <telerik:RadComboBoxItem runat="server" Text="20" Value="20" /> 
                            <telerik:RadComboBoxItem runat="server" Text="20+" Value="21" /> 
                        </Items> 
                    </telerik:RadComboBox> 
                </td> 
            </tr> 
            <tr> 
                <td style="width: 22%"
                    Number of Children: 
                </td> 
                <td style="width: 78%"
                    <telerik:RadComboBox ID="ddlChildren" runat="server" Width="70px" MaxHeight="110px"
                        <Items> 
                            <telerik:RadComboBoxItem runat="server" Text="0" Value="0" /> 
                            <telerik:RadComboBoxItem runat="server" Text="1" Value="1" /> 
                            <telerik:RadComboBoxItem runat="server" Text="2" Value="2" /> 
                            <telerik:RadComboBoxItem runat="server" Text="3" Value="3" /> 
                            <telerik:RadComboBoxItem runat="server" Text="4" Value="4" /> 
                            <telerik:RadComboBoxItem runat="server" Text="5" Value="5" /> 
                            <telerik:RadComboBoxItem runat="server" Text="6" Value="6" /> 
                            <telerik:RadComboBoxItem runat="server" Text="7" Value="7" /> 
                            <telerik:RadComboBoxItem runat="server" Text="8" Value="8" /> 
                            <telerik:RadComboBoxItem runat="server" Text="9" Value="9" /> 
                            <telerik:RadComboBoxItem runat="server" Text="10" Value="10" /> 
                            <telerik:RadComboBoxItem runat="server" Text="11" Value="11" /> 
                            <telerik:RadComboBoxItem runat="server" Text="12" Value="12" /> 
                            <telerik:RadComboBoxItem runat="server" Text="13" Value="13" /> 
                            <telerik:RadComboBoxItem runat="server" Text="14" Value="14" /> 
                            <telerik:RadComboBoxItem runat="server" Text="15" Value="15" /> 
                            <telerik:RadComboBoxItem runat="server" Text="16" Value="16" /> 
                            <telerik:RadComboBoxItem runat="server" Text="17" Value="17" /> 
                            <telerik:RadComboBoxItem runat="server" Text="18" Value="18" /> 
                            <telerik:RadComboBoxItem runat="server" Text="19" Value="19" /> 
                            <telerik:RadComboBoxItem runat="server" Text="20" Value="20" /> 
                            <telerik:RadComboBoxItem runat="server" Text="20+" Value="21" /> 
                        </Items> 
                    </telerik:RadComboBox> 
                </td> 
            </tr> 
            <tr> 
                <td style="width: 22%"
                    Email Address: 
                </td> 
                <td style="width: 78%"
                    <telerik:RadTextBox ID="txtEmailAddress" runat="server" MaxLength="50" Width="200px"
                    </telerik:RadTextBox> 
                    <asp:RequiredFieldValidator ID="reqEmailAddress" runat="server" ControlToValidate="txtEmailAddress" 
                        Display="Dynamic" ErrorMessage="Required" ValidationGroup="SubmitInquiry"></asp:RequiredFieldValidator> 
                    <asp:RegularExpressionValidator ID="regexEmailAddress" runat="server" ControlToValidate="txtEmailAddress" 
                        Display="Dynamic" ErrorMessage="Invalid Email Address" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                        ValidationGroup="SubmitInquiry"></asp:RegularExpressionValidator> 
                </td> 
            </tr> 
            <tr> 
                <td style="width: 22%"
                    Verify Email Address: 
                </td> 
                <td style="width: 78%"
                    <telerik:RadTextBox ID="txtVerifyEmailAddress" runat="server" MaxLength="50" Width="200px"
                    </telerik:RadTextBox> 
                    <asp:CompareValidator ID="cvVerifyEmailAddress" runat="server" ControlToCompare="txtEmailAddress" 
                        ControlToValidate="txtVerifyEmailAddress" Display="Dynamic" ErrorMessage="Must Be Same As Email Address" 
                        ValidationGroup="SubmitInquiry"></asp:CompareValidator> 
                </td> 
            </tr> 
            <tr> 
                <td style="width: 22%"
                    Alternate Email Address: 
                </td> 
                <td style="width: 78%"
                    <telerik:RadTextBox ID="txtAltEmailAddress" runat="server" MaxLength="50" Width="200px"
                    </telerik:RadTextBox> 
                    <asp:RegularExpressionValidator ID="regexAltEmailAddress" runat="server" ControlToValidate="txtAltEmailAddress" 
                        Display="Dynamic" ErrorMessage="Invalid Email Address" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                        ValidationGroup="SubmitInquiry"></asp:RegularExpressionValidator> 
                </td> 
            </tr> 
            <tr> 
                <td style="width: 22%"
                    First Name: 
                </td> 
                <td style="width: 78%"
                    <telerik:RadTextBox ID="txtFirstName" runat="server" MaxLength="50" Width="200px"
                    </telerik:RadTextBox> 
                    <asp:RequiredFieldValidator ID="reqFirstName" runat="server" ControlToValidate="txtFirstName" 
                        Display="Dynamic" ErrorMessage="Required" ValidationGroup="SubmitInquiry"></asp:RequiredFieldValidator> 
                </td> 
            </tr> 
            <tr> 
                <td style="width: 22%"
                    Last Name: 
                </td> 
                <td style="width: 78%"
                    <telerik:RadTextBox ID="txtLastName" runat="server" MaxLength="50" Width="200px"
                    </telerik:RadTextBox> 
                </td> 
            </tr> 
            <tr> 
                <td style="width: 22%"
                    Address 1: 
                </td> 
                <td style="width: 78%"
                    <telerik:RadTextBox ID="txtAddress1" runat="server" MaxLength="50" Width="200px"
                    </telerik:RadTextBox> 
                </td> 
            </tr> 
            <tr> 
                <td style="width: 22%"
                    Address 2: 
                </td> 
                <td style="width: 78%"
                    <telerik:RadTextBox ID="txtAddress2" runat="server" MaxLength="50" Width="200px"
                    </telerik:RadTextBox> 
                </td> 
            </tr> 
            <tr> 
                <td style="width: 22%"
                    City: 
                </td> 
                <td style="width: 78%"
                    <telerik:RadTextBox ID="txtCity" runat="server" MaxLength="50" Width="200px"
                    </telerik:RadTextBox> 
                </td> 
            </tr> 
            <tr> 
                <td style="width: 22%"
                    State/Province: 
                </td> 
                <td style="width: 78%"
                    <telerik:RadTextBox ID="txtProvState" runat="server" MaxLength="50" Width="200px"
                    </telerik:RadTextBox> 
                </td> 
            </tr> 
            <tr> 
                <td style="width: 22%"
                    Zip/Postal Code: 
                </td> 
                <td style="width: 78%"
                    <telerik:RadTextBox ID="txtPostalZipCode" runat="server" MaxLength="50" Width="200px"
                    </telerik:RadTextBox> 
                </td> 
            </tr> 
            <tr> 
                <td style="width: 22%"
                    Country: 
                </td> 
                <td style="width: 78%"
                    <telerik:RadTextBox ID="txtCountry" runat="server" MaxLength="50" Width="200px"
                    </telerik:RadTextBox> 
                </td> 
            </tr> 
            <tr> 
                <td style="width: 22%"
                    Phone 1: 
                </td> 
                <td style="width: 78%"
                    <telerik:RadTextBox ID="txtPhone1" runat="server" MaxLength="50" Width="200px"
                    </telerik:RadTextBox> 
                </td> 
            </tr> 
            <tr> 
                <td style="width: 22%"
                    Phone 2: 
                </td> 
                <td style="width: 78%"
                    <telerik:RadTextBox ID="txtPhone2" runat="server" MaxLength="50" Width="200px"
                    </telerik:RadTextBox> 
                </td> 
            </tr> 
            <tr> 
                <td style="width: 22%"
                    Fax: 
                </td> 
                <td style="width: 78%"
                    <telerik:RadTextBox ID="txtFax" runat="server" MaxLength="50" Width="200px"
                    </telerik:RadTextBox> 
                </td> 
            </tr> 
            <tr> 
                <td style="width: 22%" valign="top"
                    Inquiry: 
                </td> 
                <td style="width: 78%" valign="top"
                    <telerik:RadTextBox ID="txtInquiry" runat="server" Height="200px" TextMode="MultiLine" 
                        Width="400px"
                    </telerik:RadTextBox> 
                </td> 
            </tr> 
            <tr> 
                <td colspan="2"
                    <asp:CheckBox ID="chkRequestReservervation" runat="server" Text="If you wish to request a reservation please check here." /> 
                </td> 
            </tr> 
            <tr> 
                <td colspan="2" style="padding-top: 10px;"
                    <asp:Button ID="btnSubmitInquiry" runat="server" Text="Submit Inquiry" ValidationGroup="SubmitInquiry" /> 
                </td> 
            </tr> 
        </table> 
    </div> 
    <telerik:RadCalendar ID="calShared" runat="server" ShowOtherMonthsDays="False" ShowRowHeaders="False" 
        UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False"
    </telerik:RadCalendar> 

Now it should be decorating the checkboxes and buttons, but for some reason it's not doing that.

Here's the FormDecorator setup on my master page:
<telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" Skin="WebBlue" DecoratedControls="Zone" 
            EnableRoundedCorners="False" DecorationZoneID="WebBlueZone" /> 

Do you notice any problem on my page that is preventing the control from being decorated?





Georgi Tunev
Telerik team
 answered on 26 Oct 2009
1 answer
248 views
Hi,
I try to Ajaxify the Subgurim GMap Control which fails.
I tryed both. Ajaxify the GMap Control and also an surrounding ASP-Panel.

The GMap Control is placed in one UserControl
The Ajax-Sender-Button in an another UserControl
The Ajaxifying works basically (The Ajax for an Label works), even The GMap recives the Ajaxmessage, but the GMap is not rendered properly anymore.
At the Subgurim - Forum there is showen an Solution:
http://de.googlemaps.subgurim.net/Foro/help-post4248.aspx#5288

They tell to set EnablePartialRendering to false.
I use the RadAjax in Version 1.8.1.0 I can not find this Property in tat version.
Do you have an Solution for my Version to disable the PartialRendering?
I Use .NET 2.0

Regards,
Kiara
Top achievements
Rank 1
 answered on 26 Oct 2009
1 answer
69 views
Hello,

When I am using check box in a server-side grid to select all rows, It selects only the rows in the first page. Why it is not selecting the other pages in the Rad Grid?

Thank You
Asok
Pavlina
Telerik team
 answered on 26 Oct 2009
2 answers
81 views
Hello,

Since start of RadControls for Ajax.net, this has not been improved, I don't know why.
It seems we still have to work in codebehind to say I don't want the Add New button, but want the command Item without using a template necessitating a large rework (not skin support in CommandItemTemplate, etc) , isn't it ?

More on command item: the various ShowExportToxxxButton are not recognised by intellisence(certainly a missing declaration) but this is not a show stopper.
What I woul expect would be to be able to write code like this:

<CommandItemSettings  RefreshText="<%$ Resources:ADNCRM,ORDER_VIEW_REFRESH %>"   
                            ShowExportToExcelButton='<%# (ShouldExport2XL) %>' /> 
                             
but Visual Studio states that this kind of binding is not ok for radGrid ?

Last point, we should not have to add again 2 lines of javascript to fix that these Export buttons should not generate a callback but a real postback. Telerik has everything to do this in background.

My pages are full of these 2 or 3 javascript patch, very uneasy to maintain!
Eliminating all these small 'logical' patches would be a target for Telerik.

Product is good but has to be improved for existing features also.

Regards

CS
CSurieux
Top achievements
Rank 2
 answered on 26 Oct 2009
2 answers
499 views
Hello,

I need to get the cell value of a grid column that I have set to false. When I make it visible true, I am getting the values. I am using the client side script to get the value when clicking the check box in the grid.

The below is the javascript function I use to ge the value

 

 

 

function getGridCheckedValues(){   
   var grid = $find("<%=RadGrid1.ClientID %>");   
   var MasterTable = grid.get_masterTableView();   
   var selectedRows = MasterTable.get_selectedItems();   
  for (var i = 0; i < selectedRows.length; i++){  
  var row = selectedRows[i];   
  var cell = MasterTable.getCellByColumnUniqueName(row, "fld_id");  
  alert(cell.innerHTML);   
 
  }  
 
   
 
}  
 
 
 

This is the code I use in the HTML. Please note the column "fld_id".

 

 

 

 

<telerik:RadGrid AllowSorting="True" ID="RadGrid1" AllowPaging="True" runat="server" Skin="Vista" 
 
 
 
GridLines="None" OnItemDataBound="RadGrid1_ItemDataBound" AutoGenerateColumns="False" 
 
 
 
ShowDesignTimeSmartTagMessage="False" Width="800" OnSortCommand="RadGrid1_SortCommand" AllowMultiRowSelection="true" 
 
 
 
OnNeedDataSource="RadGrid1_NeedDataSource" OnPageIndexChanged="RadGrid1_PageIndexChanged">  
 
 
 
<MasterTableView TableLayout="Auto" DataKeyNames="fld_id">   
 
<Columns>   
 
<telerik:GridBoundColumn DataField="fld_id" HeaderText="Id" SortExpression="fld_id" 
 
 
 
UniqueName="fld_id" ReadOnly="true" Visible="false">  
 
 
 
<HeaderStyle Width="0px" /> 
 
 
 
</telerik:GridBoundColumn> 
 
 
 
<telerik:GridClientSelectColumn UniqueName="fld_id" /> 
 
 
 
<telerik:GridBoundColumn DataField="fld_firstname" ReadOnly="True" HeaderText="<%$Resources:WSPL, FirstName %>" 
 
 
 
SortExpression="fld_firstname" UniqueName="fld_firstname">  
 
 
 
<HeaderStyle Width="150px" /> 
 
 
 
<ItemStyle Width="150px" /> 
 
 
 
</telerik:GridBoundColumn>   
 
<telerik:GridBoundColumn DataField="fld_lastname"   
 
ReadOnly="True" HeaderText="<%$Resources:WSPL, LastName %>" UniqueName="fld_lastname">  
 
 
 
<HeaderStyle Width="150px" /> 
 
 
 
<ItemStyle Width="150px" /> 
 
 
 
</telerik:GridBoundColumn> 
 
 
 
<telerik:GridBoundColumn DataField="fld_email"   
 
ReadOnly="True" HeaderText="<%$Resources:WSPL, Email %>" UniqueName="fld_email">  
 
 
 
<HeaderStyle Width="150px" /> 
 
 
 
<ItemStyle Width="150px" /> 
 
 
 
</telerik:GridBoundColumn> 
 
 
 
<telerik:GridBoundColumn DataField="fld_country" ReadOnly="True" HeaderText="<%$Resources:WSPL, Country %>" 
 
 
 
SortExpression="fld_country" UniqueName="fld_country">  
 
 
 
<HeaderStyle Width="120px" /> 
 
 
 
<ItemStyle Width="120px" /> 
 
 
 
</telerik:GridBoundColumn>   
 
<telerik:GridBoundColumn DataField="fld_wingspan" ReadOnly="True" HeaderText="<%$Resources:WSPL, WingSpan %>" 
 
 
 
SortExpression="fld_wingspan" UniqueName="fld_wingspan">  
 
 
 
<HeaderStyle Width="120px" /> 
 
 
 
<ItemStyle Width="120px" /> 
 
 
 
</telerik:GridBoundColumn>   
 
<telerik:GridTemplateColumn Resizable="False" UniqueName="TemplateColumn2">  
 
 
 
<HeaderStyle Width="30px" /> 
 
 
 
<ItemStyle Width="30px" /> 
 
 
 
<ItemTemplate> 
 
 
 
<asp:ImageButton ToolTip="<%$Resources:WSPL, ClickToView %>" ImageUrl="~/img/zoom.gif" 
 
 
 
CommandName="viewCoach" runat="server" ID="img_View" /> 
 
 
 
</ItemTemplate> 
 
 
 
</telerik:GridTemplateColumn>   
 
</Columns>   
 
</MasterTableView>   
 
<ClientSettings EnableRowHoverStyle="true">  
 
 
 
<ClientEvents OnRowDblClick="RowDblClick" OnGridCreated="GridCreated" /> 
 
 
 
<Selecting AllowRowSelect="True" />   
 
</ClientSettings>   
 
<PagerStyle Mode="NumericPages" />   
 
</telerik:RadGrid> 
 
 
 
 
 

Thanks in advance.

 

 

 

Asok
Top achievements
Rank 1
 answered on 26 Oct 2009
3 answers
87 views
I am using the grid to dispaly different photo albums. When the ComboBox album selector changes and with ViewState of the Grid enabled, the handler for the OnSelectedIndexChanged event for the ComboBox calls the Rebind() method of the grid to force the grid to rebind which eventually results in the OnNeedDataSource being called to allow the data source for the grid to be updated.

It appears that the Grid.CurrentPageIndex is not being reset to zero when the Grid is rebound. So if this index was anything other than 0 when the Rebind() method was called, an attempt to load the grid with the page index of the previous state of the grid will result.

Since ViewState is enabled, an argument could be made that the CurrentPageIndex is just being persisted due to the persistence resulting from ViewState. But is there really ever a valid case where the paging index should be anything other than 0 after the Grid is rebound.

To me new data implies a new state with indexes reset to zero. If for some reason someone wants an index other than zero when the grid rebinds, then it would seem to be up to them to set the index to whatever they wanted.

I have a feeling that this is not going to go my way.  No big deal, this is a very, very good product.
Sebastian
Telerik team
 answered on 26 Oct 2009
1 answer
113 views
I have a javascript for opening new window

function

 

NewWindow(mypage, myname, w, h, scroll) {

 

 

var winl = (screen.width - w) / 2;

 

 

var wint = (screen.height - h) / 2;

 

winprops =

'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'

 

win = window.open(mypage, myname, winprops);

win.focus();

}


in My code i am opening this in gridview item command(Not radgrid). I am using radjax manager .The window is not opening.
Code:

Dim

 

strScript As String

 

strScript =

"<script language=JavaScript"

 

strScript = strScript &

" >"

 

strScript = strScript &

"NewWindow('proposed_material_list_modify.aspx?prop_id=" & Request.QueryString("prop_id") & "&mtrl_id=" & sMtrlId & "&Root=" & Request.QueryString("Root") & "&GroupID=" & Request.QueryString("GroupID") & "&PIN=" & MaterialGrid.CurrentPageIndex & "&IMGS=" & CheckBox1.Checked & "','Add_Note','650','600','no'); "

 

strScript = strScript &

" <"

 

strScript = strScript &

"/" & "script> "

 

ClientScript.RegisterStartupScript(

Me.GetType, "Reject Note", strScript)

 

Daniel
Telerik team
 answered on 26 Oct 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?