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

I have a Hierarchy RadGrdi, in master table i have some columns and in chield table i have some columns,

when i click export (excel, pdf,doc) i want to export both the master table and child table columns.

How can i do this. Please help me regarding this.
Pavlina
Telerik team
 answered on 04 Dec 2009
2 answers
199 views
I am attempting to update a grid's datasource with a JavaScript initiated AJAX request. The code "appears" to work - no errors and the RadAjaxLoadingPanel becomes visible but the grid does not update. Any ideas?

JavaScript:
function test(itemID, qty, dueDate)  
            {  
                var aryData = new Array();  
                aryData[0] = itemID;  
                aryData[1] = qty;  
                aryData[2] = dueDate;  
                  
                var ajaxManager = $find("<%= RadAjaxManagerNewWorkOrder.ClientID %>");  
                ajaxManager.ajaxRequest(aryData.join("|"));  
                  
                return false;  
            } 
Asp.Net
<telerik:RadAjaxManager ID="RadAjaxManagerNewWorkOrder" runat="server" OnAjaxRequest="RadAjaxManagerNewWorkOrder_AjaxRequest">  
 
<AjaxSettings> 
 
<telerik:AjaxSetting AjaxControlID="RadAjaxManagerNewWorkOrder">  
 
<UpdatedControls> 
 
<telerik:AjaxUpdatedControl ControlID="rgSelectedKits" LoadingPanelID="RadAjaxLoadingPanel1" /> 
 
</UpdatedControls> 
 
</telerik:AjaxSetting> 
 
</AjaxSettings> 
 
</telerik:RadAjaxManager> 
 
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default">  
 
</telerik:RadAjaxLoadingPanel> 
 
<telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnableTheming="True">  
 
</telerik:RadScriptManager> 
 
 
<telerik:RadGrid ID="rgSelectedKits" runat="server" Skin="Web20" EnableLinqExpressions="true" AllowAutomaticUpdates="true"      
                AutoGenerateColumns="False" GridLines="None" AllowSorting="True" >    
                <MasterTableView>    
                <RowIndicatorColumn>    
                    <HeaderStyle Width="20px"></HeaderStyle>    
                </RowIndicatorColumn>    
    
                <ExpandCollapseColumn>    
                    <HeaderStyle Width="20px"></HeaderStyle>    
                </ExpandCollapseColumn>    
                    <Columns>    
                        <telerik:GridBoundColumn DataField="ItemID" Display="False"      
                            HeaderText="Item ID" UniqueName="ItemID">     
                        </telerik:GridBoundColumn>    
                        <telerik:GridBoundColumn DataField="ItemNumber" HeaderText="Item Number"      
                            UniqueName="ItemNumber">     
                        </telerik:GridBoundColumn>    
                        <telerik:GridBoundColumn DataField="ItemName" HeaderText="Item Name"      
                            UniqueName="ItemName">     
                        </telerik:GridBoundColumn>    
                        <telerik:GridBoundColumn DataField="Quantity" HeaderText="Quantity"      
                            UniqueName="Quantity">     
                        </telerik:GridBoundColumn>    
                        <telerik:GridBoundColumn DataField="DueDate" HeaderText="Due Date"      
                            UniqueName="DueDate">     
                        </telerik:GridBoundColumn>    
                    </Columns>    
                </MasterTableView>    
            </telerik:RadGrid>    
 
C#:
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 Telerik.Web.UI;  
using System.Collections.Generic;  
 
public partial class NewWorkOrder : System.Web.UI.Page  
{  
    protected void Page_Load(object sender, EventArgs e)  
    {  
        if (!IsPostBack)  
        {  
            rgSelectedKits.DataSource = new List<WorkOrderKit>();  
        }  
 
        rComboKits.LoadingMessage = "Locating Kit...";  
    }  
    protected void rComboKits_ItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e)  
    {  
        if (!string.IsNullOrEmpty(e.Text))  
        {  
            SFAF_PODDataContext db = new SFAF_PODDataContext();  
            rComboKits.DataTextField = "itemnumber";  
            rComboKits.DataValueField = "itemid";  
 
            List<InvItem> results = (from items in db.InvItems  
                                     join kitIndicator in db.InvItemKitIndicators on items.itemid equals kitIndicator.itemid  
                                     where items.itemnumber.ToUpper().StartsWith(e.Text.ToUpper()) ||  
                                     items.itemtext.ToUpper().Contains(e.Text.ToUpper())  
                                     && items.custid == 1431  
                                     && kitIndicator.IsKit == true 
                                     select items).ToList();  
 
            rComboKits.DataSource = results;  
            rComboKits.DataBind();  
        }  
    }  
      
    public void RadAjaxManagerNewWorkOrder_AjaxRequest(object sender, AjaxRequestEventArgs e)  
    {  
        SFAF_PODDataContext db = new SFAF_PODDataContext();  
        List<String> lstData = e.Argument.Split('|').ToList();  
 
        int itemID = Convert.ToInt32(lstData[0]);  
        int qty = Convert.ToInt32(lstData[1]);  
 
        List<String> dates = lstData[2].Split('/').ToList();  
        int month = Convert.ToInt32(dates[0]);  
        int day = Convert.ToInt32(dates[1]);  
        int year = Convert.ToInt32(dates[2]);  
 
        InvItem item = db.InvItems.SingleOrDefault(items => items.itemid == itemID);  
 
        DateTime dueDate = new DateTime(year, month, day);  
        WorkOrderKit woKit = new WorkOrderKit(itemID, qty, item.itemnumber, item.itemtext, dueDate);  
 
        UpdateWoKitGrid(woKit);  
    }  
    private void UpdateWoKitGrid(WorkOrderKit woKit)  
    {  
        List<WorkOrderKit> currentGridKits = new List<WorkOrderKit>();  
 
        foreach (GridItem item in rgSelectedKits.Items)  
        {  
            currentGridKits.Add((WorkOrderKit)item.DataItem);  
        }  
 
        currentGridKits.Add(woKit);  
 
        rgSelectedKits.DataSource = currentGridKits;  
        rgSelectedKits.DataBind();  
    }  
}  
 
Jimmy Hill
Top achievements
Rank 1
 answered on 04 Dec 2009
18 answers
276 views
I have a user who is trying to use the document manager in the WYSIWYG... when he clicks on it, he gets a blank white box pop-up within nothing in it.

I can't duplicate the problem, even after logging in as him.  I've tried on multiple machines and can't recreate the issue.

I'm guessing this is caused by a security setting on his machine or firewall issue.

Can you tell me specifically what i need to tell his IT people to switch on to get this to work? i.e. is it Ajax?

The strange thing is that the editor part of it works fine, it's just the document manager and image manager that have issues.

Thanks,

Andy
Eirik
Top achievements
Rank 1
 answered on 04 Dec 2009
3 answers
189 views
Dear All,

I am working on a project with RadMenu and RadGrid. I will define the RadGrid structure programatically in Page_Init method. As long as I change the selected MenuItem, I would like to reload the RadGrid structure based on the configuration by looking into database with RadMenu SelectedValue. However, it doesn't work for me in Page_Init to get SelectedValue of RadMenu. Can anyone help?

Thanks.
Iana Tsolova
Telerik team
 answered on 04 Dec 2009
20 answers
723 views
I have a RadGrid and a RadToolTipManager.  On mouseover of the a link, I call a webservice to display a tooltip.

Everything works flawlessly on the first page.  However, when I go to page two of my radgrid, all the tooltips correspond to page 1.  No matter what page in my grid I go to, the tooltips all correspond to the items on page one. 

Any help is appreciated!

Thanks.
Svetlina Anati
Telerik team
 answered on 04 Dec 2009
1 answer
93 views
I have spent a fair amount of time wondering why the help CHM files did not show any content. After googling the issue, I discovered one of the forum posts tells about how you may need to click on the CHM file and select properties, and then select UNBLOCK for each CHM file.

http://www.telerik.com/community/forums/reporting/telerik-reporting/chm-help-file-broken.aspx

I would suggest it would be very helpful and probably save many a lot of time if a warning about this was added to a readme file to get included with the zipped CHM files.  Including the abouve mentioned forum link would be nice as well.

Thanks for a great product!!
Carl Taylor
Suwanee, GA
Ivo
Telerik team
 answered on 04 Dec 2009
4 answers
171 views

Hi Telerik,

I am currently using RadColorPIcker in one of my pages. I am using the palette mode as "RGBSliders".
My requirement is to customize the color picker such that i don’t want to display the "Apply”,” Increase" and "decrease" buttons.
Is it possible?

Regards,
Jennifer

Martin
Telerik team
 answered on 04 Dec 2009
1 answer
131 views
I am using the FormDecorator to set the color of the div elements on my webpage.  I have noticed that only 3 or 4 of the builtin skins decorate the div.  How can I change the background color of the "Zone" or "Fieldset" elements that FormDecorator is decorating.  I know how to use the Visual Style Builder, but I cannot figure out how the change the 2 elements using the tool.
Martin
Telerik team
 answered on 04 Dec 2009
1 answer
128 views
Hi,

I've a ardeditor in my ascx .but I'm not able to resize my page and everything is in pixels.

My radeditor is in a table with width and height of 100%.

but still it does not resize when i minimize the window.

Rumen
Telerik team
 answered on 04 Dec 2009
1 answer
404 views
Hi,

I need to display '.mht' file(content) on the Rad Editor. As Rad Editor doesn't support to load doc/docx files, I have converted to .mht file. Could anyone help me on this.

Thanks,
Malli
Georgi Tunev
Telerik team
 answered on 04 Dec 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?