Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
132 views

Hi

I've noticed that the drag and drop functionality of the AsyncUpload control doesn't seem to work in Microsoft Edge (IE 11 replacement) on Windows 10.

It works fine in Chrome & Firefox.

I've confirmed this behaviour against the Telerik demo: http://demos.telerik.com/aspnet-ajax/asyncupload/examples/draganddrop/defaultcs.aspx

Anyone else able to confirm this? Any thoughts?

Dimitar
Telerik team
 answered on 22 Dec 2015
3 answers
92 views

Hi,

I have a situation where I need to create a tree consisting of the following entities:

Organization Entity

   ---> Organization Account

        --> Organization Account Record

 Organization Entities can have sub-Organization entities, Accounts can have sub-Accounts and records can have sub-records.

As such I want to have different icons for the entity types, Different expand and click functionality based on the types and different context menu's for each type.

I have created custom "RadTreeNode" classes in the following way:

    public class OrgNode: RadTreeNode
    {

        public OrgNode()
        {
            this.ExpandMode = TreeNodeExpandMode.ServerSideCallBack;
            this.ImageUrl = "../Images/image01.png";
        }
    }

    public class OrgAccountNode: RadTreeNode
    {
        public OrgAccountNode()
        {
            this.ExpandMode = TreeNodeExpandMode.ServerSideCallBack;
            this.ImageUrl = "../Images/image02.png";
        }
    }

    public class OrgAccountRecordNode: RadTreeNode
    {
        public OrgAccountRecordNode()
        {
            this.ExpandMode = TreeNodeExpandMode.ServerSideCallBack;
            this.ImageUrl = "../Images/image03.png";
        }
    }

My problem exists when I use the "TreeView_NodeExpanded" method, because (as mentioned above) I want to do different things based on what type of node is expanded...

Using the following statements:

e.Node.GetType() 

returns correctly for the top node (OrgNode - the only node on the page not created using the serversidecallback) but only returns "RadTreeNode" as the type for all other nodes which I have added using ServerSideCallback even though the nodes added are showing the correct images and text.

Has anyone got any thoughts on this?

Peter Filipov
Telerik team
 answered on 22 Dec 2015
5 answers
342 views
I've done several variations on on forum searches and looked through the help, but I'm not finding the solution I seek (if it exists).

I have a RadGrid whose editform background color I'd like to change (ideally make it transparent), but I can't find the property to do this.

I'm using the Simple skin.  I've gone to the Visual Style Editor to see of this was changeable.  No go. 
I've tried to go through the property builder > Master table > Styles manager > General table style > Back color.  No go.
I've gone in through the properties pane:
MasterTableView > BackColor
MasterTableView > EditFormSettings > FormStyle > BackColor
MasterTableView > EditFormSettings > FormMainTableStyle > BackColor
MasterTableView > EditFormSettings > FormTableStyle > BackColor

I've changed them individually and all together.

Any help / direction?
Eon
Top achievements
Rank 1
 answered on 22 Dec 2015
1 answer
47 views

Hello, 

 After unexpected restart of my system i got this error. Please any one can help me on this issue.

Could not load file or assembly 'Telerik.Web.UI, Version=2015.2.826.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)

 Thanks in Advance

Prakash A

Pavlina
Telerik team
 answered on 22 Dec 2015
11 answers
477 views
Hi all,
I'm implementing a file upload with direct access to DB with custom http handler. I read all the samples but I dont understand how to add an additional description field that the user have to write before sent the file.
I have to implement a page like this http://demos.telerik.com/aspnet-ajax/asyncupload/examples/imageuploader/defaultcs.aspx adding a description textbox, sent this value with the handler and save all to DB.

It's this possible?

Thanks,
Gianluca
Plamen
Telerik team
 answered on 22 Dec 2015
5 answers
342 views
I have my wrapped in

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">

But I still get the error:
"Code blocks are not allowed in this file"

Any ideas on what I could be missing here?
Pavlina
Telerik team
 answered on 22 Dec 2015
1 answer
102 views

Hello,

We have our employee photos as binary fields (VARBINARY(MAX)) in our SQL Server database. How to bind these Images to the indiviudal Org Chart boxes?

Do you have sample Code available?

Thanks in advance.

Thomas

 

 

Plamen
Telerik team
 answered on 22 Dec 2015
2 answers
219 views
Hi I have a RadTreeView where I have implemented a context menu on the nodes.

<telerik:RadTreeView ID="RadTreeView1" runat="server" OnContextMenuItemClick="RadTreeView1_ContextMenuItemClick" OnClientContextMenuItemClicking="onClientContextMenuItemClicking">               
             <ContextMenus>
                    <telerik:RadTreeViewContextMenu ID="ctxMenuAddK1" runat="server">
                        <Items>
                            <telerik:RadMenuItem Value="addNodeK1" Text="Add New K1 Node">
                            </telerik:RadMenuItem>                                            
                        </Items>
                     </telerik:RadTreeViewContextMenu>
            </ContextMenus>                       
</telerik:RadTreeView>


when user clicks the menu item, the client side event fires and a modal popup is displayed to the user. the modal popup has 2 text boxes, when user enters value in those text boxes and submits the popup, the text box values are concatenated and sent back to the calling page, where this value id captured in a hidden field.

case "addNodeK1":
var windowResult = window.showModalDialog("Controls\\newNodeK1.htm", "Enter Value", "dialogHeight: 300px; dialogWidth: 400px;");
document.getElementById('<%=HiddenField1.ClientID %>').value = windowResult;
break;

now the control goes to the server side context menu click event. here I am picking up the value from the hidden field, and do my tasks.

protected void RadTreeView1_ContextMenuItemClick(object sender, RadTreeViewContextMenuEventArgs e)
{           
switch (e.MenuItem.Value)
{
case "addNodeK1": 
// get node name and node value from the hidden field.
string nameValue = HiddenField1.Value;
}
}

This works fine. the modal popup holds the execution until a value is submitted by the user. but the issue comes when I try to use radWindow instead of the modal popup.

I have added a radWindowManager and one child radWindow inside it. 

<telerik:RadWindowManager ID="RadWindowManager1" ShowContentDuringLoad="false" VisibleStatusbar="false"
        ReloadOnShow="true" runat="server" Skin="Sunset" EnableShadow="true">
        <Windows>
            <telerik:RadWindow ID="RadWindow1" runat="server" Behaviors="Close" OnClientClose="OnClientClose"
                NavigateUrl="Controls\\newNodeK1.htm">
            </telerik:RadWindow>           
        </Windows>
</telerik:RadWindowManager>

and I am trying to invoke the radwindow in the context menu clicked on the client.

var oWnd = radopen("Controls\\newNodeK1.htm", "RadWindow1");

The problem is that unlike the modal popup, it does not hold the execution. the RadWindow appears but the server side code executes simultaneously, and since the hidden field ie empty, my code does not work. what could be the solution of this problem? 
Bhavya
Top achievements
Rank 1
 answered on 22 Dec 2015
1 answer
54 views

Hello All,

Hopefully this has an easy solution. I'm using a RadGrid with an EditForm (EditFormType="Template"). In that form I have a dropdownlist and several other fields. Depending on the value selected in the ddl, I need to enable or disable certain validators. the following code for SelectedIndexChanged works when in edit mode, but does not when in insert mode. How do I get it to fire for Insert as well as Edit?

 

    Protected Sub lstContactType_SelectedIndexChanged(sender As Object, e As EventArgs)

        For Each item As GridDataItem In gridEmpContacts.EditItems
            ' Access your textbox here
            Dim rfv1 As RequiredFieldValidator = TryCast(item.EditFormItem.FindControl("rfvSSN"), RequiredFieldValidator)
            Dim rfv2 As RequiredFieldValidator = TryCast(item.EditFormItem.FindControl("rfvPctBene"), RequiredFieldValidator)
            Dim rfv3 As RequiredFieldValidator = TryCast(item.EditFormItem.FindControl("rfvContactDoB"), RequiredFieldValidator)
            Dim listbox As DropDownList = DirectCast(sender, DropDownList)

            Select Case listbox.SelectedValue
                Case "401K/Profitsharing - Primary", "401K/Profitsharing - Secondary", "Life - Primary", "Life - Secondary", "AD&D - Primary", "AD&D - Secondary"
                    rfv1.Enabled = True
                    rfv2.Enabled = True
                    rfv3.Enabled = True
                Case Else
                    rfv1.Enabled = False
                    rfv2.Enabled = False
                    rfv3.Enabled = False
            End Select
        Next




    End Sub

Viktor Tachev
Telerik team
 answered on 21 Dec 2015
1 answer
101 views

Hi there

 I just startet my first RadGrid Project in ASP.Net.

My question is:

Can I display a large cell with long text in one or two lines and then make something like ". . ." to show that the text is longer than the cell.

Another question is:

How can change the "Update" and the "Cancel" text for the Editing Form.

 

Greetings and thx for your help :-)

Eyup
Telerik team
 answered on 21 Dec 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?