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

I am using version Telerik.Web.UI  2016.2.607.45  

 

I have downloaded the patch SecurityPatch_2016_2_607.zip from https://www.telerik.com/account/product-download?product=RCAJAX

 

When I replaced the references form the old Telerik.Web.UI to the newly patched dll I get the following error compiling the project.  

 

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

 

This appears to be in my license Telerik.Web.UI.RadGrid, Telerik.Web.UI, Version=2016.1.225.45.  I did not renew my subscription in 2016 but purchased the license 2015

 

 

 

 

 

Marin Bratanov
Telerik team
 answered on 18 Dec 2017
0 answers
125 views

Here is what is working:
I have a RadGrid with a single MasterTableView, loading data from a database table.
Users are able to edit the data using a WebUserControl:
                <EditFormSettings UserControlName="JIBCoding.ascx" EditFormType="WebUserControl" PopUpSettings-Height="600" PopUpSettings-Width="1000">
                    <EditColumn UniqueName="order_by">
                    </EditColumn>
                </EditFormSettings>
The Edit form appears, the user can edit the data, press the "Update" button, which triggers the 'OnUpdateCommand="RadGrid1_UpdateCommand"' to reflect the edited data in the grid and update the database.
All this works fine.

However, I need to be able to perform some validation on the data entered by the user before the Update sequence starts.
If the validation fails, I want to display an alert with an error message, and with the WebUserControl form to remain displayed, with the data as entered by the user. Basically intercept the "update" sequence.

As a result, I have been trying to figure out how to programmatically fire the "Update" comment from Javascript, and I can't figure out what I'm doing wrong.
I've been basing my attempts on the following post:
https://www.telerik.com/forums/calling-the-itemcommand-handler-from-javascript

In my Grid.aspx code, I have the following Javascript code:
<script>
    var varRadGrid;
    function GridCreated(sender, eventArgs) {
        varRadGrid = sender;
    }
    function CallUpdate() {
        var masterTable = varRadGrid.get_masterTableView();
        masterTable.fireCommand("Update", "");
    }
</script>

In my WebUserControl code, I have added a "Validate/update" button to call the "CallUpdate" function:
            <asp:Button ID="button" runat="server" Text="validate/update" OnClientClick="javascript:CallUpdate();" />

I can trace through that all the various pieces appear to be working:
1. When the grid initially loads, a reference to it is captured in varRadGrid.
2. When the user presses the "Validate/update" button, the CallUpdate function is called, and it is able to reference the varRadGrid object.
3. However, the code ' masterTable.fireCommand("Update", ""); ' appears to not do anything.
Actually, that's not true - the WebUserControl form closes, but then is immediately redisplayed.

Any edited data is not reflected back in the underlying grid - the "Update" command doesn't appear to be being fired.

Any ideas? Help much appreciated!!

Simon
Top achievements
Rank 1
 asked on 15 Dec 2017
0 answers
246 views

Hi All, 

 

i have a grid view and i want to have 2 question first how can i fill the drop down with data table from the c# 2nd how can i do it cascading from the c# too i will make it onselected item change but can i find the secound dropdown menu to auto fill with the new dropdown list 

 

 

ps <br> is not there its just added by code format :)

 

   <telerik:RadGrid ID="staffmanagement" runat="server" OnNeedDataSource="staffmanagement_NeedDataSource" Skin="Bootstrap" AutoGenerateColumns="false" OnInsertCommand="staffmanagement_InsertCommand" OnUpdateCommand="staffmanagement_UpdateCommand" OnDeleteCommand="staffmanagement_DeleteCommand" AllowPaging="True" ><br>                <MasterTableView CommandItemDisplay="Top" InsertItemPageIndexAction="ShowItemOnCurrentPage" CommandItemSettings-ShowRefreshButton="false" DataKeyNames="ID"><br>               <Columns><br><br>                    <telerik:GridTemplateColumn HeaderText="Department" UniqueName="DepartmentColumn" HeaderStyle-HorizontalAlign="Center"><br>                            <ItemTemplate><br>                                <asp:Label ID="Department" runat="server" Text='<%# Eval("strorg") %>'></asp:Label><br>                            </ItemTemplate><br>                            <EditItemTemplate><br>                                <telerik:RadDropDownList ID="Departmentedit" runat="server"><br>                                  <br>                                </telerik:RadDropDownList><br>                            </EditItemTemplate><br>                            <InsertItemTemplate><br>                                <telerik:RadDropDownList ID="Departmentinsert" runat="server"><br><br>                                  <br>                                </telerik:RadDropDownList><br>                            </InsertItemTemplate><br>                        </telerik:GridTemplateColumn><br></p><p>      <telerik:GridTemplateColumn HeaderText="supDepartment" UniqueName="supDepartmentColumn" HeaderStyle-HorizontalAlign="Center"><br>                            <ItemTemplate><br>                                <asp:Label ID="supDepartment" runat="server" Text='<%# Eval("strsuporg") %>'></asp:Label><br>                            </ItemTemplate><br>                            <EditItemTemplate><br>                                <telerik:RadDropDownList ID="supDepartmentedit" runat="server"><br>                                  <br>                                </telerik:RadDropDownList><br>                            </EditItemTemplate><br>                            <InsertItemTemplate><br>                                <telerik:RadDropDownList ID="supDepartmentinsert" runat="server"><br><br>                                  <br>                                </telerik:RadDropDownList><br>                            </InsertItemTemplate><br>                        </telerik:GridTemplateColumn></p><p></p><p></p><p>                        <telerik:GridEditCommandColumn ButtonType="ImageButton" HeaderStyle-HorizontalAlign="Center" UniqueName="edit" /><br>                        <telerik:GridButtonColumn ConfirmText="Delete this Staff" ConfirmDialogType="RadWindow" ConfirmTitle="Delete"  ButtonType="FontIconButton" CommandName="Delete" ColumnGroupName="APlate" HeaderStyle-HorizontalAlign="Center" UniqueName="delete" /><br><br><br><br><br>               </Columns><br>                    </MasterTableView><br><br>            </telerik:RadGrid>
Kareem
Top achievements
Rank 2
 asked on 15 Dec 2017
2 answers
166 views

How can I replace expand/collapse images of Radpanel item with some other images when RenderMode="Lightweight" ?

On expand I need to show different image and On collapse I need to show another image.

 

Below solution is not working for me because I think skin file selector is not supporting.

 

<style>
    .t-i-expand-s:before, .t-i-expand-down:before, .p-i-expand-s:before, .p-i-expand-down:before, .p-i-arrow-chevron-down:before {
        content: "\e100" !important;
    }

    .t-i-expand-n:before, .t-i-expand-up:before, .p-i-expand-n:before, .p-i-expand-up:before, .p-i-arrow-chevron-up:before {
        content: "\e101" !important;
    }
</style>

 

 

Right now my selector is like

 

.RadPanelBar .rpExpandable .rpExpandHandle 

{

display : block;

}

 

 

Arpit
Top achievements
Rank 1
 answered on 15 Dec 2017
0 answers
143 views

I have the following problem, I check the documentation and several samples for hours, I attach the images on the aligned RadMenuItem  and left position, whatever the click I need the position the first o second row the RadMenuItem should be aligned to left

In the following line of code does not allow to select the second row of the menu

.infoenergy .RadMenu_Glow .rmHorizontal .rmItem {
    position: static;
}

Franklin
Top achievements
Rank 1
 asked on 15 Dec 2017
1 answer
232 views

I'm trying to databind the pie chart to the sqldatasource, but it seems there are issues (or I'm not doing it right) with DataFieldY.  The sqldatasource will return 2 column of data as follow:
Description     cnt
7 Days            3
30 Days        37
Rest              42
24 Hour         116

Where the "Description" column I assign to "NameField" and "cnt" column I assign to DataFieldY.  Below is my code for the chart.
                            <telerik:RadHtmlChart runat="server" ID="chartRouters" Width="100%" Height="100%" Transitions="true" 
                                Skin="Silk" DataSourceID="sqlDSModem">
                                <ChartTitle Text="Router Status">
                                    <Appearance Align="Center" Position="Top">
                                        <TextStyle Color="White" />
                                    </Appearance>
                                </ChartTitle>
                                <Legend>
                                    <Appearance Position="Right" Visible="true">
                                    </Appearance>
                                </Legend>
                                <PlotArea>
                                    <Series>
                                        <telerik:PieSeries StartAngle="90" DataFieldY="Cnt" NameField="Description">
                                            <LabelsAppearance Position="OutsideEnd" DataFormatString="{0} %">
                                            </LabelsAppearance>
                                            <TooltipsAppearance Color="White" DataFormatString="{0} %"></TooltipsAppearance>
                                        </telerik:PieSeries>
                                    </Series>
                                </PlotArea>
                            </telerik:RadHtmlChart>   

when I run the code, my pie chart looked "weird" and had only 4 lines (not the chart line, but lines extending out from a single point) Looks almost lilke it is not reading the "cnt" column of the data.  

When I go to the immediate window and do the :

?chartRouters.PlotArea.Series(0).DataFieldY(0)

 

it gave me value of "c" and then DataFieldY(1) is "n" and DataField(2) is "t".  I was expecting to see the actual value when I do that, but it almost like is putting the column field name in the value instead of actual data value?  That is weird.

What is wrong?

thank you!

Frank
Top achievements
Rank 1
 answered on 14 Dec 2017
4 answers
276 views

How do you clear the selection or go back to intial state via javascript?  I can do it from codebehind but it's faster on the client side.

Thanks,

Tim

Rumen
Telerik team
 answered on 14 Dec 2017
7 answers
2.0K+ views
The web application I have developed works fine on my local machine but when I try to run it from the server it gives me the following error. I have Telerik.Web.UI.dll andTelerik.Web.Design.dll in my Bin folder.

Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies. Strong name signature could not be verified.  The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)

Stack Trace:


[FileLoadException: Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies. Strong name signature could not be verified.  The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)]

[FileLoadException: Could not load file or assembly 'Telerik.Web.UI, Version=2010.3.1215.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. Strong name signature could not be verified.  The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)]
   System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
   System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks) +567
   System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +192
   System.Reflection.Assembly.Load(String assemblyString) +35
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +123

[ConfigurationErrorsException: Could not load file or assembly 'Telerik.Web.UI, Version=2010.3.1215.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. Strong name signature could not be verified.  The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)]
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +11565312
   System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +485
   System.Web.Configuration.AssemblyInfo.get_AssemblyInternal() +79
   System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +334
   System.Web.Compilation.BuildManager.CallPreStartInitMethods() +280
   System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +1167

[HttpException (0x80004005): Could not load file or assembly 'Telerik.Web.UI, Version=2010.3.1215.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. Strong name signature could not be verified.  The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +11697760
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +141
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +4866485

 

Few parts of my web.config are as follows:
<compilation debug="true">
     <assemblies>
         <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
         <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
         <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
         <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
         <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
         <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
         <add assembly="System.Speech, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
     </assemblies>
   </compilation>
 
 
<httpHandlers>
     <remove verb="*" path="*.asmx" />
     <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
     <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
     <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
     <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" verb="*" validate="false" />
   </httpHandlers>
KidSysco
Top achievements
Rank 1
 answered on 14 Dec 2017
0 answers
149 views
I've found that RadGrid filtering doesn't work when the values have a "<" (less than) character inside of the column.  Upon removing the values with the "<" sign, the filters work.  Does anyone know a fix or way around this?  It seems like an escaping bug.

Thanks,
Jason
l
Jason
Top achievements
Rank 1
 asked on 14 Dec 2017
4 answers
386 views

radGrid1.ExportSettings.Excel.Format = GridExcelExportFormat.Biff;

I want the format to be Xlsx.  But it only shows Biff, ExcelML, Html as selection.  My references of Telerk.Web.UI is pointing to

C:\Program Files (x86)\Progress\Telerik UI for ASP.NET AJAX R3 2017\Bin35\Telerik.Web.UI.dll

What do I miss?  Thanks.

Vessy
Telerik team
 answered on 14 Dec 2017
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?