Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
159 views



Well, it is not easy to explain the problem so I think in this case image is better than words. Please see attachment.

Thanks
HANK
elena
Top achievements
Rank 1
 answered on 27 Jul 2011
1 answer
48 views
Is it possible to edit a RadGrid inplace, but create a separate popup template for adding new records?
Princy
Top achievements
Rank 2
 answered on 27 Jul 2011
2 answers
96 views


Is it possible to have a radgrid inside one of the cells of a regular radgrid?

Kind of like this.

Name      Email        Phone       [new grid here]


Name      Email        Phone       [new grid here]


Name      Email        Phone       [new grid here]


Name      Email        Phone       [new grid here]


Name      Email        Phone       [new grid here]

I don't want to click anything to make the child grid appear below. I want it to be in a certain cell on each row always visible. Make sense?

Is this possible?  Is there a demo technique of this anywhere?
Shinu
Top achievements
Rank 2
 answered on 27 Jul 2011
1 answer
92 views
Hey,

When I'm setting my page body tag to dir="rtl" its adding extra spaces to radgrid control.

Thanks for help.
Shinu
Top achievements
Rank 2
 answered on 27 Jul 2011
3 answers
120 views
Hi , 
I  have a parent page from which i need to open a rad window where i save/update data. On saving/closing the rad window i need the rad grid in parent to refresh . Grid does not refresh until i do a post back on the page .
Following is the code i am using , 

In Master Page :
  <telerik:RadAjaxManager ID="mgr" runat="server" EnableAJAX="true" OnAjaxRequest="mgr_AjaxRequest"> 
            </telerik:RadAjaxManager>
            <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel2" runat="server" Skin="Vista"
                BackgroundPosition="Center" EnableEmbeddedSkins="true" />
            <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
            </asp:ContentPlaceHolder>
In Parent Page (.aspx)
 <script type="text/javascript">
            function GetRadWindow() {
                var oWindow = null;
                if (window.radWindow) oWindow = window.radWindow;
                else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
                return oWindow;
            }
            function refreshGrid() {                
                    $find("<%= RadAjaxManager.GetCurrent(this).ClientID %>").ajaxRequest("Rebind");  
                                      
            }      
</script>
In Parent Page (.cs)


 protected void Page_Load(object sender, EventArgs e)
    {
        #region AJAX Settings        
        RadAjaxManager mgr = RadAjaxManager.GetCurrent(Page);
        
        mgr.AjaxSettings.Clear();       
        mgr.AjaxRequest += new RadAjaxControl.AjaxRequestDelegate(mgr_AjaxRequest);
        mgr.AjaxSettings.AddAjaxSetting(btnSearch, pnlContent);
        mgr.AjaxSettings.AddAjaxSetting(btnSearch, rgcarrrier, (RadAjaxLoadingPanel)(this.Page.Master as MasterPage).FindControl("RadAjaxLoadingPanel2"));
        mgr.AjaxSettings.AddAjaxSetting(rgcarrrier, pnlContent);
        //mgr.AjaxSettings.AddAjaxSetting(RadWindowManager1, rgcarrrier);
        mgr.AjaxSettings.AddAjaxSetting(btnDelete, pnlContent);
        mgr.AjaxSettings.AddAjaxSetting(btnDelete, rgcarrrier, (RadAjaxLoadingPanel)(this.Page.Master as MasterPage).FindControl("RadAjaxLoadingPanel2"));
        mgr.AjaxSettings.AddAjaxSetting(rgcarrrier, rgcarrrier, (RadAjaxLoadingPanel)(this.Page.Master as MasterPage).FindControl("RadAjaxLoadingPanel2"));        
        #endregion


}




  protected void mgr_AjaxRequest(object sender, AjaxRequestEventArgs e)
    {
        if (e.Argument == "Rebind")
        {         
                
                rgcarrrier.MasterTableView.SortExpressions.Clear();
                rgcarrrier.MasterTableView.GroupByExpressions.Clear();
                rgcarrrier.Rebind();                           
           
            
        }
        
    }


In Rad Window (.aspx)
<script type="text/javascript">       
      
        function GetRadWindow() {
            var oWindow = null;
            if (window.radWindow) oWindow = window.radWindow;
            else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
            return oWindow;
        }
        function cancelAndClose() {
            var oWindow = GetRadWindow();
            oWindow.argument = null;
                        oWindow.close();
                        oWindow.BrowserWindow.refreshGrid();  
            return false;
        }    
          
    </script>

In Rad Window (.cs)
 protected void Page_Load(object sender, EventArgs e)
    {
        #region Ajax Settings
        RadAjaxManager mgr = RadAjaxManager.GetCurrent(Page);
        mgr.AjaxSettings.Clear();
        #endregion
}
 protected void btnClose_Click(object sender, EventArgs e)
    {
        ClientScript.RegisterStartupScript(Page.GetType(), "mykey", "cancelAndClose();", true);
    }
    protected void btnSave_Click(object sender, EventArgs e)
    {
     (Page.IsValid)
        {
            //when save
            {
                ClientScript.RegisterStartupScript(Page.GetType(), "mykey", "cancelAndClose();", true);
}
//when Update
{
 ClientScript.RegisterStartupScript(Page.GetType(), "mykey", "cancelAndClose();", true);
}
}


where did i go wrong ?
The grid does not refresh ..
mahesh
Top achievements
Rank 1
 answered on 27 Jul 2011
3 answers
360 views
I'm trying to figure out how to set the focus from outside of the grid to a particular radnumerictextbox editor cell in the grid (the whole radgrid is in edit mode) from client side using javascript. it says there is no method called focus() on the grid

<script type="text/javascript"
                    function gotoGrid() { 
                            var grid = $find('MainContent_GeneralControl_MyFormView_MyRadGrid'); 
                            if (grid != null) { 
                                grid.set_focus(); // this says there is no such method 
                            } 
                        } 
                </script> 
 

this code is being fired from an onblur event in a radnumerictextbox
Daniel Aquere
Top achievements
Rank 2
 answered on 27 Jul 2011
2 answers
151 views

I have a Radgrid with Radcombobox , radnumericbox and radtextbox  all have the same onfocus and onblur event assigned to it . I want to get the cellindex on the focus event  and  on eaech cellindex I want to do different processing ?

          if i click a column I can get it as below and display it in a textbox .

function ColumnClick(sender, eventArgs) {
        var text = "";
        text = eventArgs.get_gridColumn().get_element().cellIndex;
        document.getElementById("TextBox2").value = text;
    }

          I want the same for radnumeric control in template in the focus event .

Please kindly help us .

Daniel Aquere
Top achievements
Rank 2
 answered on 27 Jul 2011
6 answers
581 views
Hello,
          I put a text "attach files" for Localized-Select in RadAsyncUpload. The text is cut off on the button. Is there a way to increase the size of the button in RadAsyncUpload?

Thanks,
Bharani
Jonx
Top achievements
Rank 2
 answered on 27 Jul 2011
2 answers
79 views
Hi,

I need to customize the "Add" button of RadUpload by changing the text to "Attach Additional Files". After I set localization-add="Attach Additional Files", the button text is changed, but only partial text is shown because the button width is not changed. I searched documentation, and didn't find other settings needed when using localization-add. Do I miss anything?

The current code for RadUpload is:
<telerik:RadUpload ID="RadUpload1" runat="server" InitialFileInputsCount="3" localization-add="Attach Additional Files" MaxFileInputsCount="5" />

Thanks!
Ray
Top achievements
Rank 1
 answered on 26 Jul 2011
1 answer
76 views
In my ItemDataBound, I have code that uses EditFormItem[<UniqueName>] to retreive data from a parent grid column. But if the column is bound to empty data, EditFormItem returns "&nbsp;". I currently get around this by replacing the "&nbsp;" with an empty string, but I was just wondering why this would be the case? I understand HTML tables need something in the cell to render properly, but should this be returned by EditFormItem? Shouldn't it be possible to render it correctly without also returning it as the column value? Or is there some way to do this that I am missing?

Thanks

ROSCO
Daniel
Telerik team
 answered on 26 Jul 2011
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?