Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
305 views
Is there a way to render a ButtonType="SkinnedButton" as <input type="submit"> ?
Danail Vasilev
Telerik team
 answered on 08 Apr 2014
9 answers
551 views
Hi All

I am getting three fields from my data source; one numeric and the rest two string.

I want the info to be displayed as a stacked bar type of Rad chart. I want to group the contents by one of the string columns (which will also provide the label for my X-Axis) and use the numeric field as my Y axis.

How do I do that?

Please help me urgently.
Danail Vasilev
Telerik team
 answered on 08 Apr 2014
1 answer
75 views
Hi,
 how can i set tooltip for all the columns of radgrid?
Shinu
Top achievements
Rank 2
 answered on 08 Apr 2014
3 answers
600 views
When we tried to export data from grid it give "System.OutOfMemoryException". It gives expception when we try to export 5000+ records.

No. Of columns in grid are 22
No of records need to fetch 5000+

Please help me how to resolve this issue.
Jayesh Goyani
Top achievements
Rank 2
 answered on 08 Apr 2014
5 answers
138 views
Hi,

When the window is restricted in a restriction zone we are having some issues with autosize.
In the following sample:
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="window.aspx.vb" Inherits="TestaTredjepartWeb.window" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" style="overflow: hidden">
<head runat="server">
    <title></title>
    <style type="text/css">
        .bug1
        {
            height: 500px;
        }
        .bug2
        {
            height: 300px;
        }
        .bug2b
        {
            height: 200px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="s" runat="server">
        </asp:ScriptManager>
        <div>
            <asp:Panel ID="pnlRestrictionZone" runat="server" Style="width: 700px; background-color: blue" CssClass="bug1">
                <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
                    <Windows>
                        <telerik:RadWindow ID="RadWindow1" runat="server" VisibleOnPageLoad="true" AutoSize="true" RenderMode="Lightweight" Title="Hello" NavigateUrl="windowcontent.aspx" VisibleStatusbar="false" RestrictionZoneID="pnlRestrictionZone">
                        </telerik:RadWindow>
                    </Windows>
                </telerik:RadWindowManager>
            </asp:Panel>
            <asp:Button ID="btnBug1" runat="server" Text="Bug 1" />
            <asp:Button ID="btnBug2" runat="server" Text="Bug 2" />
            <asp:Button ID="btnBug2b" runat="server" Text="Bug 2b" />
        </div>
    </form>
</body>
</html>
Code behind:
Public Class window
    Inherits System.Web.UI.Page
 
    Private Sub btnBug1_Click(sender As Object, e As EventArgs) Handles btnBug1.Click
        pnlRestrictionZone.CssClass = "bug1"
    End Sub
 
    Private Sub btnBug2_Click(sender As Object, e As EventArgs) Handles btnBug2.Click
        pnlRestrictionZone.CssClass = "bug2"
    End Sub
 
    Private Sub btnBug2b_Click(sender As Object, e As EventArgs) Handles btnBug2b.Click
        pnlRestrictionZone.CssClass = "bug2b"
    End Sub
End Class
Content window:
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="windowcontent.aspx.vb" Inherits="TestaTredjepartWeb.windowcontent" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title>This is the title</title>
    <style type="text/css">
        html, body, form
        {
            padding: 0px;
            margin: 0px;
            height: 100%;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="s" runat="server">
        </asp:ScriptManager>
        <div style="background-color: red; height: 300px; width: 500px">
            test
        </div>
    </form>
</body>
</html>

The first issue:
In IE11 there is always a little extra space to the left and bottom in the content window.
In Firefox there is no extra space, but always scrollbars!

The second issue:
Press button "Bug 2" which makes the restriction zone just a little bit larger than the content window.
In this case, the content window doesn't get wider because of the vertical scrollbar, when the restriction zone is much smaller than the window (Pressing "Bug 2b" button) the width of the window is more correctly according to the vertical scrollbar. Pressing "Bug 2b" even eliminates (sometimes...) the horizontal scroll which doesn't happen when pressing "Bug 2" button!
There is clearly a difference (according to the width) when the restriction zone is almost as high as the content window and when it is not!

Regards
Andreas

Joana
Telerik team
 answered on 08 Apr 2014
7 answers
198 views
Hello

I have two pages JobMatrix.aspx and Directories.aspx

Not work when closing  or click Radbutton closing  - Window refresh Grid.
Not work when clicking Radbutton update and closing window refresh Grid. 

Thank you.


JobMatrix.aspx
========================
<%@ Page Title="" Language="C#" MasterPageFile="~/HomePage.master" AutoEventWireup="true" CodeFile="JobMatrix.aspx.cs" Inherits="Views_Home_JobMatrix" %>

<asp:Content ID="Title" ContentPlaceHolderID="TitleContent" runat="Server">
</asp:Content>
<asp:Content ID="Main" ContentPlaceHolderID="MainContent" runat="Server">
    <form id="Form_JobMatrix" runat="server">
        <telerik:RadScriptManager ID="RdScriptManager" runat="server">
            <Scripts>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
            </Scripts>
        </telerik:RadScriptManager>
        <telerik:RadSkinManager ID="QsfSkinManager" runat="server" ShowChooser="true" />
        <telerik:RadFormDecorator ID="QsfFromDecorator" runat="server" DecoratedControls="All" EnableRoundedCorners="false" />
        <telerik:RadCodeBlock ID="RdCodeBlock_JobMatrix" runat="server">
            <script type="text/javascript" src="../../JS/JS_GridJobMatrix.js"></script>
        </telerik:RadCodeBlock>
        <telerik:RadAjaxManager ID="RdAjaxManager_JobMatrix" runat="server" OnAjaxRequest="RdAjaxManager_JobMatrix_AjaxRequest">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RdAjaxManager_JobMatrix">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RdGrid_JobMatrix" LoadingPanelID="RdAjaxLoadingPanel_JobMatrix" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="RdGrid_JobMatrix">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RdGrid_JobMatrix" LoadingPanelID="RdAjaxLoadingPanel_JobMatrix" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <telerik:RadAjaxLoadingPanel runat="server" ID="RdAjaxLoadingPanel_JobMatrix"></telerik:RadAjaxLoadingPanel>
        <telerik:RadGrid ID="RdGrid_JobMatrix" runat="server" AutoGenerateColumns="False" CellSpacing="0" GridLines="None">
            <PagerStyle Mode="NumericPages"></PagerStyle>
            <MasterTableView AutoGenerateColumns="False" Width="100%" CommandItemDisplay="Top" PageSize="5">
                <Columns>
                    <telerik:GridBoundColumn DataField="ID" SortExpression="ID" HeaderText="ID" UniqueName="column_ID" Visible="false">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="catName" SortExpression="catName" HeaderText="КАТЕГОРИЯ" UniqueName="catName">
                        <ItemStyle HorizontalAlign="Center" />
                        <FooterStyle HorizontalAlign="Center" />
                        <HeaderStyle HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="catParent" SortExpression="catParent" HeaderText="ПОДКАТЕГОРИЯ" UniqueName="column_catParent">
                        <ItemStyle HorizontalAlign="Center" />
                        <FooterStyle HorizontalAlign="Center" />
                        <HeaderStyle HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="jName" SortExpression="jName" HeaderText="РАБОТА" UniqueName="column_jName">
                        <ItemStyle HorizontalAlign="Center" />
                        <FooterStyle HorizontalAlign="Center" />
                        <HeaderStyle HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="jmNeedApprove" SortExpression="jmNeedApprove" HeaderText="ОКЕЙ" UniqueName="column_jmNeedApprove">
                        <ItemStyle HorizontalAlign="Center" />
                        <FooterStyle HorizontalAlign="Center" />
                        <HeaderStyle HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="pName" SortExpression="pName" HeaderText="ДОЛЖНОСТЬ" UniqueName="column_dbuName">
                        <ItemStyle HorizontalAlign="Center" />
                        <FooterStyle HorizontalAlign="Center" />
                        <HeaderStyle HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="dbuName" SortExpression="dbuName" HeaderText="ИСПОЛНИТЕЛЬ" UniqueName="column_pName">
                        <ItemStyle HorizontalAlign="Center" />
                        <FooterStyle HorizontalAlign="Center" />
                        <HeaderStyle HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Manager" SortExpression="Manager" HeaderText="МЕНЕДЖЕР" UniqueName="column_dbuNameM">
                        <ItemStyle HorizontalAlign="Center" />
                        <FooterStyle HorizontalAlign="Center" />
                        <HeaderStyle HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="jmValid" SortExpression="jmValid" HeaderText="СТАТУС" UniqueName="column_jmValid">
                        <ItemStyle HorizontalAlign="Center" />
                        <FooterStyle HorizontalAlign="Center" />
                        <HeaderStyle HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                </Columns>
                <CommandItemTemplate>
                    <a href="#" onclick="return ShowInsertForm();">Add New Record</a>
                </CommandItemTemplate>
            </MasterTableView>
            <ClientSettings>
                <Selecting AllowRowSelect="true"></Selecting>
                <ClientEvents OnRowDblClick="RowDblClick"></ClientEvents>
            </ClientSettings>
        </telerik:RadGrid>
        <telerik:RadWindowManager ID="RdWindowManager_JobMatrix" runat="server" EnableShadow="true">
            <Windows>
                <telerik:RadWindow ID="RdWindow_editor" runat="server" Modal="True" Behaviors="Close, Move" Width="1000px" Height="600px" Title="JobMap РЕДАКТОР"
                    DestroyOnClose="True" NavigateUrl="Directories.aspx" Skin="Metro" EnableViewState="False" VisibleStatusbar="false"
                    ShowContentDuringLoad="false" ReloadOnShow="true">
                </telerik:RadWindow>
            </Windows>
        </telerik:RadWindowManager>
    </form>
</asp:Content>


Directories.aspx
==============================

<%@ Page Title="" Language="C#" MasterPageFile="~/HomePage.master" AutoEventWireup="true" CodeFile="Directories.aspx.cs" Inherits="Views_Home_Directories" %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

<asp:Content ID="Title" ContentPlaceHolderID="TitleContent" runat="Server">
</asp:Content>
<asp:Content ID="Main" ContentPlaceHolderID="MainContent" runat="Server">
    <form id="FormDirectories" runat="server">
        <div>
            <telerik:RadScriptManager ID="RdScriptManager" runat="server">
                <Scripts>
                    <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
                    <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
                    <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
                </Scripts>
            </telerik:RadScriptManager>
            <telerik:RadCodeBlock ID="RdCodeBlock" runat="server">
                <script type="text/javascript" src="../../JS/JS_WinDirectories.js"></script>
            </telerik:RadCodeBlock>
            <telerik:RadFormDecorator ID="RdFormDecorator" runat="server" Skin="Vista" DecoratedControls="All" />
            <telerik:RadAjaxManager ID="RdAjaxManager_JobMatrix" runat="server"></telerik:RadAjaxManager>
            <telerik:RadAjaxPanel ID="RdAjaxPanel_Directory" runat="server" Height="100%" Width="100%">
                <asp:Table ID="TableDirectories" runat="server">
                    <asp:TableRow>
                        <asp:TableCell>
                            КАТЕГОРИЯ
                        </asp:TableCell>
                        <asp:TableCell>
                            <telerik:RadComboBox ID="RdComboBox_catName" runat="server" AutoPostBack="true" Skin="Metro" Width="200px" OnSelectedIndexChanged="RdComboBox_catName_SelectedIndexChanged">
                            </telerik:RadComboBox>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>
                            ПОДКАТЕГОРИЯ
                        </asp:TableCell>
                        <asp:TableCell>
                            <telerik:RadComboBox ID="RdComboBox_catParent" runat="server" Skin="Metro" Width="200px">
                            </telerik:RadComboBox>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>
                            РАБОТА
                        </asp:TableCell>
                        <asp:TableCell>
                            <telerik:RadComboBox ID="RdComboBox_jName" runat="server" Skin="Metro" Width="200px">
                            </telerik:RadComboBox>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>
                            ОКЕЙ
                        </asp:TableCell>
                        <asp:TableCell>
                            <telerik:RadComboBox ID="RdComboBox_jmNeedApprove" runat="server" Skin="Metro" Width="200px">
                                <Items>
                                    <telerik:RadComboBoxItem Text="" Value="-1" />
                                    <telerik:RadComboBoxItem Text="НЕТ" Value="0" />
                                    <telerik:RadComboBoxItem Text="ДА" Value="1" />
                                </Items>
                            </telerik:RadComboBox>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>
                            ДОЛЖНОСТЬ
                        </asp:TableCell>
                        <asp:TableCell>
                            <telerik:RadComboBox ID="RdComboBox_pName" runat="server" Skin="Metro" Width="200px">
                            </telerik:RadComboBox>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>
                            ИСПОЛНИТЕЛЬ
                        </asp:TableCell>
                        <asp:TableCell>
                            <telerik:RadComboBox ID="RdComboBox_dbuName" runat="server" Skin="Metro" Width="200px">
                            </telerik:RadComboBox>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>
                            МЕНЕДЖЕР
                        </asp:TableCell>
                        <asp:TableCell>
                            <telerik:RadComboBox ID="RdComboBox_Manager" runat="server" Skin="Metro" Width="200px">
                            </telerik:RadComboBox>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>
                            СТАТУС
                        </asp:TableCell>
                        <asp:TableCell>
                            <telerik:RadComboBox ID="RdComboBox_jmValid" runat="server" Skin="Metro" Width="200px">
                                <Items>
                                    <telerik:RadComboBoxItem Text="" Value="-1" />
                                    <telerik:RadComboBoxItem Text="НЕ АКТИВНА" Value="0" />
                                    <telerik:RadComboBoxItem Text="АКТИВНА" Value="1" />
                                </Items>
                            </telerik:RadComboBox>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell>
                            
                        </asp:TableCell>
                        <asp:TableCell>
                            <telerik:RadButton ID="RdButtonUpdate" runat="server" Text="Обновить" Skin="Metro" OnClick="RdButtonUpdate_Click"></telerik:RadButton>
                            <telerik:RadButton ID="RdButtonCancel" runat="server" Text="Отмена" Skin="Metro" OnClick="RdButtonCancel_Click"></telerik:RadButton>
                        </asp:TableCell>
                    </asp:TableRow>
                </asp:Table>
            </telerik:RadAjaxPanel>
        </div>
    </form>
</asp:Content>


JS_GridJobMatrix.js
===================

function ShowEditForm(id, rowIndex) {
    var grid = $find("<%= RdGrid_JobMatrix.ClientID %>");

    var rowControl = grid.get_masterTableView().get_dataItems()[rowIndex].get_element();
    grid.get_masterTableView().selectItem(rowControl, true);

    window.radopen("Directories.aspx?ID=" + id, "RdWindow_editor");
    return false;
}
function ShowInsertForm() {
    window.radopen("Directories.aspx", "RdWindow_editor");
    return false;
}
function refreshGrid(arg) {
    if (!arg) {
        $find("<%= RdAjaxManager_JobMatrix.ClientID %>").ajaxRequest("Rebind");
    }
    else {
        $find("<%= RdAjaxManager_JobMatrix.ClientID %>").ajaxRequest("RebindAndNavigate");
    }
}
function RowDblClick(sender, eventArgs) {
    window.radopen("Directories.aspx?ID=" + eventArgs.getDataKeyValue("ID"), "RdWindow_editor");
}


JS_WinDirectories.js
=======================

function CloseAndRebind(args) {
    GetRadWindow().BrowserWindow.refreshGrid(args);
    GetRadWindow().close();
}
function GetRadWindow() {
    var oWindow = null;
    if (window.radWindow) oWindow = window.radWindow;
    else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
    return oWindow;
}
function
    CancelEdit() {
    GetRadWindow().close();
}

C# code
===============================
protected void RdButtonUpdate_Click(object sender, EventArgs e)
    {
        string _idJobM = Request.QueryString["ID"];

        string s_catName = RdComboBox_catName.SelectedValue.ToString();
        int i_catName;
        int.TryParse(s_catName, out i_catName);

        string s_catParent = RdComboBox_catParent.SelectedValue.ToString();
        int i_catParent;
        int.TryParse(s_catParent, out i_catParent);

        string s_dbuName = RdComboBox_dbuName.SelectedValue.ToString();
        int i_dbuName;
        int.TryParse(s_dbuName, out i_dbuName);

        string s_Manager = RdComboBox_Manager.SelectedValue.ToString();
        int i_Manager;
        int.TryParse(s_Manager, out i_Manager);

        string s_jName = RdComboBox_jName.SelectedValue.ToString();
        int i_jName;
        int.TryParse(s_jName, out i_jName);

        string s_jmNeedApprove = RdComboBox_jmNeedApprove.SelectedValue.ToString();
        int i_jmNeedApprove;
        int.TryParse(s_jmNeedApprove, out i_jmNeedApprove);

        string s_pName = RdComboBox_pName.SelectedValue.ToString();
        int i_pName;
        int.TryParse(s_pName, out i_pName);

        string s_jmValid = RdComboBox_jmValid.SelectedValue.ToString();
        int i_jmValid;
        int.TryParse(s_jmValid, out i_jmValid);

        sqlparams.Clear();
        if (_idJobM != null) { sqlparams.Add("@ID", _idJobM); }
        if (s_catName != "-1") { sqlparams.Add(SqlDbType.Int, ParameterDirection.Input, "@jmCategory_ID", i_catName); }
        if (s_catParent != "-1") { sqlparams.Add(SqlDbType.Int, ParameterDirection.Input, "@jmSubCategory_ID", i_catParent); }
        if (s_dbuName != "-1") { sqlparams.Add(SqlDbType.Int, ParameterDirection.Input, "@jmDBUser_ID", i_dbuName); }
        if (s_Manager != "-1") { sqlparams.Add(SqlDbType.Int, ParameterDirection.Input, "@jmManager_ID", i_Manager); }
        if (s_jName != "-1") { sqlparams.Add(SqlDbType.Int, ParameterDirection.Input, "@jmJob_ID", i_jName); }
        if (s_jmNeedApprove != "-1") { sqlparams.Add(SqlDbType.Int, ParameterDirection.Input, "@jmNeedApprove", i_jmNeedApprove); }
        if (s_pName != "-1") { sqlparams.Add(SqlDbType.Int, ParameterDirection.Input, "@jmPosition_ID", i_pName); }
        if (s_jmValid != "-1") { sqlparams.Add(SqlDbType.Int, ParameterDirection.Input, "@jmValid", i_jmValid); }

        UniDataAdapter daUpdateJobMatrix = new UniDataAdapter(dsWEBSDESK, "tUpdateJobMatrix", "dbo.sp_UpdateJobMatrix", CommandType.StoredProcedure, sqlparams.GetParametrs());
        ClientScript.RegisterStartupScript(Page.GetType(), "mykey", "CloseAndRebind();", true);
    }
    protected void RdButtonCancel_Click(object sender, EventArgs e)
    {
        ClientScript.RegisterStartupScript(Page.GetType(), "mykey", "CancelEdit();", true);
    }



















Denis
Top achievements
Rank 1
 answered on 08 Apr 2014
9 answers
722 views
I am calling Radwindows from my radgrid and found the best way to do so is to use A Hrefs links inside of template columns.  I now have a case where I need to hide the link if a situation holds true.  I tried to use HtmlLnks, cell text and nothing has worked to get the A href.  How can I get a hold of the a href to hide it if a condition holds true.  Thanks

<telerik:GridTemplateColumn HeaderText="Edit" UniqueName="Href">
                                   <ItemTemplate>
                                       <a href="#" id="Request" title="EDIT MAC" onclick="SelectWindow(<%#Eval("intMacTypeId")%>, <%#Eval("intUserId")%>);return false;"><u>Edit MAC</u></a>
                                   </ItemTemplate>
                               </telerik:GridTemplateColumn>
 
Protected Sub myRadGrid_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles myRadGrid.ItemDataBound
       If TypeOf e.Item Is GridDataItem Then
           Dim item As GridDataItem = DirectCast(e.Item, GridDataItem)
           Dim ncc As CheckBox = DirectCast(item.FindControl("cbNcc"), CheckBox)
           Dim delete As LinkButton = DirectCast(item.FindControl("lnkDelete"), LinkButton)
           Dim user As HiddenField = DirectCast(item.FindControl("HFImoId"), HiddenField)
           Dim cell As TableCell = item("Href")
           Dim cellText As String = cell.Text
 
 
           If ncc.Checked = True Then
               delete.Visible = False
               cellText = ""
           End If
 
           If user.Value <> HFUserId.Value Then
               delete.Visible = False
               cellText = ""
           End If
       End If
   End Sub
Princy
Top achievements
Rank 2
 answered on 08 Apr 2014
1 answer
93 views
Hi,

I have a RadGrid using the NeedDataSource event. The problem is that when I enter in EditMode, the entire grid is rebinded and I don't want to keep data in ViewState or Session variable, so on each edit/cancel edit the grid is rebinded.

I am keeping my primary key in the DataKeyValues, so is it possible to not rebind the grid on edit so I can create my own Object by passing the primary key.

I could use a NestedViewTemplate that have a UserControl that I can pass the primary key value and then I could manually bind this usercontrol with a custom object.
But the NestedViewTemplate also rebind the grid on ExpandColumn.

Any solutions?

Jocelyn
Marin
Telerik team
 answered on 08 Apr 2014
1 answer
82 views
Sir;

I have one problem, in which i have items list with images. and menu on items .

1) when i click on menu items should be updated. refreshed. 
2) when i click on items , it should be added in grid . But Items should not be refreshed again.
     (my problem is when i click on item, its images start refreshing again.)

i had used radajaxmanager  for partial postback

Thanks & Regards
Raman singla
Eyup
Telerik team
 answered on 08 Apr 2014
2 answers
192 views
Hi,

We are using RadControls v2012.2.607.35 (in Sitecore 7). When a user enters a link or an email address in the design mode in IE then the Editor automatically generates the proper html code. In Firefox and Chrome these texts stay simple texts, no <a> tag is generated. I don't see any javascript errors.

Is this a bug or a known feature?

I've attached one screenshot from IE and one from Firefox.

Thanks in advance.
Attila
Top achievements
Rank 1
 answered on 08 Apr 2014
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?