Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
88 views
Hi,

I have a requirement wherein I have two subtabs 'A' and 'B'. Both the subtabs have html with primarily two sections.
<RadPageView ID='pg1' runat='server'>
<table id='table1'>
  <tr>
    <td>
       Represents the common section.
   </td>
 </tr>
</table>
<table id='table2'>
  <tr>
    <td>
       The differening section of first subtab.
   </td>
 </tr>
</table>
</RadPageView>
<RadPageView ID='pg2' runat='server'>
<table id='table1'>
  <tr>
    <td>
       Represents the common section.
   </td>
 </tr>
</table>
<table id='table3'>
  <tr>
    <td>
       The differening section of second subtab.
   </td>
 </tr>
</table>
</RadPageView>
 As shown in the above code, I need table1 to be automatically present across both subtabs. Clicking on the subtabs should only change the lower half section(in this case from showing table2 to table3 and vice-versa).


Thanks In advance.
Kate
Telerik team
 answered on 02 Mar 2011
9 answers
563 views
hi dear telerik team :
my aspx code is like this :
<html xmlns="http://www.w3.org/1999/xhtml" > 
<head runat="server"> 
    <title></title> 
     
     
    <link href="App_Themes/Input/Office2007ByMe/Input.Office2007ByMe.css" rel="stylesheet" 
        type="text/css" /> 
     
</head> 
<body> 
    <form id="form1" runat="server"> 
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> 
    </telerik:RadScriptManager> 
    <div> 
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> 
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="Button1"> 
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="RadTextBox1" /> 
                        <telerik:AjaxUpdatedControl ControlID="Button1" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
                <telerik:AjaxSetting AjaxControlID="Button2"> 
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="RadTextBox1" /> 
                        <telerik:AjaxUpdatedControl ControlID="Button2" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
                <telerik:AjaxSetting AjaxControlID="Button3"> 
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="RadTextBox1" /> 
                        <telerik:AjaxUpdatedControl ControlID="Button3" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
        </telerik:RadAjaxManager> 
        <telerik:RadTextBox ID="RadTextBox1" runat="server" EnableEmbeddedSkins="False"  
            Width="125px" Skin="Office2007ByMe"> 
        </telerik:RadTextBox> 
        <br /> 
        <br /> 
        <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" /> 
        <asp:Button ID="Button2" runat="server"  Text="Button"  
            onclick="Button2_Click" /> 
        <asp:Button ID="Button3" runat="server"  Text="Button"  
            onclick="Button3_Click" /> 
    </div> 
    </form> 
</body> 
</html> 

and codebehind :
using System; 
using System.Collections.Generic; 
using System.Linq; 
using System.Web; 
using System.Web.UI; 
using System.Web.UI.WebControls; 
 
namespace ChatRoomByMajid 
{ 
    public partial class WebForm2 : System.Web.UI.Page 
    { 
        protected void Page_Load(object sender, EventArgs e) 
        { 
             
        } 
 
 
        protected void Button1_Click(object sender, EventArgs e) 
        { 
            RadTextBox1.ForeColor = System.Drawing.Color.Red; 
             
        } 
 
        protected void Button2_Click(object sender, EventArgs e) 
        { 
            RadTextBox1.ForeColor = System.Drawing.Color.Yellow; 
        } 
 
        protected void Button3_Click(object sender, EventArgs e) 
        { 
            RadTextBox1.ForeColor = System.Drawing.Color.Blue; 
        } 
    } 
} 
 


when i click those buttons so the forecolor changes , but when the radtextbox gets focus for entering data so the previous color is shown!

how can i fix this problem ?
(i made the simple upper code for understanding)

best regards








Lenny_shp
Top achievements
Rank 2
 answered on 02 Mar 2011
1 answer
105 views
We have:     
...
<
telerik:GridDropDownColumn DataField="ID_Firma" HeaderText="Firma"
            ListTextField="Nazwa" ListValueField="ID" UniqueName="ID_Firma" DataSourceID="FirmyDataSource" HeaderStyle-Width="480px"></telerik:GridDropDownColumn>
...
...
 
       protected void Page_Load(object sender, EventArgs e)
        {
            StanowiskaDlaFirmGrid.ItemCreated += new Telerik.Web.UI.GridItemEventHandler(StanowiskaDlaFirmGrid_ItemCreated);
        }
 
 
 
 
        void StanowiskaDlaFirmGrid_ItemCreated(object sender, Telerik.Web.UI.GridItemEventArgs e)
        {
           if (e.Item.OwnerTableView == StanowiskaDlaFirmGrid.MasterTableView && e.Item.IsInEditMode)
            {
                RadComboBox combo = (RadComboBox)e.Item.FindControl("RCB_ID_Firma");
 
                combo.HighlightTemplatedItems = true;
                combo.AllowCustomText = true;
                combo.EnableLoadOnDemand = true;
                combo.Width = Unit.Pixel(400);
 
            }
        }
 
...


But after key was pressed (any) all items are visible, not the filtered only... Could you help me? Or should I use GridTemplateColumn?
Lukasz Kalbarczyk
Top achievements
Rank 1
 answered on 02 Mar 2011
7 answers
344 views
Hi there,
I have a RadMenu with several menu items. I want to automatically close the menu when the user clicks a menu item, regardless the level of the menu item itself.
I have seen this post http://www.telerik.com/community/forums/aspnet-ajax/menu/closing-menu-in-onclientitemclicked-re-opens.aspx but it actually doesn't work: the menu is closed and then reopened. This is a serious issue for us when accessing our application on an iPad.
Can you tell me how to achieve this?
On a side note, why should I want a menu that stays open once I click on an item??? I am not able to think any use of this, nor I can think of an application that actually does this.
Before you ask, yes, I am suggesting to at least have a property that handles this, without reverting to custom code :-)

Luca
Yana
Telerik team
 answered on 02 Mar 2011
5 answers
90 views
Hi!

I was just wondering how many hours of development you've invested in the rad editor?
Rumen
Telerik team
 answered on 02 Mar 2011
3 answers
77 views

<%@ Page Language="C#" AutoEventWireup="false" CodeBehind="Default.aspx.cs" Inherits="Default" %>
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  
<head runat="server">
    <title>MS CRM SPLA Provisioning</title>
    <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" />
</head>


Here is what I get.

As I have problems with compression, I need to understand why Telerik has chosen this setting.
Also trying to understand CDN and ASP.NET 4 new features....poor Telerik doc....
When I speak of this in the compression forum, nobody was knowing the effect and reason why ???
Could you expect the Pro/Cons ?
I suppose the team is the same for this forum so.....

Thanks.

CS


Erjan Gavalji
Telerik team
 answered on 02 Mar 2011
2 answers
206 views
Is there a property that I can set to show an alternative image when I hover over a GridButtonColumn control item when the ButtonType is set to ImageButton?

I guess I could add an ItemCreated handler in the code behind to handle this but I would have thought this functionality would be quite widely desired and hence built in to the control by now?

How about it Telerik? If it's not a feature yet, can this be considered a feature request?
Karl
Top achievements
Rank 1
 answered on 02 Mar 2011
1 answer
337 views
I do not want to use "CommandItemTemplate".
I want to add a only button on CommandItem.

My code:

<CommandItemSettings ShowExportToExcelButton=true  ExportToExcelImageUrl="~/App_Themes/SETheme/SESkin/Grid/MyImage.gif" />

<script type="text/javascript">
//<![CDATA[
function MyFunction() {
}
//]]>
</script>


protected void radGrid_ItemCreated(object sender, Telerik.Web.UI.GridItemEventArgs e)
       {
           if (e.Item is GridCommandItem)
           {
               e.Item.FindControl("InitInsertButton").Visible = false;
                 
               LinkButton Export = e.Item.FindControl("ExportToExcelButton") as LinkButton;
               Export.OnClientClick = "javascript:ExportTxt(); return false;";
           }
       } 



My code is Ok ...but It's a workaround.
Is there a cleaner way?
Pavlina
Telerik team
 answered on 02 Mar 2011
1 answer
96 views
As I am new to Telerik controls I am hoping that you might be able to help me avoid some common missteps.  I have a web page which upon user selection dynamically loads 1 to "n" tabs.  Each tab may have a child set of tabs.  At the final level of tabs the pageview control has a grid control along with several other controls.

So far things appear to be working.  I have a page full of tabs and on each tab I have the required number of tabs and grids each populated with data.  As each of these controls are dynamic in nature I understand that I must recreate the child controls (not the tabs) on each post back.  I am currently doing this and things appears to survive postbacks now.

In my testing I notice that I seem to be repopulating each grid on each tab on every postback.  It would seem more efficient to only populate the currently selected tab.  How to do this eludes me.

Given the dynamic nature of my controls, I do not necessarily know the "ClientID" of the controls at design time.  This makes it rather hard to use $find to find a given grid control.  I am going to have to run some Client side events which given the selected tab, traverses the control collection on the associated PageView control, and finds the Grid Control located on the pageview.  If I knew the Control ID I know how to do this.  Given that I do not know the ID of the control, how to do this eludes me.  Pointers would be appreciated.

Finally I suspect I need to hookup my dynamic grids into the Ajax system.  How do I do this given their dynamic nature?

Thank you for any suggestions you might have.
Veronica
Telerik team
 answered on 02 Mar 2011
12 answers
224 views
Hello,

In my website the radupload button doesn't work in IE 6 and IE 7.
In IE 8, firefox, google chrome, etc.. is it working perfectly.

Can this be a security setting in IE 6 or IE 7 or is it something else?

Thanks in advance.

Greetz,
Joris
Trustteam
Top achievements
Rank 2
 answered on 02 Mar 2011
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?