Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
218 views

Hi,

 Can I add custom MenuItem "Add Permission" to Folder or File of FileExplorer?? and on Click on that Menu Item I want to open a popup or new Window where I can pass the ItemID as querystring or something of selected Folder. Here is my code

 

<telerik:RadFileExplorer VisibleControls="TreeView,Toolbar,ListView,Grid,FileList,ContextMenus"
                runat="server" ID="RadFileExplorer1"   OnClientItemSelected="OnClientItemSelected"
                EnableOpenFile="true">
            </telerik:RadFileExplorer>

 protected void Page_Load(object sender, System.EventArgs e)
   {

       RadFileExplorer1.Configuration.SearchPatterns = new string[] { "*.jpg", "*.jpeg"};
       RadFileExplorer1.Configuration.ContentProviderTypeName = typeof(DBContentProvider).AssemblyQualifiedName;
       RadFileExplorer1.Configuration.ViewPaths = new string[] { "Files" };
       RadFileExplorer1.Configuration.UploadPaths = new string[] { "Files" };
       RadFileExplorer1.Configuration.DeletePaths = new string[] { "Files" };
   }

 

Vessy
Telerik team
 answered on 07 Dec 2015
9 answers
137 views

Hello,

When I upload new image the image is uploaded, but after the upload the ImageManager refreshes and display the warning that the same filename allreday exists: "A file with a name same as the target already exists!". 

How can I prevent this? I don't have a file with the same name. I thing that the problem is in refreshing that is happening after upload.

 

Thanks

Vessy
Telerik team
 answered on 07 Dec 2015
4 answers
603 views
I have noticed that drag and drop does not work on the MS Edge browser. Do you know if this a temporary glitch or permanent?
Nencho
Telerik team
 answered on 07 Dec 2015
1 answer
232 views

I am new to the Telerik platform and am building an edit form in a RadGrid populated via data entity with code behind needDataSource.

In the EditFormSetting I call a UserControl Form which renders the edit form when you click the edit record link.  The edit form has 2 GradDropDownLists that are populated via data entity as well.  When the edit form opens all the data from the data base is pulled in and fills the text boxes with the correct data using ASP code shown below.

Text='<%# DataBinder.Eval(Container, "DataItem.LastName2") %>'
 

The problem is the 2 DropDowns do not show the selected values from the database, the selected value shows the first item in the database table for the DropDown list.

How can I get these 2 DropDowns to display the database values ?

 

Thanks for any help

Perry

Perry
Top achievements
Rank 1
 answered on 07 Dec 2015
6 answers
145 views
Hi Everyone
I Have been trying to set header backcolour (to black) and the coloumn headings white to contrast. I have tried various things, but the header backcolour will not change it seesm to be the same as the MasterTableview, a light grey, the forecolour in the detail view changes, as does the backcolour in the detailview but not the header.  Any suggestions would be great.  Thanks

<telerik:RadGrid ID="gvDefleetCapIds" runat="server" AllowSorting="True" 
                    AutoGenerateColumns="False" CellSpacing="0" Font-Names="Verdana" 
                    Font-Size="X-Small" GridLines="None" 
                    ondetailtabledatabind="gvDefleetCapIds_DetailTableDataBind" 
                    oneditcommand="gvDefleetCapIds_EditCommand" 
                    onitemcommand="gvDefleetCapIds_ItemCommand" 
                    onneeddatasource="gvDefleetCapIds_NeedDataSource" 
                    onupdatecommand="gvDefleetCapIds_UpdateCommand" Width="1200px" 
                    AllowPaging="True" PageSize="30" AllowCustomPaging="True">
                    <headercontextmenu cssclass="GridContextMenu GridContextMenu_Default">
                    </headercontextmenu>
                    <mastertableview autogeneratecolumns="False" cellspacing="0" 
                        datakeynames="CapID,Year,Plate" font-names="Verdana" font-size="X-Small">
                        <DetailTables>
                            <telerik:GridTableView AutoGenerateColumns="False" 
                                DataKeyNames="RegNumber" Font-Names="Verdana" Font-Size="X-Small" 
                                Name="TheVehicles"  ShowFooter="true" >
                                <HeaderStyle ForeColor="White" BackColor="Black"
                                    HorizontalAlign="Justify" />


Eyup
Telerik team
 answered on 07 Dec 2015
1 answer
159 views
Is it possible with the RadAsyncUpload, for the user to drag and drop a folder in the area.  Then the uploaded folder is zipped while it is uploaded?
Ivan Danchev
Telerik team
 answered on 07 Dec 2015
1 answer
111 views

Hi:

I am building a RadGrid programatically from data read from a backend CRM system. The codebehind file builds a dataset and binds to the Radgrid. Can anyone provide an example on how I can set the format of the columns in the Codebehind file? I need some columns formatted as currency, some as percentage, etc. I tried using

RadGrid1_ColumnCreated

RadGrid1_ItemDataBound

but neither worked.

Thanks for any and all input.

John.

Maria Ilieva
Telerik team
 answered on 07 Dec 2015
18 answers
1.4K+ views
Hello,

Following this post suggestion and for performance purposes I’ve changed RadComboBox by RadDropDownList:

 
http://blogs.telerik.com/blogs/13-02-06/meet-the-better-performing-and-more-lightweight-dropdownlist-for-asp.net-ajax

The component is located in a responsive grid and its width is set to 100%. That works fine with RadCombobox and either the textbox and the list of items adjust their width to 100%. But with RadDropDownList the list width is not adjust to 100%, is adjusted to  width of the max length item.


<div class="container_16">
    <div class="grid_4">
      <asp:Literal runat="server" Text="<%$Resources:htmlContadorPedidos %>" />
    <div>
     <div class="grid_3">
         <telerik:RadDropDownList ID="ContadorPedidos" runat="server" Width="100%"  DropDownWidth="100%" Culture="es-ES" RenderMode="Lightweight">
          </telerik:RadDropDownList>
     </div>
 </div>
 <div class="clear">
</div>

How can I adjust dropdownwidth to 100%?

Thanks
Roberto



Nencho
Telerik team
 answered on 07 Dec 2015
3 answers
1.8K+ views
In ItemDataBound i can access cell using gridDataItem["uniquename"]. But how can i access column associated with this cell ? For instance i need to know what DataType the value in my cell is.
Daniel
Telerik team
 answered on 07 Dec 2015
2 answers
155 views

HI Community 

 

does anyone have an example of using a RadDropDownTree in a Filter ? 

 i searched in the forum without a result :-( 

 

what i have so far :-) 

 

 <telerik:GridBoundColumn DataField="Problem_FK" DataType="System.Int32" FilterControlAltText="Filter Problem_FK column" HeaderText="Problem_FK" SortExpression="Problem_FK" UniqueName="Problem_FK" Display="true">
                            <FilterTemplate>
                                    <telerik:RadDropDownTree ID="ddtProb" runat="server" DataFieldID="prob_ID" DataFieldParentID="prob_ParentID" OnClientEntryAdded="ExpectedIndexChanged" DataSourceID="dsProblemTree" DataTextField="prob_Name" DataValueField="prob_ID" Height="16px" Width="361px">
                                    </telerik:RadDropDownTree>
                                <telerik:RadScriptBlock ID="rsbExpected" runat="server">
                                    <script type="text/javascript">
                                        function ExpectedIndexChanged(sender, args) {
                                            var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");
                                            tableView.filter("Problem_FK", args.get_item().get_value(), "EqualTo");
                                        }
                                    </script>
                                </telerik:RadScriptBlock>
                            </FilterTemplate>
                    </telerik:GridBoundColumn>

 

thanks a lot

best regards 

Dennis 

Eyup
Telerik team
 answered on 07 Dec 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?