Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
213 views
Can anyone have called any custom method at server side after the file uploaded. I need to do call one custom event after I upload a file in the image manager of radeditor.

Any help will be obliged.

Hrushikesh Patel
Ianko
Telerik team
 answered on 15 Nov 2013
7 answers
716 views
Consider an example.....

a) I display a web-page "Page1.aspx"  in rad-window.....and inside this web-page on a button click i response.redirect to another web-page "Page2.aspx"..How do i make this  "Page2.aspx" open in the same window but do not display in "RadWindow".


Thanks
Varun
Top achievements
Rank 1
 answered on 15 Nov 2013
1 answer
413 views
Hi,
We are using radgrid latest version. We have a global routine used to loop thru rows of grid. THis is used in multiple page. On some page, grid has templated column with textbox and on other pages, grid tempate column has checkboxes. So, when grid is passed to global routine and loop thru rows, I need to check for templated column control type. If it is checkbox, I need to do some logic and if it is textbox, I need to do some other logic. Please let me know how to write code. FindControl expects ID. I know the id of both controls, but I don't know which one to use.
Something similar this

 

 

foreach (GridDataItem row in radGrid1.Items)
{
   //get the type of control
   Control ctl = typeof(row.findcontrol(...);
   if typeof(ctl) is Checkbox
    //do something
   if type(ctl) is TextBox
     //do something else.
}

This logic needs to be in global routine outside radgrid events.
Thank You

 

Princy
Top achievements
Rank 2
 answered on 15 Nov 2013
1 answer
100 views
Hallo
I have an asyncupload with plugins disabled and am creating a custom progress bar with the help of onclientprogressupdating and everything was working fine in my local machine. When the same application is hosted in windows 2008 server, the event is not firing in IE9. In other browsers this is working well. Has anyone faced such an issue?
Shinu
Top achievements
Rank 2
 answered on 15 Nov 2013
8 answers
432 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
251 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
425 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
147 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
182 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
132 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?