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.
=========================================================================================
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
);
}
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
Hi Folks,
Can anybody explain hoe to add a dynamic control inside RadGrid and it should be in newline?
Thanks!
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
;
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
>
Is it possible to add a customized map in RadMap by your own instead of using default maps?
For example, I would like to use a customized image as a map in RadMap and use its properties for location points. See image below as example.
Hi!
I am using batchEditUpdate and try to write functions for Save button. I have tried methods in the forum(http://www.telerik.com/forums/save-grid#RzXVB6XB_Uqod1m2h7Lwyw), but the OldValues for both methods only contains one element, the DataKeyNames. Why are there no column values of the grid in the OldValues? I need to compare some fields of OldValues and NewValues. Any suggestions?
Thanks in advance!
Sharon