Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
207 views
Hello Team,

     I am new to this control and doing on RnD on Radgrid for one of my project.

The issue i face is when i use multiple columns around 20-25 and when i enable the property UseStaticHeaders = "true" the width and the align  of the column is getting changed in the firefox browser. Plus i also has the property like below.

<Scrolling AllowScroll="True" UseStaticHeaders="true" FrozenColumnsCount="2" />

 

 

<Resizing AllowColumnResize="True" EnableRealTimeResize="True" ResizeGridOnColumnResize="True" />

<MasterTableView TableLayout
="fixed" Width="95%">.

is ther any property i need to enable  to fix the alignment for different browser ??

Thanks
Vijay

 

Pavlina
Telerik team
 answered on 18 Jun 2014
2 answers
261 views
I have a radgrid I created dynamically and added to a placeholder control, I want to get have access to the grid on the client side.

I cant seem to find it unless I hard code the grid name into $find(). like this 
var hardCode = $find("ctl00_MainContent_RadPanelBar1_i0_i1_BatchEditGrid");

How do I find the grid otherwise?

Here is an outline of the code--

ASPX
<%@ Page Title="" Language="C#" AutoEventWireup="true" CodeBehind="GridFeatureTestForm.aspx.cs" Inherits="IProduction.GridFeatureTestForm" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0    Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title></title>
</head>
<body>
<form id="form1" runat="server">
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest"></telerik:RadAjaxManager>
    <script type="text/javascript">
            function testGrid() {
 
                var hardCode = $find("ctl00_MainContent_RadPanelBar1_i0_i1_BatchEditGrid");
 
                var placeholder = $find("<%= PlaceHolder2.ClientID %>");
                alert(placeholder);
 
                var radGrid = ('<%= (RadGrid)RadPanelBar1.FindControl("BatchEditGrid") %>');
                alert(radGrid);
            }
        </script>
<div style="width: 200px;">
<input value="doClient" type="button" onclick="javascript: testGrid();" />
<asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:PlaceHolder>
    <telerik:RadPanelBar runat="server" ID="RadPanelBar1" Width="100%">
        <Items>
            <telerik:RadPanelItem Expanded="true">
                <Items>
                    <telerik:RadPanelItem Text="Add Records" Expanded="false" Selected="True">
                        <ContentTemplate>
                            <asp:PlaceHolder ID="PlaceHolder3" runat="server"></asp:PlaceHolder>
                        </ContentTemplate>
                    </telerik:RadPanelItem>
                    <telerik:RadPanelItem Text="Edit Records" Expanded="true" Selected="True">
                        <ContentTemplate>
                            <asp:PlaceHolder ID="PlaceHolder2" runat="server"></asp:PlaceHolder>
                        </ContentTemplate>
                    </telerik:RadPanelItem>
                </Items>
            </telerik:RadPanelItem>
        </Items>
        <ExpandAnimation Type="None" />
    </telerik:RadPanelBar>
</div>
</form>
</body>
</html>


ASCX
protected void Page_Init(object sender, System.EventArgs e)
{
    RadGrid grid = new RadGrid();
    grid.ID = "BatchEditGrid";
 
    PlaceHolder2.Controls.Add(grid);
}


















Mike Metafarms
Top achievements
Rank 2
 answered on 18 Jun 2014
4 answers
149 views
Hi,

Is it possible to have search in Image Manager?
It can be difficult to find an image if the folder has thousands of images.
Thanks.

Vessy
Telerik team
 answered on 18 Jun 2014
3 answers
154 views
Hi,

I do not want my app to prompt the Word Content in Clipboard Interception when the user pastes from Word using <ctrl> <v>.  Is there a way to default the value and not show this message?
tammy
Top achievements
Rank 1
 answered on 18 Jun 2014
2 answers
294 views
When the grid first loads I want specific columns to be editable.

I have a checkbox that i want to allow the user to change. Upon changing the checkbox i will then trigger an event that will make other columns become editable.


I know how to set all columns to editable with the following:

foreach (GridItem item in RadGrid1.MasterTableView.Items)
               {
                    
                   if (item is GridEditableItem)
                   {
                       GridEditableItem editableItem = item as GridDataItem;
                       editableItem.Edit = true;
                   }
               }
               RadGrid1.Rebind();

I also know how to get the specific column that I want to set the edit mode on:

foreach (GridColumn column in RadGrid1.Columns)
                {
                    if (column.UniqueName == "Reserved")
                    {
                        if (column is GridEditableColumn)
                        {
                            GridEditableColumn editableColumn = column as GridEditableColumn;
                        }
                    }  
}


However I am not sure how to bridge the gap here.

I'm sure the answer is simple but I'm missing it for the moment.

Thx
Julian
Top achievements
Rank 1
 answered on 18 Jun 2014
7 answers
147 views
Hello,

Today I upgraded from Q1 225 to Q1 403. 

I noticed, immediately, that the menu rendering was, again, incorrect. I removed fixes for Q1 225 first... ;-|

The classic creates a very high main bar and the icons are partly shown. See attachement: radMenu_RenderMode_Classic.png
The Lightweight has also the icon problem. See attachement: radMenu_RenderMode_Lightweight.png

The reason that the images appear partly, is that they have a top: 50%.
I temporary fixed this with:
.RadMenu .rmSlide .rmVertical .rmLeftImage {
    top: 0 !important;
}

Regards,

Erik

Magdalena
Telerik team
 answered on 18 Jun 2014
4 answers
146 views
Hi guys,

having an issue with the RadAjaxPanel when being used on a page with a URL rewrite, when accessing the page on the normal URL there is no error and the panel updates just fine. example:
  • page.aspx?id=1 (this works)
  • /custum/url/1  - which rewrites to page.aspx?id=1 (this does not work)

I am using "urlrewriter.net" (http://urlrewriter.net/). 

Code for page:

01.<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
02.                    <AjaxSettings>
03.                        <telerik:AjaxSetting AjaxControlID="sndButton">
04.                            <UpdatedControls>
05.                                <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" LoadingPanelID="LoadingPanel1"></telerik:AjaxUpdatedControl>
06.                            </UpdatedControls>
07.                        </telerik:AjaxSetting>
08.                    </AjaxSettings>
09.                </telerik:RadAjaxManager>
10. 
11.                <telerik:RadAjaxLoadingPanel ID="LoadingPanel1" runat="server" MinDisplayTime="1">
12.                </telerik:RadAjaxLoadingPanel>
13. 
14.                <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="LoadingPanel1">
15. 
16.                    <asp:Label runat="server" ID="lbl" Text="time"></asp:Label>
17.                     
18.                </telerik:RadAjaxPanel>
19.                <asp:Button ID="sndButton" runat="server" Text="Send" OnClick="sndButton_Click" />

and backend code:
1.Protected Sub sndButton_Click(sender As Object, e As EventArgs)
2.    lbl.Text = Date.Now
3.End Sub

My conclusion is that the rewriter and the panel is clashing somehow. Is there any way to fix this or work around it?

Thanks in advance.


Maria Ilieva
Telerik team
 answered on 18 Jun 2014
1 answer
76 views
Hi,
I have a scenario.. How can i change the background color of a radcombox with change in selected item from client side.
Shinu
Top achievements
Rank 2
 answered on 18 Jun 2014
11 answers
565 views
I am implementing http://demos.telerik.com/aspnet-ajax/input/examples/common/datagrid/defaultcs.aspx in my Radgrid. But after edit/delete, the radgrid doesnot refresh.
After Edit and Delete I tried a couple of things like:
this.Page.RegisterRequiresPostBack(this._RadGrid1) and this._RadGrid1.MasterTableView.Rebind(); and e.Item.OwnerTableView.Rebind but none works.
Interestingly after delete, the number of records in the pager section is updated. For instance from  204 items in 3 pages, it refreshes to  203 items in 3 pages. But the deleted record doesnot go until I reload or click on refresh.
The OnPrerender is as follows:
 protected override void OnPreRender(EventArgs e)
        {
            base.OnPreRender(e);
            RadAjaxManager ajaxManager = RadAjaxManager.GetCurrent(Page);
            ajaxManager.AjaxSettings.AddAjaxSetting(this._UpdatePanel, this._RadGrid1, this._RadLoadingPanel);          
        } 

Please let me know how to refresh it.
Viktor Tachev
Telerik team
 answered on 18 Jun 2014
1 answer
71 views
In my radeditor I have one field

<acronym unselectable="on" contenteditable="false" style="display: inline-block; background-color: yellow;" expid="100" explabel="First Name">First Name</acronym>

If I select only this field & apply css then It applies perfectly.

But if I select this text with other html tags e.g.

<br>
<acronym unselectable="on" contenteditable="false" style="display: inline-block; background-color: yellow;" expid="100" explabel="First Name">First Name</acronym>

& then if I try to apply css on it then only
tag gets css & not field tag.

I know this is due to "contenteditable='false'" attribute but I need this attribute.

note: This strange thing happens only in google chrome (my version : 35.0.1916.153 m)

Do any one know any solution to it ?

Ianko
Telerik team
 answered on 18 Jun 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?