Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
163 views
Hi,

Is it possible to change grid tool tip from "Drag to group or reorder" to "Drag to reorder" only as we are not allowing user to group columns. This tool tip can be seen when you hover mouse cursor on column header on rad grid.

Many thanks.

MG
FISCAL
Top achievements
Rank 1
 answered on 23 Jun 2010
2 answers
136 views
Hi,

We have a scenario here where we are creating a RadGrid and adding it to a ASP.NET Placeholder control dynamically from Code Behind.

But we are unable to use RadFilter with this RadGrid. Loading of RadFilter is based on the example shown in below link.


Difference is that we are using it with a dynamically generated RadGrid.

The issue is that when we click on the RadFilter to generate new filter expression it throws an 500 exception. As we have configured AJAX within application we are not able to identify what can be the reason of such an error message.
 
The error is as below :
Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500

While debugging we identified that FIlterContainer object is NULL for the RadFilter even when a valid Grid Id is provided. As the Grid is generated dynamically, the ID is assigned from code behind.

Did someone encountered such an issue with RadGrid and RadFilter ? We are highly frustrated with this. Not able to figure out what could be the reason. If there is some issue with dynamic coding............

Any help asap would be appreciated.

Thanks,
Nutan

Nutan
Top achievements
Rank 1
 answered on 23 Jun 2010
2 answers
179 views

Why GridCalculatedColumn does not display decimal numbers?

<telerik:GridCalculatedColumn DataFields="CustomersActivated,Customers" Expression="({0}/{1})*100" DataType="System.Double" DataFormatString="{0:f}" telerik:GridCalculatedColumn/> 

For values like 1 and 300 grid displays "0.00" instead of "0.33"

tomekm
Top achievements
Rank 1
 answered on 23 Jun 2010
1 answer
105 views
I have a load-on-demand tree (i.e. most nodes have node.ExpandMode = TreeNodeExpandMode.ServerSideCallBack).  In the Page_Load method how can I determine if the postback was caused by a node expand event?
Yana
Telerik team
 answered on 23 Jun 2010
1 answer
320 views
Hi

I have to div tags one which contains text and the other one which contains a rotator

If I have the div which contains the rotator set to display:block then I kan toggle between the divs (display:none / display:block).

however if the div which contains the rotator is set to display:none at startup It doesn't show when I toogle between the divs.

Example:

    <div>
        <div class="big_plan">
            <!--Tabs-->
            <div class="LejemaalMenu">
                <ul>
                    <li><a id="aFakta"  href='javascript:ShowFakta();' title='#'><span><span>tab text</span></span></a> </li>
                    <li><a id="aBillede" href='javascript:ShowImages();' title='#'><span><span>tab rotator</span></span></a> </li>
                </ul>
                <div class="LogoLejemaal"></div>
                <div class="clear">&nbsp;</div>
            </div>
            <div id="Fakta" style="display:block;">
                <div class="big_text">
                    <asp:Literal ID="ltBeskrivelse" runat="server"></asp:Literal>
                </div>
                <div class="info_big_img">
                    <h2>test testtest testtest test</h2>
                    <table class="table_c" cellpadding="0" cellspacing="0">
                        <tr class="alternativ_row">
                            <td>
                                test test
                            </td>
                            <td class="second_c">
                                test test
                            </td>
                        </tr>
                        <tr>
                            <td>
                                test test
                            </td>
                            <td class="second_c">
                                test testtest testtest test
                            </td>
                        </tr>
                        <tr class="alternativ_row">
                            <td>
                                test test
                            </td>
                            <td class="second_c">
                                test testtest test
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Aconto el
                            </td>
                            <td class="second_c">
                                <asp:Literal ID="ltEl" runat="server"></asp:Literal>,-
                            </td>
                        </tr>
                        <tr class="alternativ_row">
                            <td>
                                test testtest test
                            </td>
                            <td class="second_c">
                                test testtest testtest test
                            </td>
                        </tr>
                        <tr>
                            <td>
                                test test
                            </td>
                            <td class="second_c">
                                test testtest testtest test
                            </td>
                        </tr>
                    </table>
                    <div class="contact_box">
                        <h2>test test</h2>
                        test testtest testtest test
                    </div>
                </div>
            </div>
            <div id="Billeder" style="display:none">
                <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                    <ContentTemplate>
                        <div class="big_img2">
                            <h3>
                                <asp:Literal ID="ltBilledeText" runat="server"></asp:Literal></h3>
                            <img id="Billedet" runat="server" alt="" style="display:none" /><br />
                        </div>
                        <div class="Thumbs">
                            <telerik:RadRotator runat="server" ID="thumbRotator" RotatorType="ButtonsOver" Width="110" Height="450px" ItemHeight="100" ItemWidth="100" FrameDuration="1" ScrollDirection="Up,Down">
                                <ItemTemplate>
                                    <div class="itemTemplate">
                                        <img src='<%# DataBinder.Eval(Container.DataItem, "ThumbPath") %>' class="RotatorImage" />
                                    </div>
                                </ItemTemplate>
                            </telerik:RadRotator>
                        </div>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </div>
            <div class="clear">
            </div>
        </div>
        <div class="clear">
        </div>
    </div>
    </form>
</body>
</html>

<script language="javascript" type="text/javascript">
    function ShowImages() {
        $("#Fakta").hide("slow");
        $("#Billeder").show("slow");
        $("#aBillede").addClass("select");
        $("#aFakta").removeClass("select");
    }
    function ShowFakta() {
        $("#Fakta").show("slow");
        $("#Billeder").hide("slow");
        $("#aBillede").removeClass("select");
        $("#aFakta").addClass("select");
    }
</script>


Fiko
Telerik team
 answered on 23 Jun 2010
1 answer
287 views
I have a RadGrid with a nested DetailTables section, below there's the aspx code.
When the user clicks on a details row I want to get in C# code the DetailsTable selected DataKey or a telerik:GridBoundColumn value. I've tried attaching to RadGridAspnetUsers_ItemCommand event but couldn't find how to get the value.

Someone can help?

<telerik:RadGrid ID="RadGridAspnetUsers" runat="server" DataSourceID="ObjectDataSourceAspnetUser" 
                EnableEmbeddedSkins="False" GridLines="None" Skin="MachinaWeb" OnDetailTableDataBind="RadGridAspnetUsers_DetailTableDataBind" 
                OnItemCommand="RadGridAspnetUsers_ItemCommand" Height="670px"> 
                <ClientSettings EnablePostBackOnRowClick="True" AllowExpandCollapse="False" AllowGroupExpandCollapse="False"> 
                    <Selecting AllowRowSelect="True" /> 
                    <Scrolling AllowScroll="True" EnableVirtualScrollPaging="True" /> 
                </ClientSettings> 
                <MasterTableView AutoGenerateColumns="False" DataSourceID="ObjectDataSourceAspnetUser" 
                    DataKeyNames="UserId"> 
                    <CommandItemTemplate> 
                    </CommandItemTemplate> 
                    <RowIndicatorColumn> 
                        <HeaderStyle Width="20px" /> 
                    </RowIndicatorColumn> 
                    <ExpandCollapseColumn> 
                    </ExpandCollapseColumn> 
                    <Columns> 
                        <telerik:GridBoundColumn DataField="Cognome" HeaderText="Cognome" SortExpression="Cognome" 
                            UniqueName="Cognome" ItemStyle-Width="120px"> 
                            <ItemStyle Width="200px" /> 
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="Nome" HeaderText="Nome" SortExpression="Nome" 
                            UniqueName="Nome" ItemStyle-Width="120px"> 
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="UserId" DataType="System.Guid" HeaderText="UserId" 
                            SortExpression="UserId" UniqueName="UserId" Visible="false"> 
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="UserName" HeaderText="UserName" SortExpression="UserName" 
                            UniqueName="UserName" ItemStyle-Width="100px"> 
                            <ItemStyle Width="100px" /> 
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="Email" HeaderText="Email" SortExpression="Email" 
                            UniqueName="Email" ItemStyle-Width="120px"> 
                            <ItemStyle Width="200px" /> 
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="UserId" HeaderText="UserId" SortExpression="UserId" 
                            UniqueName="UserId" ItemStyle-Width="150px" Visible="false"> 
                            <ItemStyle Width="150px" /> 
                        </telerik:GridBoundColumn> 
                    </Columns> 
                    <EditFormSettings> 
                        <EditColumn> 
                        </EditColumn> 
                    </EditFormSettings> 
                    <DetailTables> 
                        <telerik:GridTableView runat="server" DataSourceID="ObjectDataSourceUtenti" EnableEmbeddedSkins="False" 
                            GridLines="None" Skin="MachinaWeb" OnItemCommand="ccc" 
                            AutoGenerateColumns="false" CssClass="RadGridUtentiMachinaDetailTable" Width="700px"> 
                            <ParentTableRelation> 
                                <telerik:GridRelationFields DetailKeyField="IdUtenteAsp" MasterKeyField="UserId" /> 
                            </ParentTableRelation> 
                            <Columns> 
                                <telerik:GridBoundColumn DataField="IdUtente" DataType="System.Int64" HeaderText="IdUtente" 
                                    SortExpression="IdUtente" UniqueName="IdUtente" Visible="false"> 
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn DataField="IdUtenteAsp" HeaderText="IdUtenteAsp" SortExpression="IdUtenteAsp" 
                                    UniqueName="IdUtenteAsp" DataType="System.Guid" Visible="false"> 
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn DataField="UserName" HeaderText="UserName" SortExpression="UserName" 
                                    UniqueName="UserName" Visible="false"> 
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn DataField="IdCultura" DataType="System.Int64" HeaderText="IdCultura" 
                                    ReadOnly="True" SortExpression="IdCultura" UniqueName="IdCultura" Visible="false"> 
                                </telerik:GridBoundColumn> 
                                <telerik:GridDropDownColumn DataField="IdAzienda" HeaderText="Azienda" SortExpression="Azienda" 
                                    UniqueName="Azienda" ListTextField="NomeAzienda" ListValueField="IdAzienda" DataSourceID="ObjectDataSourceAzienda" ItemStyle-Width="100px"> 
                                </telerik:GridDropDownColumn> 
                                <telerik:GridDropDownColumn HeaderText="Cultura" SortExpression="Cultura" DataSourceID="ObjectDataSourceCultura" 
                                    ListTextField="Cultura" ListValueField="IdCultura" DataField="IdCultura" UniqueName="Cultura" 
                                    ItemStyle-Width="40px"> 
                                    <ItemStyle Width="40px" /> 
                                </telerik:GridDropDownColumn> 
                                <telerik:GridBoundColumn DataField="IdGruppo" HeaderText="IdGruppo" SortExpression="IdGruppo" 
                                    UniqueName="IdGruppo" Visible="false" ReadOnly="True"> 
                                </telerik:GridBoundColumn> 
                                <telerik:GridDropDownColumn HeaderText="Gruppo" SortExpression="Gruppo" UniqueName="Gruppo" 
                                    DataField="IdGruppo" ListTextField="Nome" ListValueField="IdGruppoUtente" DataSourceID="ObjectDataSourceGruppoUtente" 
                                    ItemStyle-Width="80px"> 
                                    <ItemStyle Width="80px" /> 
                                </telerik:GridDropDownColumn> 
                                <telerik:GridDropDownColumn HeaderText="Stabilimento" SortExpression="Stabilimento" 
                                    UniqueName="Stabilimento" ListTextField="Denominazione" ListValueField="IdStabilimento" 
                                    DataField="IdStabilimento" DataSourceID="ObjectDataSourceStabilimento" ItemStyle-Width="100px"> 
                                    <ItemStyle Width="100px" /> 
                                </telerik:GridDropDownColumn> 
                                <telerik:GridDropDownColumn HeaderText="Reparto" SortExpression="Reparto" UniqueName="Reparto" 
                                    DataSourceID="ObjectDataSourceReparto" ListTextField="Reparto" ListValueField="IdReparto" 
                                    DataField="IdReparto" ItemStyle-Width="100px"> 
                                    <ItemStyle Width="100px" /> 
                                </telerik:GridDropDownColumn> 
                                <telerik:GridBoundColumn HeaderText="IdAziendaCorrente" SortExpression="IdAziendaCorrente" 
                                    UniqueName="IdAziendaCorrente" DataField="IdAziendaCorrente" Visible="false"> 
                                </telerik:GridBoundColumn> 
                            </Columns> 
                            <EditFormSettings> 
                                <EditColumn> 
                                </EditColumn> 
                            </EditFormSettings> 
                        </telerik:GridTableView> 
                    </DetailTables> 
                </MasterTableView> 
                <FilterMenu EnableEmbeddedSkins="False"> 
                </FilterMenu> 
                <HeaderContextMenu EnableEmbeddedSkins="False"> 
                </HeaderContextMenu> 
            </telerik:RadGrid> 




Princy
Top achievements
Rank 2
 answered on 23 Jun 2010
1 answer
97 views
Hi all,

I'm using below control in the application.
Telerik controls version : 2008.2.1001.35 (for Telerik.Web.UI.dll)

I'm trying to open an image in image map editor using the telerik controls. I see below error on the screen
-----------------------------------------------------------------------------------------------------------------------------------------------------

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)
Timestamp: Tue, 22 Jun 2010 15:26:48 UTC

Message: Invalid argument.
Line: 364
Char: 1
Code: 0
URI: http://deployweb27-vmh/virtualdir/ScriptResource.axd?d=WihqqjEecAvyXn5-_QocbnEzf1z_E-GzP_v5dtQ6cZfRAzpvwqzpyxaV0rtWxIicBR08FUEttZiRB1oCoINiECSdH-8vyPnUoXCPt2k6RkU1&t=ffffffffdfc5bbf0

-------------------------------------------------------------------------------------------------------------- ------------------------------

Investigation:
Based on some calculation, I see some negative value is assigning to a variable _45 in scriptResource.axd in the function wrapwithRoundCorners(). Just for testing purpose, I've modified to a positive value in debug window. I didn't see any issue then. If I left this with -ve value, it is throwing above said error.

Question:
I would like to know whether there are any issues with the combination of IE8 and windows7. Any inputs are appreciable to further proceed on this.


Thanks,
Mallesh.

Rumen
Telerik team
 answered on 23 Jun 2010
1 answer
177 views
Hi Telerik,

We are wanting to modify some built-in dialogs for RADEditor. The version of RADeditor that we have installed is 5.7.3.0 and we have MOSS 2007. 
In the instructions it says to copy the EditorDialogs folder to the \wpresources\RadEditorSharePoint\5.x.x.0__1f131a624888eeed\Resources\ directory.

My question is where do I copy the EditorDialogs folder from initially? I can't seem to locate it.

Thanks,
Claudz
Rumen
Telerik team
 answered on 23 Jun 2010
6 answers
287 views
Hi,

I have created application where tabs are generating dynamically.  When I am trying to delete those tabs with cross bar I am getting error like undefined tabs. Can any one solve this issue. I am getting error in javascript code. I can delete tabs with button click event. But I am unable to delete the code with crossbar. The Issue is in
        <%# DataBinder.Eval(Container, "Text") %> 

the text value is not binding there. How to bind the dynamically generating text value.
 protected void Page_Load(object sender, EventArgs e) 
    { 
        if (!Page.IsPostBack) 
        { 
            RadTab tab = new RadTab(); 
            tab.Text = string.Format("New Page {0}", 1); 
            RadTabStrip1.Tabs.Add(tab); 
 
            RadPageView pageView = new RadPageView(); 
            pageView.Height = new Unit("50px"); 
            pageView.Width = new Unit("1300px"); 
            RadMultiPage1.PageViews.Add(pageView); 
 
            BuildPageViewContents(pageView, RadTabStrip1.Tabs.Count); 
            RadTabStrip1.SelectedIndex = 0; 
 
        } 
    } 
 
    private void BuildPageViewContents(RadPageView pageView, int index) 
    { 
        pageView.ID = "Page " + index.ToString(); 
        pageView.Controls.Add(new LiteralControl(" <B>New page</B>" + (index).ToString())); 
    } 
 
    protected void Button1_Click(object sender, EventArgs e) 
    { 
 
        RadTab tab = new RadTab(); 
        tab.Text = string.Format("New Page {0}", RadTabStrip1.Tabs.Count + 1); 
        RadTabStrip1.ID = "Tab " + RadTabStrip1.Tabs.Count;  
        RadTabStrip1.Tabs.Add(tab); 
 
        RadPageView pageView = new RadPageView(); 
        pageView.ID = "Page " + pageView.Index.ToString(); 
        RadMultiPage1.ID = "page" + pageView.Index.ToString(); 
        RadMultiPage1.PageViews.Add(pageView); 
 
        BuildPageViewContents(pageView, RadTabStrip1.Tabs.Count); 
        RadTabStrip1RadTabStrip1.SelectedIndex = RadTabStrip1.SelectedIndex + 1; 
        RadMultiPage1.SelectedIndex = RadTabStrip1.SelectedIndex; 
 
    } 
 
 
.aspx 
 
 
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RadTab.aspx.cs" Inherits="Default" %> 
 
<%@ 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"> 
 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head runat="server"> 
    <title></title> 
    <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" /> 
</head> 
<body> 
    <form id="form1" runat="server"> 
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> 
        <Scripts> 
            <%--Needed for JavaScript IntelliSense in VS2010--%> 
            <%--For VS2008 replace RadScriptManager with ScriptManager--%> 
            <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> 
    <script type="text/javascript"> 
            /* <![CDATA[ */
            function deleteTab(tabText)
            {
                var tabStrip = $find("<%= RadTabStrip1.ClientID %>");
                var multiPage = $find("<%= RadMultiPage1.ClientID %>");
                var tab = tabStrip.findTabByText(tab.toString());
                
//                if (tab != null) 
//                  {
//                    alert(tab.toString());
//                  }
//                else alert(" TAB IS NULL ");
                
                var pageView = tab.get_pageView();
                
                var tabToSelect = tab.get_nextTab();
                if (!tabToSelect)
                    tabToSelect = tab.get_previousTab();
                    
                tabStrip.get_tabs().remove(tab);
                multiPage.get_pageViews().remove(pageView);
                
                if (tabToSelect)
                    tabToSelect.set_selected(true);
            }
            /* ]]> */ 
    </script> 
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> 
    </telerik:RadAjaxManager> 
    <telerik:RadTabStrip ID="RadTabStrip1" runat="server" Height="50px" SelectedIndex="0" Width="1300px" MultiPageID="RadMultiPage1"> 
      <TabTemplate> 
        <%# DataBinder.Eval(Container, "Text") %> 
        <img style="margin-left: 50px" src="delete.gif" alt="delete" onclick="deleteTab('<%# DataBinder.Eval(Container, "Text") %>')" /> 
      </TabTemplate> 
    </telerik:RadTabStrip> 
    <div> 
         <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Add Tab" /> 
         <asp:Button ID="Button2" runat="server" onclick="Button2_Click" Text="Delete Tab" /> 
    </div> 
    <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0"  
                          Height="320px" Width="700px" BorderStyle="Solid" OnPageViewItemCreated="RadMultiPage1_PageViewItemCreated1"> 
    </telerik:RadMultiPage> 
    </form> 
</body> 
</html> 
smith spd
Top achievements
Rank 1
 answered on 22 Jun 2010
1 answer
98 views

Hi All,
           i am using RadTabstrip in MOSS environment

<PublishingNavigation:PortalSiteMapDataSource ID="SiteMapDS" Runat="server" 
       SiteMapProvider="CurrentNavSiteMapProvider" EnableViewState="true" StartFromCurrentNode="true"   
       StartingNodeOffset="0" ShowStartingNode="false"/>  
     <telerik:RadTabStrip runat="server" ID="RadTabStrip1" skin="Suntab" EnableEmbeddedSkins="false" DataSourceID="SiteMapDS"/> 

How ever iam getting an error in Javascript (IE and Chrome ) in ScriptResource.axd

,set_element:function(_c2){  
this._element=_c2;  
thisthis._element._item=this;  
this._element._itemTypeName=Object.getTypeName(this);  
} 

this._element is null or not an object. when i remove the RadTabstrip this error does not happen

Can somebody let me know what could be the reason

Thanks in Advance
Thomson
Dimitar Milushev
Telerik team
 answered on 22 Jun 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?