Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
60 views

Hi,

 

we're thinking about buying your products thanks to the ImageEditor you have. Downloaded the Trial and played around with it.
But I couldn't figure out how to make the ImageEditor to work with an ImageGallery.


What wee need is to be able to:

1. Load image(s) into the gallery.
2. When the user clicks an image, open that image in a popup/modal window displaying it in a ImageEditor.

Is this possible?

Niko
Telerik team
 answered on 25 Jan 2016
7 answers
291 views
Could I ask if I'm able to create empty group with RadGrid grouping feature?

I've seen 'group by month' example in code library and I wish all 12 months were there, not only those existing in the data source.

I could use master-detail feature which would display empty detail table, but I would like to have common header consisting of only detail columns' names and some group information (like name of the group), that's why I think grouping feature suits better. Please let me know if I'm wrong and it's possible to create master-detail report, so that it looked as it was grouped.

Thanks in advance,
Alexander
Pavlina
Telerik team
 answered on 25 Jan 2016
1 answer
1.0K+ views

I have a problem when try to add telerik components to my web application.

I used telerik version 2016.1.113.45. 

I need your help how to solve this issue below:

========================================================================================================================= 

Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies. The system cannot find the file specified.

Source Error:

[No relevant source lines]
Source File: none    Line: 0

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Telerik.Web.UI' could not be loaded.

=== Pre-bind state information === LOG: User = Zydney-PC\Zydney LOG: DisplayName = Telerik.Web.UI (Partial) WRN: Partial binding information was supplied for an assembly: WRN: Assembly Name: Telerik.Web.UI | Domain ID: 2 WRN: A partial bind occurs when only part of the assembly display name is provided. WRN: This might result in the binder loading an incorrect assembly. WRN: It is recommended to provide a fully specified textual identity for the assembly, WRN: that consists of the simple name, version, culture, and public key token. WRN: See whitepaper http://go.microsoft.com/fwlink/?LinkId=109270 for more information and common solutions to this issue. LOG: Appbase = file:///D:/Zydney/NewGen21Web/NewGen21Web/ LOG: Initial PrivatePath = D:\Zydney\NewGen21Web\NewGen21Web\bin Calling assembly : (Unknown). === LOG: This bind starts in default load context. LOG: Using application configuration file: D:\Zydney\NewGen21Web\NewGen21Web\web.config LOG: Using host configuration file: C:\Users\Zydney\Documents\IISExpress\config\aspnet.config LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config. LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind). LOG: The same bind was seen before, and was failed with hr = 0x80070002.

=========================================================================================

 

Vessy
Telerik team
 answered on 25 Jan 2016
1 answer
519 views
 

My problem is, nothing happens, the code behind doesn't fire...Maybe someone could point me in the right direction. Is it possible to do something like this or am I totaly wrong here?
default.aspx:

<telerik:RadAsyncUpload ID="RadAsyncUpload1"
         runat="server"
         CssClass="async-attachment"
         MultipleFileSelection="Automatic"
         RenderMode="Lightweight"
         OnFileUploaded="UploadFiles"
         TargetFolder="../App_Themes/media"
         HideFileInput="true"
         Localization-Select="اختر الملف"
         AllowedFileExtensions=".mp4,.webm,.ogv"
>

 

Default.aspx.cs

public void UploadFiles(object sneder, FileUploadedEventArgs  e)
    {
 const string relativePath = "~/App_Themes/media";
        var filename = e.File.FileName;
        var parentID = Convert.ToInt32(GridView1.SelectedValue);
        var filesize = Convert.ToInt32(e.File.ContentLength);
        var physicalSavePath = MapPath(relativePath) + filename;
 
        //Store file info in database
            var app_FilesAdapter = new app_FilesTableAdapter();
            app_FilesAdapter.Insert(filename, relativePath + filename, parentID, 1, DateTime.Now, filesize);
 
        //Save physical file on disk
            e.File.SaveAs(physicalSavePath, true);
}

Vessy
Telerik team
 answered on 25 Jan 2016
1 answer
113 views

Hi

I wana to fetch page size  of radgrid record from data base , but in your online demo code  , you used   (select * from xxx) !...

in this link

http://demos.telerik.com/aspnet-ajax/grid/examples/performance/linq/defaultcs.aspx

you talk about performance ! but if my table has a lot of recored , why i should fetch all of them ???

In  asp.net 4.5  for   "  asp:GridView  " control i can use this code :

 

public IEnumerable<SearchProvince> GetProvinces(int startRowIndex, int maximumRows, out int totalRowCount,
             [System.Web.ModelBinding.Control("pID")]int? provinceId,
             [System.Web.ModelBinding.Control("pName")] string provinceName)
        {
            using (var db = new XXXEntities())
            {
                IQueryable<Province> list =
                    (from p in db.Provinces
                     select new SearchProvince { ProvinceID = p.ProvinceID, ProvinceName = p.ProvinceName }).OrderBy(
                            p => p.ProvinceName);

                if (provinceId > 0)
                {
                    startRowIndex = 0;
                    list = list.Where(p => p.ProvinceID == provinceId);
                }
                if (!string.IsNullOrWhiteSpace(provinceName))
                {
                    startRowIndex = 0;
                    list = list.Where(p => p.ProvinceName.StartsWith(provinceName));
                }
                totalRowCount = list.Count();
                return list.Skip(startRowIndex).Take(maximumRows).ToList();
            }
        }

 

How can i implement this code for  RadGrid ?

 

thanks

Viktor Tachev
Telerik team
 answered on 25 Jan 2016
1 answer
75 views

Hi Folks,

 

Can anybody explain hoe to add a dynamic control inside RadGrid and it should be in newline?

Viktor Tachev
Telerik team
 answered on 25 Jan 2016
1 answer
316 views
RadAsyncUpload OnFileUploaded Event not fired 
Vessy
Telerik team
 answered on 25 Jan 2016
3 answers
808 views
Hello
I have a radgrid. When I add a record, in the edit mode, I would like to set a maxlength to my gridBoundColumn which is multiline. I saw that I can't do that, does it have a workaround for this?

Thanks!

Eyup
Telerik team
 answered on 25 Jan 2016
1 answer
276 views

There seems to be a bug in the latest release 2016.1.113. We have RadButtons using the ToggleType of Radio and the ButtonType of StandardButton like so:

<telerik:RadButton ID="rbCreditCardPresent" runat="server" ToggleType="Radio" ButtonType="StandardButton" GroupName="paymenttype" ValidationGroup="pospay" AutoPostBack="false" Text="CC - Present" OnClientClicked="CheckChanged" CommandName="Present" Width="125px">

Using version 2015.1.401 the width has always been properly displayed. After upgrading to 2016.1.113 it seems like the width if basically ignored. The buttons end up being the width of the text like in the attached image. 

 It seems like a workaround is to add a CSS class like the following, however that is kind of an annoyance and in Chrome this causes the text to dance around in the box when the page is loading. Is this truly a bug or am I missing something?

.wide input {
    width: 100% !important;
}

Niko
Telerik team
 answered on 25 Jan 2016
1 answer
404 views

Hi, 

On a RadTreeList I would like to set ExpandCollapseMode="Client", so that all the expand/collapse is left to the client side, as this improves UX for my application. However, I have noticed that by setting this attribute on the RadTreeList definition, every time my RadTreeList loads (on page load) it is fully collapsed. (See attached image). Even if the last call I make server side is rtlTreeList.ExapandAllItems(); 

 I assume that on the client side, the nodes are being collapsed by default - is there any way to alter this behaviour? When my RadTreeList loads, it is also disabled, to allow read only access, which is why I would like the tree to load fully expanded.  Or perhaps there is a better way to make a RadTreeList disabled, but viewable other then setting each node to disabled? 

 

Thanks,

Craig

 

<telerik:RadTreeList ID="rtlAreaJurTreeList" runat="server" OnNeedDataSource="rtlAreaJurTreeList_NeedDataSource"
ParentDataKeyNames="ParentAreaCode" DataKeyNames="Code" AllowPaging="false"
AutoGenerateColumns="false" AllowSorting="true" OnItemDataBound="rtlAreaJurTreeList_ItemDataBound" Height="550px"
HeaderStyle-BorderStyle="Solid" AllowRecursiveSelection="true"
AllowRecursiveDelete="true" Width="400px" ExpandCollapseMode="Client">
 
<Columns>
  <telerik:TreeListBoundColumn DataField="ParentAreaCode" UniqueName="ParentAreaCode" HeaderText="Parent Area Code" Display="false" />
  <telerik:TreeListBoundColumn DataField="Code" UniqueName="Code" HeaderText="Area/Jur Code" Display="false" />
  <telerik:TreeListBoundColumn DataField="Area" UniqueName="Area" HeaderText="Area Name (If Area)" Display="false" />
  <telerik:TreeListBoundColumn DataField="Jurisdiction" UniqueName="Jurisdiction" HeaderText="Jurisdiction Name (If Jur)" Display="false" />
  <telerik:TreeListBoundColumn DataField="isAreaItem" UniqueName="isAreaItem" HeaderText="isAreaItem" Display="false" />
  <telerik:TreeListBoundColumn DataField="isJurisdictionItem" UniqueName="isJurisdictionItem" HeaderText="isJurisdictionItem" Display="false" />
  <telerik:TreeListBoundColumn DataField="Description" UniqueName="Description" HeaderText="Description" />
  <telerik:TreeListSelectColumn UniqueName="Included" HeaderStyle-Width="50px" HeaderText="Included"></telerik:TreeListSelectColumn>
</Columns>
<ClientSettings>
   <Scrolling AllowScroll="true" UseStaticHeaders="true" SaveScrollPosition="true" ScrollHeight="520px" />
 
</ClientSettings>
</telerik:RadTreeList>

 

Kostadin
Telerik team
 answered on 25 Jan 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?