Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
70 views
I've created a function in C# thats results in a Redirect. See below. This function is called by a certain button on my page.
When using this in IE it works like a charm. But, using it in Firefox or other browsers it results in an error telling me that "window.parent.navigate" is not a function.

Any Ideas how i can fix this problem?

        private void Redirect(string captureType)
        {
            Telerik.Web.UI.RadAjaxManager mngr = (Telerik.Web.UI.RadAjaxManager)this.Page.Master.FindControl("RadAjaxManager");
            if (mngr != null)
            {
                mngr.ResponseScripts.Add(string.Format("window.parent.navigate('Capture.aspx?CaptureType={0}');", captureType));
            }
            else
            {
                throw new Exception("RadAjaxManager required on masterpage.");
            }
        }
Nikolay Rusev
Telerik team
 answered on 16 Mar 2010
1 answer
86 views
Hi,
  I am getting error in ie 6 version:

Sys.WebForms.PageRequestManagerServerErrorException:an unknown error occured while processing request of the server: the status code returned from the server was:12019

the download of the specified resource has failed
Nikolay Rusev
Telerik team
 answered on 16 Mar 2010
4 answers
687 views
Hi,

I am using following code to define telerik grid, since only one text column in the grid I want it to be 85% width and buttons to be one near each other. This works fine for edit and view operations.

<Columns>
            <telerik:GridBoundColumn Display="False" HeaderText="ID" UniqueName="idcolumn" DataField="RoleId">
            </telerik:GridBoundColumn>
            <telerik:GridEditCommandColumn  ButtonType="ImageButton" UniqueName="EditCommandColumn" CancelImageUrl="~/App_Themes/Gray/Images/grid_cancel.jpg"
                     EditImageUrl="~/App_Themes/Gray/Images/grid_edit.jpg"
                     UpdateImageUrl="~/App_Themes/Gray/Images/grid_update.jpg"
                     InsertImageUrl="~/App_Themes/Gray/Images/grid_update.jpg">
            </telerik:GridEditCommandColumn>
            <telerik:GridButtonColumn  ConfirmText="Are you sure you want to delete this Role?" ConfirmDialogType="RadWindow"
                        ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete"
                        UniqueName="DeleteColumn" ImageUrl="~/App_Themes/Gray/Images/grid_delete.jpg">
            </telerik:GridButtonColumn>
            <telerik:GridButtonColumn UniqueName="column" CommandName="Select"
                Text="Select" ImageUrl="~/App_Themes/Gray/Images/select.jpg"
                ButtonType="ImageButton" DataTextField="RoleId" >
            </telerik:GridButtonColumn>
            <telerik:GridBoundColumn HeaderText="Role Name" UniqueName="rolenamecolumn" DataField="RoleName">
                <HeaderStyle Width="85%" />
            </telerik:GridBoundColumn>
        </Columns>

I use external button to insert a row to the grid. with following code,

protected void rtbTopBar_ButtonClick(object sender, RadToolBarEventArgs e)
        {
            RadToolBarButton btn = (RadToolBarButton)e.Item;
            if (btn.CommandName == "New")
            {
                grdRoles.MasterTableView.IsItemInserted = true;
                grdRoles.Rebind();
            }
        }

however issue is when insert mode 2 buttons are shown they shown in vertical direction due to lack of width (update button on top of cancel button). I want to find out a way to change the width of a column only in edit or insert modes.

Many Thanks,
Adipa
Adipa Gunasekara
Top achievements
Rank 1
 answered on 16 Mar 2010
1 answer
93 views
I have a grid that will be populated from the database.

Some of the rows returned will require hyperlinks and some rows will not--this just depends on what is being called back from the database. For example:

CELL 1        CELL 2                                CELL 3
Data            Data (Hyperlinked)                 
Data            Data (Hyperlinked)                 
Data            Data (No Hyperlink)    
Data            Data (No Hyperlink)   
Data            Data (Hyperlinked)      

I was going to use the Hyperlink template of the RADGrid but that means it will always show up as if there is a hyperlink even though there isn't. Is there a way to accomplish this using RADGrid? Thanks.


PJ         
Shinu
Top achievements
Rank 2
 answered on 16 Mar 2010
2 answers
66 views


<telerik:RadComboBox ID="RadComboBox1" runat="server" Skin="Default" HighlightTemplatedItems="True"
     ShowToggleImage="True" MarkFirstMatch="True">
                <ItemTemplate>
                    <table>
                        <tr>
                            <td >
                             <asp:Image ID="Image1" runat="server" ImageUrl=<%# DataBinder.Eval(Container, "Attributes['Image']")%> />
                             
                             
                             
                            </td>
                            <td style=" border-left-style:solid; width:1px"> </td>
         
                            <td >
                                (<%# DataBinder.Eval(Container,"Text") %>)
                               
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
                <Items>
                   <telerik:RadComboBoxItem
                    Image='../../excel.gif'                          //  This one don't work.
                    Text="导出Excel">
                  </telerik:RadComboBoxItem>
                  <telerik:RadComboBoxItem
                    Image="../../word.gif"                       //  This one don't work.
                    Text="导出Word">
                  </telerik:RadComboBoxItem>
                     <telerik:RadComboBoxItem
                    Image="D:\image\3.jpg"               // This work properly.
                    Text="导出PDF">
                  </telerik:RadComboBoxItem>
                  <telerik:RadComboBoxItem
                    Image="D:\image\4.jpg"             // This work properly.
                    Text="导出CVS">
                  </telerik:RadComboBoxItem>                
                  
                </Items>
            </telerik:RadComboBox>
liu qingshui
Top achievements
Rank 1
 answered on 16 Mar 2010
2 answers
82 views
Hi every one,

Now i have this problem, hopefully u all can help me.
For now, i already used CSS like below to overcome the image

<style type="text/css">
        .bm_customizedInsiderGray
        {
         z-index:9999;
        }
    </style>

But, when i open my page by IE 6 and 7, i found that this display problem.

Thks in advances,
Nasri
Arteta Sam
Top achievements
Rank 1
 answered on 16 Mar 2010
2 answers
75 views
Hello again,
I'm trying to put a total item count in the group headers by using the ItemDataBound event as described in various places here.
For some reason GridGroupHeaderItem.GetChildItems() is returning 0 (not null -> "0"). I thought it might be because I'm collapsing all groups as described here: http://www.telerik.com/help/aspnet-ajax/grdcollapseallitemsongrouping.html,  but disabling this code still returns 0.
Would someone possibly have a suggestion here?

Thx in advance!
Rgds - Marcus.
Marcus
Top achievements
Rank 1
 answered on 15 Mar 2010
2 answers
170 views
Is there a way to access the client side spelling events when using the inline spellchecker

OnClientCheckStarted
OnClientCheckFinished
OnClientCheckCancelled
OnClientDialogClosed


Long story short...I need to disable the timer control once the inline speller has started. AJAX postbacks while the spellcheck popup is up cause it to act weird. Thanks in advance!
KC
Top achievements
Rank 1
 answered on 15 Mar 2010
1 answer
148 views
I need to disable the event or not fire the event for a particular node when clicking on the text. But i need the node to work the same way on clicking on the plus or the minus sign.

I need this functionality to be implemented only on this node. I add the node to the tree using the following code.

this.myBrowseNode = new RadTreeNode("Company", "myBrowseNode");              
this.myBrowseNode.Checkable = false;             
this.myBrowseNode.ExpandMode = TreeNodeExpandMode.ClientSide;
this.myBrowseNode.Expanded = true;
this.rTreeView.Nodes.Add(this.myBrowseNode);
Thomas Salt
Top achievements
Rank 1
 answered on 15 Mar 2010
4 answers
266 views
Hi!

I have a TabStrip on my page and within one of the PageViews, there are controls that use validators such as RequiredFieldValidator.  When the validator is present, the tabs on the TabStrip do not work.  If I remove the validator, the TabStrip works as it should.  How can I make the TabStrip work with the validator?

I have attached a small code sample that reduplicates the problem.

Thank you!

<form id="form1" runat="server">  
    <div> 
    <telerik:RadScriptManager ID="RSM" runat="server"></telerik:RadScriptManager> 
        <telerik:RadTabStrip ID="RadTabStrip1" runat="server" Skin="Hay" MultiPageID="RadMultiPage1">  
            <Tabs> 
                <telerik:RadTab Text="Tab 1" PageViewID="pv1" Selected="true"></telerik:RadTab> 
                <telerik:RadTab Text="Tab 2" PageViewID="pv2"></telerik:RadTab> 
                <telerik:RadTab Text="Tab 3" PageViewID="pv3"></telerik:RadTab> 
            </Tabs> 
        </telerik:RadTabStrip> 
        <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0">  
            <telerik:RadPageView ID="pv1" runat="server">  
                <asp:Label ID="Label1" runat="server" Text="This is tab 1"></asp:Label> 
            </telerik:RadPageView> 
            <telerik:RadPageView ID="pv2" runat="server">  
                <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> 
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*" ControlToValidate="TextBox1"></asp:RequiredFieldValidator> 
            </telerik:RadPageView> 
            <telerik:RadPageView ID="pv3" runat="server">  
                <asp:Label ID="Label3" runat="server" Text="This is tab 3"></asp:Label> 
            </telerik:RadPageView> 
        </telerik:RadMultiPage> 
    </div> 
    </form> 
Rory
Top achievements
Rank 1
 answered on 15 Mar 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?