Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
160 views
I have a RadGrid and ContextMenu which wrap around with AjaxManager and AjaxLoadingPanel. When I right click on a row and select "Download", it postback and Response.Redirect(http://xxx/xxx.doc), the dialog window prompted. But once click on the cancel button, the ajax does not work anymore. How do I change it so that the ajax will not cancel when click to download the document.

Thanks in advance.
Daniel
Telerik team
 answered on 23 Jul 2010
3 answers
150 views
The default command template on the RadGrid works well for me with the Sunset skin. However, I do need to add to it. I'm looking for code that gets me the default Sunset skinned Command Bar as a CommandItemTemplate. Below is my grid with the command settings I need. Attached is a screen shot.

<telerik:RadGrid ID="RadGrid1" runat="server" GridLines="None"
    Width="100%" Skin="Sunset"
    AutoGenerateColumns="false" AllowPaging="true" AllowSorting="True"
    MasterTableView-ShowHeadersWhenNoRecords="true"
    MasterTableView-CommandItemSettings-ShowExportToCsvButton="true"
    MasterTableView-CommandItemSettings-ShowExportToExcelButton="true"
    MasterTableView-CommandItemSettings-ShowExportToWordButton="true"
    MasterTableView-CommandItemSettings-ShowRefreshButton="false"
    ShowStatusBar="true" ShowFooter="true"
    OnNeedDataSource="RadGrid1_NeedDataSource"
    OnDetailTableDataBind="RadGrid1_DetailTableDataBind">
...
</telerik:RadGrid>

Pavlina
Telerik team
 answered on 23 Jul 2010
1 answer
105 views
Howdy,

I am using MOSSRadEditor in WSS3. When I run the spell checker it selects this misspelled works but doesn't highlight them in yellow. How can I get the yellow back? Attached is an example.

Thanks,
Stanimir
Telerik team
 answered on 23 Jul 2010
6 answers
202 views
Hi.
I have a radgrid with a GridTemplateColumn containing a EditItemTemplate with a RadNumerictextBox named UserNrTb like this:

 <telerik:RadGrid ID="RadGrid1" runat="server" ......
 <Columns>
        <telerik:GridTemplateColumn DataField="UserNr" DataType="System.Int32" HeaderText="UserNr" UniqueName="UserNr" >
            <EditItemTemplate>
                <telerik:RadNumericTextBox ID="UserNrTb" runat="server" DbValue='<%# Bind("UserNr") %>'></telerik:RadNumericTextBox>
            </EditItemTemplate>
            <ItemTemplate>
                <asp:Label runat="server"  ID="UserNrLbl" Text='<%# Eval("UserNr") %>' ></asp:Label>
            </ItemTemplate>
        </telerik:GridTemplateColumn>
        <telerik:GridNumericColumn DataField="Account" DataType="System.Int32" HeaderText="Account" UniqueName="column2">
        </telerik:GridNumericColumn>
......

I want to have focus on the field UserNrTb in editmode but I don't know how to iterate the GridTemplateColumn. I have read the article "Focus the text boxes in the edit control" and the description work fine for GridNumericColumn as followed:

protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
   {
        
if (e.Item is GridEditableItem && e.Item.IsInEditMode)
       {
           GridEditableItem form = (GridEditableItem)e.Item;
           RadNumericTextBox dataField = (RadNumericTextBox)form[
"column2"].Controls[0];
           dataField.Focus();
       }
   }

I tried to do the same for the field UserNrTb but it's not working. So how can i find the field from GridTemplateColumn?

Ceci


 

       
Cecilie Nordbø
Top achievements
Rank 1
 answered on 23 Jul 2010
2 answers
201 views
Hello All,

Can some one help with below code.

1) I have Radmenu inside a Radtab, it displays perfectly on a normal page with menus and tabs 
2) As soon as i use the same code in a  Master Page (First.master) with 3 iframes viz : Header and second is the above Menu.aspx and third is say Body.

3) Now when i click on the Menu, the items are behind the  body iframe, my problem : Is there any way where i can bring the menu items in front of the bodyframe instead going behind. 

Please somone provide with the correct solution.
 
Below is the Sample code given.

****************************************
Start MASTER PAGE (first.Master)
**********************************************
  
<body>
    <form id="form1" runat="server">
       <asp:ScriptManager runat="server" ID="ScriptManager2" >
        </asp:ScriptManager>
      
        <iframe id="header" name="header" style="padding: 0px; margin: 0px; height:50px; width:100%; top: 0px; " frameborder="0" scrolling="no" src="header.aspx" marginheight="0em" marginwidth="0em" ></iframe>
        <iframe id="menuFrame" name="menuFrame" style="width: 100%; padding: 0px; margin: 0px; height:30px; width:100%; top: 0px; " frameborder="0" scrolling="no" src="menu.aspx" marginheight="0em" marginwidth="0em" ></iframe>
<iframe id="bodyframe" name="bodyframe" style="padding: 0px; margin: 0px; height:520px;width:100%; top: 0px;" frameborder="0" scrolling="auto" marginheight="0em" marginwidth="0em" src="body.aspx" >
              <asp:ContentPlaceHolder id="ContentBody" runat="server">
                      
              </asp:ContentPlaceHolder>  
          
        </iframe>
</form>
</body>
*****************************************************************
End MASTER PAGE
****************************************************************
*****************************************************************
Start MenuPAGE (2nd frame)
****************************************************************
  
<style type="text/css"> 
    div.RadTabStrip .rtsLink,
    div.RadTabStrip .rtsOut,
.RadTabStrip .rtsLevel,   
.RadTabStrip .rtsUL,   
.RadTabStrip .rtsLI   
{   
    float: left !important;   
    overflow: visible !important;   
}   
.RadMenu   
{   
    white-space:nowrap;   
    float:left;   
    position:relative; 
}   
.RadTab   
{   
    white-space:nowrap;   
    float:left;   
    position:relative;   
}
.RadTabStrip   
{   
    white-space:nowrap;   
    float:left;   
    position:relative;   
}
</style>
  
<form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
    </div>
             <table style="width:89%">
              <tr style="width:100%">
               <td >
                     <telerik:RadTabStrip ID="tabmenu" Skin="Black" 
                        runat="server" SelectedIndex="11" ClickSelectedTab="True"
                          Font-Bold="True">
                       <Tabs>
                            <telerik:RadTab Text="Home" NavigateUrl="rmshome.aspx" Target="bodyframe" runat="server"  /> 
    
<telerik:RadTab runat="server">   
                         <TabTemplate>  
                            <telerik:RadMenu runat="server" ID="RadMenu1">
            <Items>
                <telerik:RadMenuItem runat="server" Text="Search Engines">
                    <Items>
                        <telerik:RadMenuItem runat="server" Target="searchFrame" Text="Google" NavigateUrl="http://www.google.com">
                        </telerik:RadMenuItem>
                        <telerik:RadMenuItem runat="server" Target="searchFrame" Text="Yahoo" NavigateUrl="http://www.yahoo.com">
                        </telerik:RadMenuItem>
                        <telerik:RadMenuItem runat="server" Target="searchFrame" Text="Live" NavigateUrl="http://www.live.com">
                        </telerik:RadMenuItem>
                    </Items>
                </telerik:RadMenuItem>
            </Items>
        </telerik:RadMenu>
                         </TabTemplate>  
                 </telerik:RadTab>  
                       </Tabs>
                 </telerik:RadTabStrip>  
    </form>
  
</body>
**********************
End of MenuPage
**********************


sudhakar
Top achievements
Rank 1
 answered on 23 Jul 2010
3 answers
202 views

Request is not available in this context
Referred this but no help.

  

at System.Web.UI.Page.get_Request()  
  at Telerik.Web.UI.RadGrid.BrowserIsCrawler()
  at Telerik.Web.UI.RadGrid.OnInit(EventArgs e)
  at System.Web.UI.Control.InitRecursive(Control namingContainer)
  at System.Web.UI.Control.AddedControl(Control control, Int32 index)
  at System.Web.UI.ControlCollection.Add(Control child)
  at MyPage.productControl(Page& Page, Control& ctrl, HttpServerUtility& Server) in C:\inetpub\wwwroot\Test\test.vb:line 45
  at testControl() in C:\inetpub\wwwroot\TestC\Ctrl1.ascx.vb:line 37
  at page_Load(Object sender, EventArgs e) in C:\inetpub\wwwroot\TestC\Ctrl1.ascx.vb:line 15
  at System.Web.UI.Control.OnLoad(EventArgs e)
  at System.Web.UI.Control.LoadRecursive()
  at System.Web.UI.Control.AddedControl(Control control, Int32 index)
  at System.Web.UI.ControlCollection.Add(Control child)
  at tabMultiPage1_PageViewCreated(Object sender, RadMultiPageEventArgs e) in C:\inetpub\wwwroot\Product.aspx.vb:line 324
  at Telerik.Web.UI.RadMultiPage.OnPageViewCreated(RadMultiPageEventArgs eventArgs)
  at Telerik.Web.UI.RadMultiPage.AddedControl(Control control, Int32 index)
  at System.Web.UI.ControlCollection.Add(Control child)
  at Telerik.Web.UI.RadPageViewCollection.Add(RadPageView pageView)
  at Home.AddTab(String stringName, XmlNode xNode,String ctrlName) in C:\inetpub\wwwroot\Product.aspx.vb:line 192
  at Handler.Submit(RadMultiPage& tabMultiPage, XmlDocument docRequest) in C:\inetpub\wwwroot\Handling.vb:line 101
  at TreeControl.Button2_Click(Object sender, EventArgs e) in C:\inetpub\wwwroot\Controls\TreeControl.ascx.vb:line 424
  at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
  at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
  at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
  at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
  at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
  at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Pavlina
Telerik team
 answered on 23 Jul 2010
4 answers
145 views
How do I get the hidden value after the ajax postback so that the menu can enable/disable the menu item?
Thanks.
Yana
Telerik team
 answered on 23 Jul 2010
3 answers
161 views

Hi all

I'm writing a web to manage image. I have an database name 'Manage_Image' with one table 'images' (int- id, nvarchar- imagesource) and I have a web page. Now I can load images to Datalist, but I wonder can I drag and drop a image to a nother position of the Datalist(as window explorer). Please help me at this
thank you very much!

Phuoc
Sebastian
Telerik team
 answered on 23 Jul 2010
1 answer
135 views
Hi,

I am working on RadGrid. I want to add Checkbox itemtamplate on runtime using C#.Net code. 
Please guide me.

Thanks
Shinu
Top achievements
Rank 2
 answered on 23 Jul 2010
2 answers
170 views
Hi,

I am trying to add a Programmtically databound Telerik TreeView in Combo Box just like you showed it in your tutorial for combo box application scenarios. I am trying to do this in a sharepoint webpart , that'S why I have to do every thing with code. I tried adding treeview to Combobox's controls collection, it did not work.
Could you give me an example how to achieve this programmatically?



Regards

Bhupinder
Kalina
Telerik team
 answered on 23 Jul 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?