Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
252 views
How do I set the grid to show alias of the column not  name of  the column in header?
Princy
Top achievements
Rank 2
 answered on 08 Jul 2008
1 answer
79 views
I have radcombobox which is binding on server side with a dataset.
but the problem is the first item selected looks bigger interms of text size then the other items in the combobox.

Please provide me the solution for this.
Thanks
raju
Yana
Telerik team
 answered on 08 Jul 2008
7 answers
147 views
Hello,

I use a RADGRID with a SQLDatasource.

My datasource use the query "select field1, field2 from Matable" and my grid has to list the 50 first recordings because the propertie pagesize is "50".
But the time of data's load is equal than time which is necessary to load the totality of the recordings.

Is it possible to load a "top 50" on each page?

Thank you
Shinu
Top achievements
Rank 2
 answered on 08 Jul 2008
3 answers
256 views
Hi everyone,

I have a simple RadComboBox like this one where a user can make a selection which is then saved in a database.

When the user comes back later, the value/text he selected is read from the DB and should initially be displayed in the combo box text field - still allowing him to make further alterations. With Prometheus 415 things worked but since upgrading to 619, the combo box text field remains empty initially. When the user clicks the drop-down-arrow, the list is filled correctly and the item he previously selected is highlighted as it should be.
But why is the text box white when the page first loads? It should show the selection the user made before.

Here's what I did:

My ComboBox:

<telerik:RadComboBox ID="TypeOfActionRadComboBox" runat="server" DataSourceID="TypeOfActionObjectDataSource" Skin="Outlook" Width="300px" DataTextField="name" DataValueField="tid">  
    <CollapseAnimation Duration="200" Type="OutQuint" /> 
</telerik:RadComboBox> 

Portion of code-behind (the type_of_action_id is set correctly to a valid int value)
this.TypeOfActionRadComboBox.SelectedItem.Value = this.type_of_action_id.ToString(); 

I also tried with ...RadComboBox.SelectedValue = ... but that didn't work either.

Any ideas?

Thanks

s.
Steven
Top achievements
Rank 2
 answered on 08 Jul 2008
2 answers
174 views
Hello there,

I am trying to create Contextmenu from RadMenu.Net2 version 4.4.5.0.
I am integrating this contextmenu with radtreeview.net2

ContextMenu code is given below in webpart:
relatedDocContextMenu = new RadMenu();
            relatedDocContextMenu.ID = "relDocContextMenu";
            relatedDocContextMenu.IsContext = true;
            relatedDocContextMenu.RadControlsDir = "/_wpresources/RadMenu.Net2/4.4.5.0_bbe59a8ad3533e68/RadControls";

            SPWeb oWeb = null;
            oWeb = SPContext.Current.Web;
            //Adding RadConTextMenu Items
            RadMenuItem itmFavorite = new RadMenuItem("Add Favorite");
            itmFavorite.ImageUrl = oWeb.Url + "/images/favstar.gif";

            relatedDocContextMenu.Items.Add(itmFavorite);

            RadMenuItem itmEmail = new RadMenuItem("Email");
            itmEmail.ImageUrl = oWeb.Url + "/images/favstar.gif";

            relatedDocContextMenu.Items.Add(itmEmail);

            RadMenuItem itmAlert = new RadMenuItem("Set Alert");
            itmAlert.ImageUrl = oWeb.Url + "/images/favstar.gif";

            relatedDocContextMenu.Items.Add(itmAlert);



            relatedDocContextMenu.ContextMenuElementID = "none";
            relatedDocContextMenu.UseEmbeddedScripts = false;


            apnlRelated.Controls.Add(relatedDocContextMenu);
====
apnlRelated is RadAjaxPanel in whic tree is also there.
=======================

Code to add contextmenu in treeview:
tvRelated = new RadTreeView();
            tvRelated.ID = "tvRelated";
            tvRelated.BeforeClientClick = "BeforeClientClickHandler";
            tvRelated.BeforeClientContextMenu = "ShowRadMenu";
            tvRelated.RadControlsDir = "/_wpresources/RadControls/";
            //tvRelated.ShowLineImages = false;
            //tvRelated.ImagesBaseDir = "/_wpresources/RadControls/Treeview/Skins";
            tvRelated.Skin = "Color";
            tvRelated.NodeBound += new RadTreeView.RadTreeViewEventHandler(tvRelated_NodeBound);
==========
script for ShowRadMenu:
===
private const string relatedDocConTextMenuScriptKey = "RelatedDocConextMenu";
        private string relatedRadContextMenuScript = "<script language='javascript' type='text/javascript'>";

            relatedRadContextMenuScript += "function ShowRadMenu(node, e)";
            relatedRadContextMenuScript += "{    ";
            relatedRadContextMenuScript += " var menu = null; ";
            //relatedRadContextMenuScript += "if (node.Category == 'Folder')";
            //relatedRadContextMenuScript += "{";
            //relatedRadContextMenuScript += "   menu = window['<%= relatedDocContextMenu.ClientID %>'];";window['ctl00_m_g_197245f5_94be_4c1a_8fb1_8a924e6e7f33_relDocContextMenu'];
            //relatedRadContextMenuScript += "}";
            //relatedRadContextMenuScript += "else";
            //relatedRadContextMenuScript += "{";
            relatedRadContextMenuScript += " alert(window['<%= relDocContextMenu.ClientID %>']);  menu = window['<%= relDocContextMenu.ClientID %>']; ";
            //relatedRadContextMenuScript += "}";
            relatedRadContextMenuScript += "  if (menu)";
            relatedRadContextMenuScript += "{";
            relatedRadContextMenuScript += "   menu.Show(e);";
            relatedRadContextMenuScript += "   e.cancelBubble = true;";
            relatedRadContextMenuScript += "   if (e.stopPropagation)";
            relatedRadContextMenuScript += "  {";
            relatedRadContextMenuScript += "e.stopPropagation();";
            relatedRadContextMenuScript += "   }";
            relatedRadContextMenuScript += " e.returnValue = false;";
            relatedRadContextMenuScript += "if (e.preventDefault)";
            relatedRadContextMenuScript += " {";
            relatedRadContextMenuScript += "    e.preventDefault();";
            relatedRadContextMenuScript += "}";
            relatedRadContextMenuScript += "}";
            relatedRadContextMenuScript += "}";
            relatedRadContextMenuScript += "</script>";
================
My problem is when i am right click on treenode this conextmenu should show. Is is calling the ShowRadMenu  funtion but it is not detecting RadMenu object.
alert(window['<%= relDocContextMenu.ClientID %>']);
The Above alert is showing "undefined";

SafeControls Entries:
<SafeControl Assembly="RadMenu.Net2, Version=4.4.5.0, Culture=neutral, PublicKeyToken=bbe59a8ad3533e68" Namespace="Telerik.WebControls" TypeName="*" Safe="True" />

<SafeControl Assembly="RadMenu.Net2, Version=4.4.5.0, Culture=neutral, PublicKeyToken=bbe59a8ad3533e68" Namespace="Telerik.RadMenuUtils" TypeName="*" Safe="True" />

I also tried with var menu = <%= relDocContextMenu.ClientID %>;
but no luck.
I also unchecked in configuration .axd - with "verify that file Exists".

Please help me out in this.

Thanks and Regards,
Nishim Attreja

Nishim Attreja
Top achievements
Rank 1
 answered on 08 Jul 2008
2 answers
132 views
I have a page that has RadWindowManager hardcoded on to it.

My page does a certain amount of initialisation in the OnInit phase of the page lifecycle.

If I encounter an condition that the user needs warning about I call I add a call to radalert to AjaxPanel.ResponseScripts. All I see on the client, however, is a JS error that reads ...

_5 is undefined
var _6=_5._getStandardPopup("alert",_1);

with a pointer to a Telerik.Web.UI.WebResource.axd resource.

What's the fat boy doing wrong now?

--
Stuart
Dan
Top achievements
Rank 1
 answered on 08 Jul 2008
2 answers
124 views
I just upgraded to the 619 version of the RadControls for ASP.NET AJAX.

I reviewing our working website the the updated controls, I have come across an interesting problem. 

Pages that have grids are rendering slowly.  During the page_load, the grid is half it's size (basically half of the available space).  Once the load is complete the grid expands to the 100% of the available space.

The grids are loaded into a content area of a masterpage.  They are also usually nested inside a tab/multipage control.  (Not sure if this matters)

But this is ending up to be a serious matter as it is pretty ugly to see a partially rendered grid and then have it expand every single time.

How do I go about fixing this?  We are nearly a beta to a customer and need to have this fixed...any ideas?  From anyone that may have seen this happen?

Thanks!
Svetlina Anati
Telerik team
 answered on 08 Jul 2008
1 answer
192 views
Hello...

I've a webpage with RadSplitter and a single horizontal RadSplitBar and 2 panes, the one in the top is a sliding one and the one below is a static hosting a RadGrid..

<

telerik:RadSplitter ID="Radsplitter2" runat="server" Orientation="Horizontal" Width="100%" Height="100%">
<telerik:RadPane ID="Radpane1" runat="server" Height="22" Scrolling="none">

<telerik:RadSlidingZone ID="Radslidingzone2" runat="server" Height="22" SlideDirection="Bottom">
<telerik:RadSlidingPane ID="Radslidingpane4" Title="Filter Criteriums" runat="server" Height="150">

Pane1

</telerik:RadSlidingPane>

</telerik:RadSlidingZone>
</telerik:RadPane>

<telerik:RadSplitBar ID="Radsplitbar3" runat="server"></telerik:RadSplitBar>

<telerik:RadPane ID="Radpane2" runat="server">
<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="ODS_OpenIssues" GridLines="None" Skin="Office2007" AllowSorting="True" AutoGenerateColumns="False">
............. omitted.................

        </telerik:RadGrid>
    </telerik:RadPane>
</
telerik:RadSplitter>


Here...
You can see that the RadSplitter is 100% height, the grid is too long to be displayed without some scrolling. The browser automatically creates a vertical one (which is exactly what I want).
My problem comes here... when I dock the slidingpane, then suddenly the RadSplitter gets attached with a vertical scrollbar :(  and when I undock it don't go away.. it still keeps a small amount to be scrolled inside the RadSplitter

What should I do to avoid that extra scrollbar? As I see it the RadSplitter should be recalculated to know it's "new" height.. ?

Kind regards
Janus
Svetlina Anati
Telerik team
 answered on 08 Jul 2008
4 answers
102 views
hi,

I need a help on making a bound column of a radgrid editable. I have bound the column at design time. I need to make a specified column editable from code behind after the data is bound.

can someone help me on this?

Thanks in advance
bineesh..
Princy
Top achievements
Rank 2
 answered on 08 Jul 2008
2 answers
154 views
I am trying to validate a new website I am developing against the w3.org CSS 2.1 validator and I am getting the following validation errors.

W3C CSS Validator results for http://beta.khp.org/default.aspx (CSS level 2.1)

Sorry! We found the following errors (11)

URI : http://beta.khp.org/WebResource.axd?d=dvOjN1zPPZSPrMQOh8lxNtNXxtfzL1yxHzl7YZGYBlIAu0nibvqQVvTbHLpn3IiH0&t=633506004070402858

40 div.radwindow table td.titlebar Property -moz-user-select doesn&apos;t exist : none
58 div.radwindow td.statusbar input Property -moz-user-select doesn&apos;t exist : none
59 div.radwindow td.statusbar input Property text-overflow doesn&apos;t exist in CSS level 2.1 but exists in [css3] : ellipsis
75 div.radwindow td.statusbar span.statustext Property -moz-user-select doesn&apos;t exist : none
112 div.radwindow table.titlebarcontrols em Property text-overflow doesn&apos;t exist in CSS level 2.1 but exists in [css3] : ellipsis
139 div.radwindow.inactivewindow, div.radwindow.inactivewindow attempt to find a semi-colon before the property name. add it
139 div.radwindow.inactivewindow, div.radwindow.inactivewindow Property progid doesn&apos;t exist : DXImageTransform
139 div.radwindow.inactivewindow, div.radwindow.inactivewindow Parse Error DXImageTransform.Microsoft.Alpha(opacity=70) !important;
140 opacity Parse Error opacity: .7 !important;
140 -moz-opacity Parse Error -moz-opacity: .7 !important;
148 -moz-opacity Parse error - Unrecognized }

They appear to be related to RadWindow. I have created a custom skin to see if I could remove the CSS code causing the failures but no luck. Any other ideas out there?
Martin
Telerik team
 answered on 08 Jul 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?