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

I have a page with an asp button. On click of the button I do some server side processing and display the results on a new page. I would want to display those results using radwindow as a popup. How can this be done?

Regards,
Saurabh
Georgi Tunev
Telerik team
 answered on 07 Sep 2009
2 answers
106 views
In many places in my application I use a vertically-oriented TabStrip control for editing.

 <telerik:RadTabStrip ID="tsPropertyGroups" runat="server" Skin="Outlook" EnableTheming="false"
     MultiPageID="mpPropertyGroups" Orientation="VerticalLeft" SelectedIndex="0"
     >
     <Tabs>
         <telerik:RadTab Text="Settings" PageViewID="pvSettings" />
         <telerik:RadTab Text="Sections" PageViewID="pvSections" /> 
         <telerik:RadTab Text="Columns" PageViewID="pvColumns" /> 
     </Tabs>
</telerik:RadTabStrip>
<telerik:RadMultiPage runat="server" ID="mpPropertyGroups" SelectedIndex="0">
...

It worked nicely in version 2008 Q3. Starting from 2009 Q1 the MultiPage moved down the TabStrip instead if being on the right. This stops me from upgrading to any version newer than 2008 Q3.

Please advice on solutions.

Thank you

Eliyahu Goldin
Top achievements
Rank 1
 answered on 07 Sep 2009
3 answers
65 views
Hi,

i got a grid in which one item is more important than the others.

How can i change its appearance or highlight it?

Im currently there but i dont know what to do..

protected void RadGridHistory_ItemDataBound(object sender, GridItemEventArgs e) 
        { 
            if (e.Item is GridDataItem) 
            { 
                GridDataItem item = (GridDataItem)e.Item; 
 
                string key = item.KeyValues; 
                int id = ParseIdFromKeyValueString(key); 
 
                if (id == Convert.ToInt32(Request["id"].ToString())) 
                { 
                    // change appearance. like bold text of the GridBoundColumns
                } 
            } 
        } 

thx Mario
Mario
Top achievements
Rank 2
 answered on 07 Sep 2009
4 answers
188 views
I updated my controls to Q2 2009 and am having a pretty tough time with it.   I downloaded the .msi installer and used that to install the new version.   All the controls errored.....so after reading alot of forums and different installer/deployment documentation I got them working.  Then when I copied them to the server and i tested the website I simply get the generic "Internet explorer cannot display the webpage" error in both IE7 and 8.  I tried both from my computer and remoted into the webserver and it doesn't work there either.  However i remoted into our terminal server and it works there....and it also works when I debug it from VS2008.

All the pages worked before I updated the controls, so I will give a rundown of what changes I had to do to get me where I am now.

1.    I added an entry in my web.config.
...  
<add assembly="Telerik.Web.UI, Version=2009.2.826.35, Culture=neutral, PublicKeyToken=121FAE78165BA3D4"/>  
      </assemblies> 
        </compilation> 
2.    I added both the Telerik.Web.UI.dll and Telerik.Web.Design.dll to the GAC (assembly folders) on both my machine and on the web server.  (neither were present after the installation process)

There was an older version on the server which I uninstalled......and I tried to uninstall the older version on my machine as well but I got an error that stated "required by other applications"   Which leads me to the question should I remove older versions or keep them there?  How do I get past this error if I should uninstall them?  I did read somewhere that if multiple versions are present you need to make sure you specify the version as I did above.

3.    I deleted the telerik DLLs from the bin folder on my PC and the webserver
4.    I added an entry to the machine.config file on the servers.  In your documentation here: http://www.telerik.com/help/aspnet-ajax/installaddtoglobalassemblycache.html it states the path to find the machine.config, however it needs to be more specific in that the machine.config is NOT located in v3.5 or v3.0 folders, but there is one located in v2.0 and v1.1.  And the v2.0 folder with machine.config doesn't have an assemblies section for me.......so i added an entry to the v1.1 machine.config file.  It would be nice if your documentation went into more details about where the correct file is located.  Anways, here is the entry in my machine.config assemblies section in the v1.1 folder/CONFIG.
<add assembly="Telerik.Web.UI, Version=2009.2.826.35, Culture=neutral, PublicKeyToken=121FAE78165BA3D4"/> 
Same exact thing right?

So now what am I missing?  It's really disappointing that I have to go through all this just to upgrade......I probably wouldn't of upgraded if I knew.

Coty

Erjan Gavalji
Telerik team
 answered on 07 Sep 2009
1 answer
138 views
Good day.

How does one add a Rad MDI form to the application ?

Do we need to create it in code because I see there is no option to add the MDI form from the add windows forms dialog.

Kind Regards.
D.Kruger
Vlad
Telerik team
 answered on 07 Sep 2009
3 answers
137 views
Apologies, I realise this has most likely been done to death, I'm half way through some work that uses both RadControls AJAX and Reporting and now I'm informed that they are going to want to use a shared hosting provider for the site instead of using internal servers (as originally discussed).

My question is can both RadControls ASP.NET AJAX and Reporting be deployed to a shared hosting server without actually running the setup exes on the server? I realise I'm most likely going to need some full trust somewhere but I figure that's going to be easier to achieve running some setup exes on servers I have no control over.

Thanks
Chirs 
Paul
Telerik team
 answered on 07 Sep 2009
2 answers
85 views
Hello,

I've got a problem with multiple combo-boxes tab order.

Setup two combo boxes with autopostback="true" and give each one a

OnSelectedIndexChanged event.  I have an ajaxmanager on the page.  If you select an item in the first control and press tab the focus goes somewhere off the form.  If you select an item in the first list and press shift-tab the focus works correctly.  Or if you put a non-post back control between the two combo boxes the focus works correctly.

I don't think using the OnClientSelectedIndexChanging event is an option because the selecting values from these drop downs drive other UI options.

Any ideas?

Thanks,
Rob

Yana
Telerik team
 answered on 07 Sep 2009
1 answer
159 views

Hi,

I have encountered an issue after downloading internal build of ASP.NET AJAX UI Controls version 2009.2.824, and it still exists in release version 2009.2.826.35. I have a control with two related comboBoxes both of which use webservices to get items. When the page is loaded both comboBoxes get populated as expected, but when I change selected item in the first one OnClientSelectedIndexChange gets called where I call requestItems on the other comboBox, but WebService method does not execute.


here is my markup:

<div class="border"></div>  
<div style="clear:both; overflow:hidden; margin:2px">  
    <div style="float:left; width:170px">Wybierz przedstawiciela:</div>  
    <div style="float:left; width:400px">  
        <telerik:RadComboBox ID="_rcbBokers" runat="server" OnClientLoad="OnBrokersLoad"  
            LoadingMessage="WczytujÄ™..." NoWrap="true" Skin="Default" AllowCustomText="false"  
            OnClientSelectedIndexChanged="OnBrokerChanged" OnClientItemsRequesting="OnBrokersRequesting"  
            OnClientItemsRequested="OnBrokersRequested">  
            <WebServiceSettings Method="GetBrokers" Path="WebServices/WarehousesService.asmx" />  
        </telerik:RadComboBox>  
    </div>  
</div>  
<div class="border"></div>  
<div style="clear:both; overflow:hidden; margin:2px">  
    <div style="float:left; width:170px">Wybierz magazyn:</div>  
    <div style="float:left; width:400px">  
        <telerik:RadComboBox ID="_rcbWarehouses" runat="server" OnClientItemsRequesting="OnWarehousesRequesting"  
            LoadingMessage="WczytujÄ™..." NoWrap="true" Skin="Default" AllowCustomText="false" OnClientItemsRequested="OnWarehousesRequested">  
            <WebServiceSettings Method="GetWarehouses" Path="~/WebServices/WarehousesService.asmx" />  
        </telerik:RadComboBox>  
    </div>  
</div> 

here is my code behind:

public partial class WarehousePicker : UserControl  
    {  
        protected void Page_Load(object sender, EventArgs e)  
        {  
            if (IsPostBack) return;  
            if (Session["warehouseId"] != null)  
            {  
                ViewState["warehouseId"] = Session["warehouseId"];  
                ViewState["brokerId"] = Session["brokerId"];  
            }  
            else  
            {  
                ViewState["warehouseId"] = -1;  
                ViewState["brokerId"] = -1;  
            }  
            if (!Page.ClientScript.IsClientScriptBlockRegistered(typeof(WarehousePicker), "warehousPickerScript"))  
                Page.ClientScript.RegisterClientScriptBlock(typeof(WarehousePicker), "warehousePickerScript",  
                                                            string.Format(  
                                                                Properties.Settings.Default.WarehousePickerScript,  
                                                                ViewState["brokerId"], _rcbWarehouses.ClientID,   
                                                                _rcbBokers.ClientID, ViewState["warehouseId"]));  
            Session["warehouseId"] = null;  
            Session["brokerId"] = null;  
        }  

here is javascript I have in Settings.Default.WarehousePickerScript

<script type="text/javascript">  
//<![CDATA[  
function OnBrokersLoad(combo, eventArgs) {{  
    combo.requestItems(""false);  
}}  
function OnBrokersRequesting(combo, eventArgs) {{  
    var brokerId = '{0}';  
    var context = eventArgs.get_context();  
    context["BrokerID"] = brokerId;  
}}  
function OnBrokersRequested(combo, eventArgs) {{  
    var item = combo.findItemByValue('{0}');  
    if (!item && combo.get_items().get_count() > 0) {{  
        item = combo.get_items().getItem(0);  
    }}  
    if (item) {{  
        combo.set_text(item.get_text());  
        item.select();  
    }}  
    var warehouseCombo = $find('{1}');  
    warehouseCombo.requestItems(combo.get_value(), false);  
}}  
function OnBrokerChanged(combo, eventArgs) {{  
    var warehousesCombo = $find('{1}');  
    var item = eventArgs.get_item();  
    warehousesCombo.requestItems(item.get_value(), false);  
}}  
function OnWarehousesRequesting(combo, eventArgs) {{  
    var brokersCombo = $find('{2}');  
    var warehouseId = '{3}';  
    var context = eventArgs.get_context();  
    context["BrokerID"] = brokersCombo.get_value();  
}}  
function OnWarehousesRequested(combo, eventArgs) {{  
    var item = combo.findItemByValue('{3}');  
    if (!item && combo.get_items().get_count() > 0) {{  
        item = combo.get_items().getItem(0);  
    }}  
    if (item) {{  
        combo.set_text(item.get_text());  
        item.select();  
    }}  
}}  
//]]>  
</script> 

and here is my WebService code:

[WebService(Namespace = "http://tempuri.org/")]  
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]  
    [GenerateScriptType(typeof(BrokerItem))]  
    [GenerateScriptType(typeof(WarehouseItem))]  
    [GenerateScriptType(typeof(SelectionMode))]  
    [ToolboxItem(false)]  
    [ScriptService]  
    public class WarehousesService : WebService  
    {  
        [WebMethod(EnableSession = true)]  
        public RadComboBoxData GetBrokers(RadComboBoxContext context)  
        {  
            var userId = ((User)HttpContext.Current.Session["user"]).ID;  
            var brokerText = context["BrokerID"].ToString();  
            int brokerId;  
            var data = new RadComboBoxData();  
            int.TryParse(brokerText, out brokerId);  
            data.Items = (from broker in Entities.Instance.GetBrokers(userId, ActiveType.Active, ActiveType.Active, Premission.Preview | Premission.Central)  
                          select new RadComboBoxItemData { Text = broker.Name, Value = broker.ID.ToString() }).ToArray();  
            data.EndOfItems = true;  
            data.NumberOfItems = data.Items.Length;  
            var item = (from itemData in data.Items where itemData.Value == brokerText select itemData).FirstOrDefault();  
            if (item != null)  
            {  
                data.Text = item.Text;  
                data.Value = item.Value;  
            }  
            else if (string.IsNullOrEmpty(context.Text) && data.Items.Length > 0)  
            {  
                data.Text = data.Items[0].Text;  
                data.Value = data.Items[0].Value;  
            }  
            return data;  
        }  
 
        [WebMethod(EnableSession = true)]  
        public RadComboBoxData GetWarehouses(RadComboBoxContext context)  
        {  
            var brokerText = context["BrokerID"].ToString();  
            var userId = ((User)HttpContext.Current.Session["user"]).ID;  
            int brokerId;  
            int.TryParse(brokerText, out brokerId);  
            var data = new RadComboBoxData  
            {  
                EndOfItems = true,  
                Items = (from warehouse in Entities.Instance.GetUserWarehouses(brokerId, userId, ActiveType.Active, Premission.Edit)  
                         where warehouse.ID != 1  
                         select  
                             new RadComboBoxItemData { Text = warehouse.Name, Value = warehouse.ID.ToString() }).  
                    ToArray()  
            };  
            data.NumberOfItems = data.Items.Length;  
            return data;  
        }  

I'm using visual studio 2008, .net framework 3.5 and Telerik Controls for ASP.NET AJAX v. 2009.02.826.35, and this code was working fine with v. 2009.02.701.35

Thanks in advance

regards

Paweł Aszklar

Paweł Aszklar
Top achievements
Rank 1
 answered on 07 Sep 2009
1 answer
112 views
I hv one window contain some Add cart type function lity when use click on add cart it maximize but when i minize it will goes in minmize zone properly ... but when i am clicking again on ADD Cart button that time it will automatically hide the Window  


 <telerik:RadWindow ID="RadWndCart" runat="server" Modal="false" VisibleStatusbar="False" MinimizeZoneID="Panel1"
                Behavior="Move,Minimize"  Skin="Black" Title="Cart" Top="150px" Left="250px" Width="700px"
                NavigateUrl="AddToCart.aspx"  Height="470px">
            </telerik:RadWindow>



Kindly please tell me why this happen...... Is their any property to set when page is reload......................


Urgenlty reply

Tahksss
Georgi Tunev
Telerik team
 answered on 07 Sep 2009
2 answers
114 views
Hi all,

i retreive editors content (in html-mode) by EditorID.Content and write it to database.
Always it adds body-tags around the content.

Editor: <table><tr><td>blahblah</td></tr></table>
DB: <body><table><tr><td>blahblah</td></tr></table></body>

it looks different in FF and IE, so has it to do with browser?

Is it a know problem, anybody any idea?
do we have to strip body-tags manually?

Thanks in advance
Felix
Lini
Telerik team
 answered on 07 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?