Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
178 views
When I add RenderMode="Lightweight" to a RadWindowManager, only the active RadWindow is fully visible.
All other open RadWindows are semi-transparent.

Without the RenderMode="Lightweight", the content of all RadWindows are fully visible.  It's only the Titlebar and "window frame" of non-active windows that become semi-transparent.

I would like to keep RenderMode="Lightweight" but still have content of all windows fully visible.
I see an "Opacity" attribute, but it doesn't seem to do anything.

One of the main reasons to use multiple RadWindows is that users can compare the content of 2 or more windows,or one window has info that is pertinent/related to another window.

This becomes impossible when RenderMode="Lightweight"  because only the active window can be fully seen.

Help!
Marin Bratanov
Telerik team
 answered on 17 Jun 2013
3 answers
249 views
Is it possible, in this first version, to have a single vertical column of tiles? 

E.g.  I would like 5 'tiles' stacked vertically in a 1x5 grid layout.

I cannot find a way to stop the tiles being added horizontally.

The documentation http://www.telerik.com/help/aspnet-ajax/tilelist-tiles-overview.html states :
"Tiles are ordered in columns, where each subsequent tile from the control declaration is placed below the previous one."  but this does not seem to be the case, each subsequent tile is placed to the right of the previous one.

I know this is the v1.0 of this control, but I'm confused.

thanks
Marin Bratanov
Telerik team
 answered on 17 Jun 2013
1 answer
106 views
Is it possible to put a crlf / <br> within the Text property in the default view of a

RadImageAndTextTile ?

Marin Bratanov
Telerik team
 answered on 17 Jun 2013
3 answers
164 views
Hello,

When I run the following locally, it executes without error. As soon as I upload it to Azure I get the following  javascript error:


SCRIPT5022: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500
Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a81e8380f-3d65-467a-87ae-ccddde9a2478%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%3aen-US%3abcbc5876-5d5e-4774-955e-2ecda3d55cd3%3a16e4e7cd%3af7645509%3a22a6274a%3aed16cbdc%3a86526ba7%3a874f8ea2%3a24ee1bba%3a7165f74, line 15 character 16238

The button is defined as follows:

<telerik:RadButton ID="loginButton" runat="server" Text="Login" SingleClickText="Validating" SingleClick="true" OnClick="btnLoginClick" >
               </telerik:RadButton>


The code behind is a follows: 

protected void btnLoginClick(object sender, EventArgs args)
   {
       try
       {
           string uName;
           string uPass;
           uName=UsernameBox.Text;
           uPass=PasswordBox.Text;
           if(uName=="admin" && uPass=="password")
           {
               Response.Redirect("dsxHome.aspx");
           }
           else
           {
               loginMessage.InnerText="Login Invalid!";
           }//end if
    
       }
       catch
       {
           loginMessage.InnerText="Problem with Login";
       }
    }//end function

Thoughts?


Danail Vasilev
Telerik team
 answered on 17 Jun 2013
2 answers
69 views
Hi,

In previous releases, the title of a RadWindow was set automatically to the title of the content window (if not set explicitly).
In the new Q2 release, this isn't working anymore...

We are using this in all our windows, and after upgrading all our windows have blank titles!

Regards
Caesar
Marin Bratanov
Telerik team
 answered on 17 Jun 2013
5 answers
746 views

Hi Telerik team;

I am trying to achive the following thing in my radgrid.  I have a mastergrid and a detail table in my aspx.  In the detail table I need to set the rowspan of the first column such a way that there is only 1 cell in that column with text.  I have enclosed the jpg that I am trying to achieve.  I tried using this code in the onItemDataBound event:  But I am not getting the desired result.  I have also enclosed my actual result.  Could you please help?  

Thanks in advance,

Meera 

//Aspx

 

<

 

telerik:RadGrid ID="viewGrid" runat="server" ActiveItemStyle-BorderColor="ActiveBorder"

 

 

 

 

 

 

ShowStatusBar="True" AllowSorting="true" ItemStyle-BorderWidth="1px" OnSortCommand="viewGrid_Sort"

 

 

 

 

 

 

MasterTableView-ExpandCollapseColumn-CollapseImageUrl="~/App_Themes/Images/Content/collapse.gif"

 

 

MasterTableView-ExpandCollapseColumn-ItemStyle-CssClass="textalignleft"

 

 

MasterTableView-ExpandCollapseColumn-ButtonType="ImageButton"

 

 

MasterTableView-ExpandCollapseColumn-ExpandImageUrl="~/App_Themes/Images/Content/expand.gif"

 

 

 

 

 

 

OnUpdateCommand="viewGrid_UpdateCommand" Width="900px"

 

 

 

 

 

 

MasterTableView-ExpandCollapseColumn-ItemStyle-HorizontalAlign="Center" OnItemCreated="viewGrid_ItemCreated"

 

 

 

 

 

 

MasterTableView-ExpandCollapseColumn-ItemStyle-VerticalAlign="Middle" OnItemDataBound="viewGrid_DataBound"

 

 

 

 

 

 

MasterTableView-ExpandCollapseColumn-ItemStyle-Width="2%" OnDetailTableDataBind="viewGrid_DetailTableDataBind"

 

 

OnNeedDataSource="viewGrid_NeedDataSource" OnPreRender="viewGrid_PreRender"

 

 

OnInsertCommand="viewGrid_InsertCommand" AllowMultiRowEdit="false">

 

 

 

 

 

 

<MasterTableView AutoGenerateColumns="False" HierarchyLoadMode="ServerBind"

 

 

 

 

 

 

DataKeyNames="DomainName,ParentDomainValue" Name="Master" >

 

 

 

 

 

 

<DetailTables>

 

 

 

 

 

 

<telerik:GridTableView DataKeyNames="DomainName,ParentDomainName,ParentDomainValue,DomainValue" Name="DomainLabel"

 

 

AutoGenerateColumns="false" BorderStyle="None" ItemStyle-BorderWidth="0px" AllowSorting="false"

 

 

ShowHeader="false" Width="900px"

 

 

 

 

 

 

CommandItemDisplay="Top" EditMode="InPlace">

 

 

 

 

 

 

<ParentTableRelation>

 

 

 

 

 

 

<telerik:GridRelationFields DetailKeyField="DomainName" MasterKeyField="DomainName" />

 

 

 

 

 

 

</ParentTableRelation>

 

 

 

 

 

 

<CommandItemSettings AddNewRecordText="<%$ Resources:DomainAdmin, locAddDomainValue %>" />

 

 

 

 

 

 

<Columns>

 

 

 

 

 

 

<telerik:GridTemplateColumn UniqueName="DomainLabelcol" >

 

 

 

 

 

 

<ItemTemplate>

 

 

 

 

 

 

<asp:Label ID="plSubject" runat="server" Text="Domain Values" />

 

 

 

 

 

 

</ItemTemplate>

 

 

 

 

 

 

<ItemStyle Width="150px" Wrap="false" HorizontalAlign="Left" CssClass="panelstyle"

 

 

ForeColor="#62267f" Font-Bold="true"/>

 

 

 

 

 

 

</telerik:GridTemplateColumn>

 

 

 

 

 

 

<telerik:GridBoundColumn UniqueName="DomainValue" DataType="System.String"

 

 

 

 

 

 

DataField="DomainValue" ColumnEditorID="GridTextBoxColumnEditor1"

 

 

 

 

 

 

ItemStyle-HorizontalAlign="Left"

 

 

 

 

 

 

ItemStyle-Wrap="false"

 

 

 

 

 

 

ItemStyle-Width="300px">

 

 

 

 

 

 

</telerik:GridBoundColumn>

 

 

 

 

 

 

<telerik:GridCheckBoxColumn DataField="ActiveFlag" UniqueName="ActiveFlag"

 

 

DataType="System.Boolean"

 

 

ItemStyle-HorizontalAlign="Left"

 

 

 

 

 

 

ItemStyle-Wrap="false"

 

 

 

 

 

 

ItemStyle-Width="20px">

 

 

</telerik:GridCheckBoxColumn>

 

 

 

 

 

 

<telerik:GridTemplateColumn UniqueName="DomainLabelcol" >

 

 

 

 

 

 

<ItemTemplate>

 

 

 

 

 

 

<asp:Label ID="lblActive" Text="Active" runat="server" CssClass="ActiveLabelStyle" />

 

 

 

 

 

 

</ItemTemplate>

 

 

 

 

 

 

<ItemStyle Width="130px" Wrap="false" HorizontalAlign="Left" />

 

 

 

 

 

 

</telerik:GridTemplateColumn>

 

 

 

 

 

 

<telerik:GridEditCommandColumn ButtonType="ImageButton"

 

 

EditImageUrl="../App_Themes/Images/Buttons/domain_pur_edit.gif"

 

 

 

 

 

 

InsertImageUrl="../App_Themes/Images/Buttons/domain_gr_insert.gif"

 

 

 

 

 

 

CancelImageUrl="../App_Themes/Images/Buttons/domain_gr_cancel.gif"

 

 

 

 

 

 

UpdateImageUrl="../App_Themes/Images/Buttons/domain_gr_update.gif"

 

 

 

 

 

 

UniqueName="EditDomainValueColumn"

 

 

 

 

 

 

ItemStyle-HorizontalAlign="Right"

 

 

 

 

 

 

ItemStyle-Wrap="false"

 

 

 

 

 

 

ItemStyle-Width="200px">

 

 

 

 

 

 

</telerik:GridEditCommandColumn>

 

 

 

 

 

 

<telerik:GridCheckBoxColumn DataField="EditableFlag" UniqueName="EditFlag"

 

 

DataType="System.Boolean" Visible="false" >

 

 

</telerik:GridCheckBoxColumn>

 

 

 

 

 

 

 

</Columns>

 

 

 

 

 

 

</telerik:GridTableView>

 

 

 

 

 

 

</DetailTables>

 

 

 

 

 

 

<Columns>

 

 

 

 

 

 

<telerik:GridBoundColumn UniqueName="DomainName" DataType="System.String" HeaderText="<%$ Resources:DomainAdmin, locDomainName %>"

 

 

 

 

 

 

DataField="DomainName" SortExpression="DomainName"

 

 

ItemStyle-HorizontalAlign="Left"

 

 

 

 

 

 

HeaderStyle-Width="200px" HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="false"

 

 

 

 

 

 

HeaderStyle-Font-Bold="true" HeaderStyle-ForeColor="#62267f" ItemStyle-Width="200px"

 

 

 

 

 

 

SortAscImageUrl="~/App_Themes/Images/Buttons/arrow_sort_up.png"

 

 

SortDescImageUrl="~/App_Themes/Images/Buttons/arrow_sort_down.png"

 

 

 

 

 

 

>

 

 

 

 

 

 

</telerik:GridBoundColumn>

 

 

 

 

 

 

<telerik:GridBoundColumn UniqueName="ParentDomainName" DataType="System.String"

 

 

 

 

 

 

HeaderText="<%$ Resources:DomainAdmin, locParentDomainName %>" DataField="ParentDomainName"

 

 

SortExpression="ParentDomainName"

 

 

 

 

 

 

ItemStyle-HorizontalAlign="Left"

 

 

 

 

 

 

HeaderStyle-Width="300px" HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="false"

 

 

 

 

 

 

HeaderStyle-Font-Bold="true" HeaderStyle-ForeColor="#62267f" ItemStyle-Width="300px"

 

 

 

 

 

 

SortAscImageUrl="~/App_Themes/Images/Buttons/arrow_sort_up.png"

 

 

SortDescImageUrl="~/App_Themes/Images/Buttons/arrow_sort_down.png">

 

 

</telerik:GridBoundColumn>

 

 

 

 

 

 

<telerik:GridBoundColumn UniqueName="ParentDomainValue" DataType="System.String" HeaderText="<%$ Resources:DomainAdmin, locParentDomainValue %>"

 

 

 

 

 

 

DataField="ParentDomainValue" SortExpression="ParentDomainValue"

 

 

 

 

 

 

ItemStyle-HorizontalAlign="Left"

 

 

 

 

 

 

HeaderStyle-Width="300px" HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="false"

 

 

 

 

 

 

HeaderStyle-Font-Bold="true" HeaderStyle-ForeColor="#62267f" ItemStyle-Width="300px"

 

 

 

 

 

 

SortAscImageUrl="~/App_Themes/Images/Buttons/arrow_sort_up.png"

 

 

SortDescImageUrl="~/App_Themes/Images/Buttons/arrow_sort_down.png">

 

 

 

 

 

 

</telerik:GridBoundColumn>

 

 

 

 

 

 

</Columns>

 

 

 

 

 

 

<AlternatingItemStyle Wrap="false"/>

 

 

 

 

 

 

<ItemStyle Wrap="false"/>

 

 

 

 

 

 

<RowIndicatorColumn Visible="False">

 

 

 

 

 

 

<HeaderStyle Width="20px" />

 

 

 

 

 

 

</RowIndicatorColumn>

 

 

 

 

 

 

<ExpandCollapseColumn ButtonType="ImageButton">

 

 

 

 

 

 

</ExpandCollapseColumn>

 

 

 

 

 

 

<EditFormSettings>

 

 

 

 

 

 

<PopUpSettings ScrollBars="None" />

 

 

 

 

 

 

</EditFormSettings>

 

 

 

 

 

 

</MasterTableView>

 

 

 

 

 

 

</telerik:RadGrid>

 

 

 



 

 

protected

 

void viewGrid_DataBound(object source, Telerik.Web.UI.GridItemEventArgs e)

 

{

 

if (!(e.Item is GridDataInsertItem))

 

{

 

if ((e.Item is GridDataItem) && (e.Item.OwnerTableView.Name == "DomainLabel"))

 

{

    //Merge rows

 

 

 

    GridTableView tv = (GridTableView)e.Item.OwnerTableView;

 

 

    for (int rowIndex = tv.Items.Count - 2; rowIndex >= 0; rowIndex--)

 

    {

 

        GridDataItem row = tv.Items[rowIndex];

 

 

        GridDataItem previousRow = tv.Items[rowIndex + 1];

 

 

        if (row["DomainLabelcol"].Text == previousRow["DomainLabelcol"].Text)

 

        {

            row[

"DomainLabelcol"].RowSpan = 2;

 

            previousRow[

"DomainLabelcol"].Visible = false;

 

            previousRow[

"DomainLabelcol"].Text = "&nbsp;";

 

        }

    }
}

Hector Hernandez
Top achievements
Rank 2
 answered on 17 Jun 2013
1 answer
98 views
Hi:
  
I have a Gridview with a TTP in an ItemTemplate Column Type, loading information through an user control. At the top I have a DropDownList that filters the information displayed when loading the page. The problem occurs when, in the first load of the page and, according to the DropDownList filter value, there is no results; which does not happen if i got results, so I think that there is some kind of detail I'm forgetting, on the ItemDataBound event. Any suggestions?
  
Thansk.
Marin Bratanov
Telerik team
 answered on 17 Jun 2013
1 answer
110 views
Hello: 

I have a Gridview with a ToolTip in an ItemTemplate Column Type, loading information
through an  user control. At the top I have a DropDownList that filters the information
displayed when loading the page. The problem occurs when, in the first load of the page and,
according to the DropDownList filter value, there is no results; when I change
the filter value, and data is displayed in the gridview, the OnAjaxUpdate event does
not fire, which does not happen if i got results in the first page loading, so I think that
there is some kind of detail I'm forgetting, on the ItemDataBound event.
Any suggestions?
  
Thanks.
Marin Bratanov
Telerik team
 answered on 17 Jun 2013
1 answer
163 views
Hi,

I am trying to use dynamic rad-menu in our application. I am following the code mentioned in telerik.com mentioned in the link below:
http://www.telerik.com/help/aspnet-ajax/panelbar-dynamically-created-radmenu.html
The problem is that the submenu side is not expanding instead it is showing at the rightmost part of parent nodes.
For reference I post my code below.
.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="mymenu3.aspx.cs" Inherits="Presentationlayer_mymenu3" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

<!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>MyMenu</title>
</head>
<body>
     <form id="form2" runat="server">
   <asp:ScriptManager ID="ScriptManager1" runat="server">
   </asp:ScriptManager>
   <telerik:RadPanelBar ID="RadPanelBar1" runat="server" Skin="Web20" Width="190px">
       <Items>
           <telerik:RadPanelItem runat="server" Text="Root Panel Item" Expanded="true" Selected="true">
               <Items>
                   <telerik:RadPanelItem runat="server" Value="templateHolder">
                   </telerik:RadPanelItem>
               </Items>
           </telerik:RadPanelItem>
       </Items>
       
       <CollapseAnimation Duration="100" Type="None" />
       <ExpandAnimation Duration="100" Type="None" />
   </telerik:RadPanelBar>
</form>
</body>
</html>

.aspx.cs
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Web.Configuration;
using System.Data.SqlClient;
using System.Globalization;
using Telerik.Web.UI;


public partial class Presentationlayer_mymenu3 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            //SqlConnection connec = new SqlConnection(@"Data Source=sharedmssql.znetindia.net,1235;Initial Catalog=abatech_primus;User ID=abatechadmin;Password=abatechweb123");
            //connec.Open();
            SqlDataAdapter adapter = new SqlDataAdapter("SELECT * FROM myMenuLinks", ConfigurationManager.ConnectionStrings["abatech_primusConnectionString"].ConnectionString);
            DataSet links = new DataSet();
            adapter.Fill(links);
            DataTable dt = new DataTable();
            dt = links.Tables[0];
            RadPanelItem panelItem = (RadPanelItem)RadPanelBar1.FindItemByValue("templateHolder");
            RadMenu myMenu = new RadMenu();
            myMenu.Width = Unit.Percentage(100);
            myMenu.Skin = "Web20";
            myMenu.Flow = ItemFlow.Vertical;
            myMenu.DataTextField = "Title";
            myMenu.DataFieldID = "CategoryId";
            myMenu.DataFieldParentID = "ParentId";
            myMenu.DataSource = dt;
            myMenu.DataBind();
            panelItem.Controls.Add(myMenu);

            foreach (RadMenuItem myItems in myMenu.GetAllItems())
            {
                myItems.Width = Unit.Percentage(100);
            }
        }
       
    }
}

Attaching the screen shot also for reference.

Thanks & Regards
Purojit
Jayesh Goyani
Top achievements
Rank 2
 answered on 17 Jun 2013
1 answer
39 views
When using the MetroTouch skin (or BlackMetroTouch or Silk) the drag/drop "dropClue" is not displayed. This is the small arrow and line between the list items.

You can see this problem behavior in this Telerik Listbox Demo. Does anyone have a work-around for this?

Magdalena
Telerik team
 answered on 17 Jun 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?