Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
374 views
I'm using a Prometheus RadGrid that's bound to an IList, and I'm having some trouble with inserts. When I click the Add button, I get an exception:

DataBinding: 'Telerik.Web.UI.GridInsertionObject' does not contain a property with the name 'PhoneType'.

The error occurs as soon as I press the Add button, before the table shows any insertion controls. As far as I know, I'm not missing any relevant events, but I can't seem to figure out what I'm doing wrong. My table is declared like this:

    <telerik:RadGrid runat="server" ID="phoneGrid" AutoGenerateColumns="false" > 
        <MasterTableView CommandItemDisplay="Bottom"
            <Columns> 
                <telerik:GridEditCommandColumn UniqueName="EditCommandColumn" /> 
                <telerik:GridBoundColumn DataField="ContactPhoneid" Visible="false" ReadOnly="true" /> 
                <telerik:GridDropDownColumn DataField="PhoneType.PhoneTypeName" HeaderText="Type" ListTextField="PhoneTypeName" ListValueField="PhoneTypeid" DataSourceID="phoneTypeSource" /> 
                <telerik:GridBoundColumn DataField="Phone.PhoneNumber" HeaderText="Phone Number" MaxLength="50" /> 
                <telerik:GridBoundColumn DataField="Phone.PhoneExtension" HeaderText="Extension" MaxLength="10" /> 
                <telerik:GridBoundColumn DataField="Phone.PhoneDesc" HeaderText="Description" MaxLength="50" /> 
                <telerik:GridButtonColumn ButtonType="LinkButton" Text="Delete" CommandName="Delete" ConfirmText="Are you sure you want to delete this entry?" /> 
            </Columns> 
        </MasterTableView> 
    </telerik:RadGrid> 

I'm catching NeedDataSource, ItemCommand, and ItemInserted. Am I missing something, or is there a bug with object binding and subobjects?
Ramya
Top achievements
Rank 1
 answered on 14 Nov 2013
6 answers
205 views
Hi,

I am working on an asp.net project using telerik tools version '2011.2.712.40'. I have customized the Image manager control. I am able to upload files into the blob as well as to store reference into the sql table. But, I am not able to delete a file from the Image Manager control. An error message 'The selected file could not be deleted because the application did not have enough permissions. Please contact the administrator' appears when I am trying to delete a file. In the telerik site, I found the flow of the delete functionality is like,

1.  GetPath - Gets the parent folder for the deleted item
2.  ResolveDirectory - Checks permissions
3.  DeleteFile - Deletes the item
4.  ResolveRootDirectoryAsTree - Updates the parent tree node
5.  ResolveDirectory - Updates the parent tree node ResolveRootDirectoryAsTree - Updates the RadGrid
6.  ResolveDirectory - Updates the RadGrid

But, Break point is not coming to the 'DeleteFile' method. Please help me.

Vipin.P.C

William
Top achievements
Rank 1
 answered on 14 Nov 2013
9 answers
370 views
Folks using VS 2010 with RadControls for ASP.NET AJAX Q1 2013.

In Master Table (Paging is enabled, ShowFooter="false").

Assuming I have following columns in Master Table.
Name:                    Monthly Income    Total House Hold Monthly Income (Template Column)
Master Record           1000.00

The Master Table Monthly income column is:
<telerik:GridBoundColumn DataField="MonthlyIncome" HeaderText="Monthly Income"
SortExpression="MonthlyIncome"> </telerik:GridBoundColumn>

Assuming I have following columns in Detail Table (Paging is enabled, ShowFooter="True")
Name:                    Monthly Income:                
Child Record1            200.00
Child Record1            300.00
Child Record1            400.00
Child Record1            500.00

The detail Table Monthly income column is:
<telerik:GridBoundColumn Aggregate="Sum" DataField="MonthlyIncome" HeaderText="Monthly Income"
                    FooterText="All Child records Monthly Income: ">
                </telerik:GridBoundColumn>
             
I would like to show Total House hold monthly income of Master/Detail records in Master Table Template Column. In this example the value of that Template column will be 2400.00. 1000.00 (Master Record Monthly Income)+1400.00 (Sum of Monthly Income of all Child Records).

Thanks for any help

Sincerely

gc_0620
               
Joselina
Top achievements
Rank 1
 answered on 14 Nov 2013
2 answers
111 views
My company has a licensed version of radcontrols which is used in our web application. Now there is a plan to outsource the entire project to an off-shore team and I am a bit concerned about this since the entire project with all the DLLs will be given. So how can I prevent our DLLs from being copied and used in any sort of unauthorized means?
Antony
Top achievements
Rank 1
 answered on 14 Nov 2013
2 answers
147 views
Hi EveryOne,

I have a question about the TreeView ExpandMode.
Currently, I set childNode.ExpandMode = TreeNodeExpandMode.WebService;

After Initialize the tree, and  I click button. In the button event, I set some nodes of the tree expanded = true
My question is that Will these nodes are expanded or not? 

Thanks.


Boyan Dimitrov
Telerik team
 answered on 14 Nov 2013
1 answer
107 views
Hi Telerik group,


I am trying to show a cellphone conversation inside the lightbox, I would like to have scroll on that. I am using ajax to put the text into the light box but I notice the the lightbox opens before the text gets into it and I want to re-size dynamically the lightbox. Do you think I can show the conversation as is showed in the image attached?

Thank you very much


 function jsListen(notificationType, reminderId, sessionId, accountId) {
            var lightBox = $find('<%= LightBoxListen.ClientID %>');
            var items = notificationType + "," + reminderId + "," + sessionId + "," + accountId;
            var sUserName = "aaaa";
            if (!(notificationType == null && reminderId == null && sessionId == null)) {
                sendData();
                lightBox.show();
                return false;
            }
            return true;
            function sendData() {
                //var loc = location.protocol + "//" + location.hostname + ":" + location.port + "/Account/CallHistory.aspx/GetListen";
                var loc = location.protocol + "//" + location.hostname + ":" + location.port + "/ListenWS.asmx/GetListen";
                loc = (loc.substr(loc.length - 1, 1) == "/") ? loc + "CallHistory.aspx" : loc;
                $.ajax({
                    type: "POST",
                    //url: "http://localhost:8080/Account/CallHistory.aspx/GetListen", 
                    //url: "http://localhost:8080/ListenWS.asmx/GetListen",                            
                    //url: loc + "/GetListen", 
                    url: loc,
                    cache: false,
                    data: '{"items":"' + items + '"}',

                    contentType: "application/json; charset=utf-8",
                    dataType: "json",
                    success: function (msg) {

                        //                        if (msg.d)
                        //                            alert("The User Name is valid");
                        //                        else
                        //                            alert("The User Name is invalid")
                    },
                    complete: function (xhr, status) {
                        var msg = $.parseJSON(xhr.responseText);

                        $("#message2").html("");
                        $("#message2").append(msg.d);

                        $("#message").html("");
                        $("#message").append(msg.d);

                    },
                    error: function (e) {
                        alert("An unexpected error has occurred during processing.");
                    }
                });
            }
        }


    <telerik:RadLightBox   ID="LightBoxListen" Font-Size="Medium"  runat="server"  Modal="true"  PreserveCurrentItemTemplates="true">
            <ClientSettings   >
                <AnimationSettings HideAnimation="Resize" NextAnimation="Fade" PrevAnimation="Fade"  ShowAnimation="Resize" />
            </ClientSettings>
            <Items>
                <telerik:RadLightBoxItem >
                    <ItemTemplate>
                        <div>
                            <div id="message"></div>
                            <br />
                            <br />
                        </div>
                    </ItemTemplate>
                </telerik:RadLightBoxItem>
            </Items>
        </telerik:RadLightBox>


Kostadin
Telerik team
 answered on 14 Nov 2013
5 answers
244 views
Hi,

I have a strange behavior of RadWindow with the following code:
<telerik:RadWindow OpenerElementID = "hyp_YT" BackColor="Yellow" Style="z-index: 9999" Height="446px" Width="784px" ShowContentDuringLoad="false" VisibleStatusbar="false" Animation="Fade" ID="RadWindow1" runat="server">
<ContentTemplate>aaaaaaaaaaaaaaaaaa</ContentTemplate>
</telerik:RadWindow>
 when i fill the property "BackColor" the the contenttemplate, the RadWindow is showing on Page.Load.
See behavior live on http://axxent.ontwikkelruimte.nl

Marc
Marin Bratanov
Telerik team
 answered on 14 Nov 2013
1 answer
92 views
Hello,

I have a Q3 2012 HtmlRadChart, trying to bind it with List<> values. A list item object has properties CreatedDate, Name and Value. I want to display CreatedDate on XAxis, Name as legend and Value as series. Code:

var source = (from r in readData join sen in equipments on r.EquipmentId equals sen.Id
                          select new
                            {
                                Id = r.Id,
                                CreatedDate = r.CreatedDate,
                                Value = r.Value,
                                Name = sen.Name,
                                EquipmentId = sen.Id
                            }) 
            .ToList();
            chart.PlotArea.Series.Clear();
            foreach (var equipment in source.Select(src => src.Name).Distinct())
            {
                var equipmentLineSeries = new LineSeries
                                       {
                                           DataField = "Value",
                                           Name = equipment,
                                       };
                chart.PlotArea.Series.Add(equipmentLineSeries);
            }
            chart.DataSource = source;
            chart.DataBind();

The problem is that chart does not "filter" values, and displays all values for every Name in the names list, overriding the other series displayed.
As you can see in attachment, I have 13 values for all 3 Names (PT206, PT208, PT205) and all of them are displayed for every Name, thus, lines are overriten by each other.
How can I filter data source by names, to display the series correctly?

Thanks, 
Ion
Danail Vasilev
Telerik team
 answered on 14 Nov 2013
23 answers
1.3K+ views
Hello team

I've the following issue with the radWindow -

I've two buttons "Open Popup" and "Do Postback". Open Popup opens a page in radwindow and Do Postback just does an empty postback.

I'm opening a page in the radwindow when Open Popup is clicked. I've a cancel button in the popup page which simply closes the radwindow (using client side script).

Now when i do an empty postback the popup is getting opened again. Why is that happening?

I've uploaded the project here to duplicate the issue - http://dl.dropbox.com/u/3971218/Code%20Samples/RadWindowAsPopup.zip.

Kindly check it out.

Regards
NLV
Marin Bratanov
Telerik team
 answered on 14 Nov 2013
2 answers
67 views

Hi:



I have a Pivot Grid with vertical scrolling and RowGrandTotalHeaderCellTemplate set to some text for every aggregate field. It is set to some text because I did not wanted the aggregate function displayed such as SUM or AVE, etc … I have noticed that the vertical scrolling causes problems on the RowGrandTotalHeaderCellTemplate. The set text of the last aggregate field’s RowGrandTotalHeaderCellTemplate is repeated on all the other aggregated fields’ RowGrandTotalHeaderCellTemplate. These are some of the set properties:

 

<telerik:RadPivotGrid ID="Name" runat="server" AggregatesLevel="5" ShowDataHeaderZone="False" AggregatesPosition="Rows" Height="700px"

OnNeedDataSource="Name_NeedDataSource" OnCellDataBound="Name_CellDataBound" OnItemCommand="Name_ItemCommand">

                   

<PagerStyle ChangePageSizeButtonToolTip="Change Page Size" PageSizeControlType="RadComboBox"></PagerStyle>

<ClientSettings>

<Scrolling AllowVerticalScroll="True" ScrollHeight="700px"/>

</ClientSettings>

 

<TotalsSettings ColumnGrandTotalsPosition="None" ColumnsSubTotalsPosition="None" RowsSubTotalsPosition="None" />

5 filters fields

1 column fields

5 rows fields

 

9 aggregated fields

 

Is there way I can correct this behavior?



I am using ASP.NET 4.5, Windows 8, Internet Explorer 10.0.9200.16721, Telerik v.2013.2.717.45, C#.

The provided help will be appreciated.

 

Thanks!

Jose

Jose
Top achievements
Rank 1
 answered on 14 Nov 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?