Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
258 views
Hi,

 Am using radgrid.I need to show more than 5 fields in the UI.so I want to warp the text of some fields like email,name etc

i have tried by using
HeaderStyle-Wrap="true" DataFormatString="<br>{0}</br>" HeaderStyle-Width ="40px"  itemStyle-Width="80px"  ItemStyle-Wrap="true"

and also used

 <table  style="table-layout:fixed; overflow:hidden">

But the contents are not wrapped. Anyone can help me to solve this isue

Thanks for your help

Dhana
Pooya
Top achievements
Rank 1
 answered on 10 May 2011
1 answer
63 views
Can you implement animations for the Ended (or ending) methods please?

I've done this so many times myself I really would like to save some time\code in the future :)

So on callback completed, have the resulting string rendered with a jQuery fade or slide animation after it's rendered in the panel so it doesn't just "pop" in

So again, I don't need the code to do this, I just would like a PITS item to get it added for a future release please :)
Pero
Telerik team
 answered on 10 May 2011
3 answers
35 views
I have a two grids to do drag drop with. One grid contains child view. If I select more than one child items (from different views) and drage them, the destination gets only one item dragged and not other.

  For example, I have products Like this

 Product A
            child 1
            Child 2
Product B
           Child 3
           Child 4

If I select Child 1 and Child 3, and drag them, I only get either Child1 or Child 3, not both.

Is that by design? Or there is something I might be missing? If I select Product A and Product B, both are dropped fine on destinaion grid.

   thanks
   Sameers
Veli
Telerik team
 answered on 10 May 2011
1 answer
105 views
I have looked thorough some info for this editor tools and knowing that ..there is no header and footer section . But I notice that when we print the contents of the editor , print with page no at header section and site info and date at footer section. So is there anyway that we can replace with some text with those info? Thanks in advance.
Shinu
Top achievements
Rank 2
 answered on 10 May 2011
1 answer
111 views

I use RadMenu:

<telerik:RadMenu EnableSelection="true" Skin="" OnItemDataBound="SiteMenu_databound" EnableViewState="false"
ID="SiteMenu" DataSourceID="SiteMapDataSource" runat="server">
</telerik:RadMenu>

I tried to reduce my pages' size so I am disabling ViewState on controls. I tried disabling RadMenu's viewstate but it does not work

Here are viewstate size stats:

Control Id    Type    ViewState Size

ctl00$ctl00$ContentPlaceHolder1$SiteMenu Telerik.Web.UI.RadMenu 0
ctl00$ctl00$ContentPlaceHolder1$SiteMenu$i0 Telerik.Web.UI.RadMenuItem 300
ctl00$ctl00$ContentPlaceHolder1$SiteMenu$i1 Telerik.Web.UI.RadMenuItem 244
ctl00$ctl00$ContentPlaceHolder1$SiteMenu$i1$i0 Telerik.Web.UI.RadMenuItem 200
ctl00$ctl00$ContentPlaceHolder1$SiteMenu$i1$i1 Telerik.Web.UI.RadMenuItem 184
ctl00$ctl00$ContentPlaceHolder1$SiteMenu$i2 Telerik.Web.UI.RadMenuItem 244
ctl00$ctl00$ContentPlaceHolder1$SiteMenu$i2$i0 Telerik.Web.UI.RadMenuItem 228
ctl00$ctl00$ContentPlaceHolder1$SiteMenu$i2$i1 Telerik.Web.UI.RadMenuItem 180
ctl00$ctl00$ContentPlaceHolder1$SiteMenu$i2$i2 Telerik.Web.UI.RadMenuItem 208
ctl00$ctl00$ContentPlaceHolder1$SiteMenu$i2$i3 Telerik.Web.UI.RadMenuItem 188

You see that RadMenu viewstate is 0 but RadmenuItems not. Why is that?

Veronica
Telerik team
 answered on 10 May 2011
1 answer
83 views
Hello,

I want to change the raddock title runtime from the code behind. It would be dynamic dependeing upon the data from the database.

How is it achievable ? Most of the time docktile will be set from the user control.
Pero
Telerik team
 answered on 10 May 2011
3 answers
76 views
I just read through the Q2 2011 roadmap article, and I was disappointed that Telerik is not planning to improve the filtering features on rad grid.

The lack of a really good filtering capabilitiy, such as found in Excel or Telerik's WPF grid, is the single most glaring drawback of this otherwise excellent control.  I get negative feedback on the subject from users, which prompts me to look elsewhere, e.g. WPF, when developing a data visualization tool.

I know, there is an artcle that shows you how to customize the grid for filtering, and the effect is not bad.  But it is too much work for a feature that ought to be built-in.  If they can make it work in custom code, why can't they just make it a property of the grid?
Tsvetoslav
Telerik team
 answered on 10 May 2011
2 answers
107 views
I want to add a dropdown for tokens to a radeditor.  However, when I do this

<telerik:RadEditor runat="server" ID="BodyEditor" >
                    <Tools>
                        <telerik:EditorToolGroup>
                             <telerik:EditorDropDown Name="Tokens" Text="Tokens">
                             </telerik:EditorDropDown>
                        </telerik:EditorToolGroup>
                    </Tools>
                    <Content>
                    </Content>
                </telerik:RadEditor>

the formatting toolbar and others no longer appears.  I only want to add my custom dropdown, not replace the default toolbar.
Rumen
Telerik team
 answered on 10 May 2011
4 answers
550 views
how to clear the radgrid .after bind the record

SqlConn = ObjDBHelp.GetOpenConnection();

            DataTable dt1 = new DataTable();
            DataTable dt2 = new DataTable();
            SqlDataAdapter sqladp = new SqlDataAdapter();

            try
            {
                if (showinactive == "0")
                {
                    string selectQuery = "SELECT AssetName, SerialNumber, Asset_UserID,Asset_Inactive FROM [Assets] where Asset_Inactive>0 order by AssetName asc";
                    sqladp.SelectCommand = new SqlCommand(selectQuery, SqlConn);
                    sqladp.Fill(dt1);
                    int i = dt1.Rows.Count;
                    dt1 = null;

                    if (i > 0)
                    {
                        selectQuery = "SELECT a.AssetID,a.AssetName,a.SerialNumber,a.Asset_UserID,b.ppl_Name,a.Asset_Inactive FROM [Assets] a , People b " +
                                      "where a.Asset_UserID=b.PeopleID  order by AssetName asc";
                        sqladp.SelectCommand = new SqlCommand(selectQuery, SqlConn);
                        sqladp.Fill(dt2);
                        GridColumn chkbox = RadGrid1.MasterTableView.GetColumnSafe("Asset_Inactive");
                        chkbox.Visible = true;
                    }
                    else
                    {
                        selectQuery = "SELECT a.AssetID,a.AssetName,a.SerialNumber,a.Asset_UserID,b.ppl_Name,a.Asset_Inactive FROM [Assets] a , People b " +
                                      "where a.Asset_UserID=b.PeopleID  order by AssetName asc";
                        sqladp.SelectCommand = new SqlCommand(selectQuery, SqlConn);
                        sqladp.Fill(dt2);
                        RadGrid1.DataSource = dt2;
                        RadGrid1.DataBind();
                        GridColumn chkbox = RadGrid1.MasterTableView.GetColumnSafe("Asset_Inactive");
                        chkbox.Visible = false;
                    }
                }
                else
                {
                    string selectQuery = "SELECT AssetName, SerialNumber, Asset_UserID,Asset_Inactive FROM [Assets] where Asset_Inactive>0 order by AssetName asc";
                    sqladp.SelectCommand = new SqlCommand(selectQuery, SqlConn);
                    sqladp.Fill(dt1);
                    int i = dt1.Rows.Count;
                    dt1 = null;

                    if (i > 0)
                    {
                        selectQuery = "select  a.AssetID,a.AssetName,a.SerialNumber,a.Asset_UserID,b.ppl_Name,a.Asset_Inactive FROM [Assets] a , People b  " +
                                            "where a.Asset_UserID=b.PeopleID and a.Asset_Inactive=1 order by AssetName asc";
                        sqladp.SelectCommand = new SqlCommand(selectQuery, SqlConn);
                        sqladp.Fill(dt2);
                        showinactive = "0";
                    }
                }
                RadGrid1.DataSource = dt2;
                Session["AssetList"] = dt2;
            }
            finally
            {
                ObjDBHelp.CloseConnection(SqlConn);
                dt2 = null;
            }

Thanks,
Mohamed .
mohamed
Top achievements
Rank 1
 answered on 10 May 2011
1 answer
101 views
Hi All,

  I have two Rad listboxes on my web page. I can move the items from one list box. when I transfer the items from lefts side listbox to right side one, the value from left listbox are gone to the right listbox so everthing is working as I want it to be. when I save the listbox with the selected value and display the listbox again after running the web site again, the values that I selected are shown on the right side, but the same values are also shown on the left side. Is their any way I can exclude the values that are on the right side of the listbox not to be displayed on the left side of the listbox.
Shinu
Top achievements
Rank 2
 answered on 10 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?