Telerik toolbar error - c#

I'm trying to install the editable grid from Telerik. I have this one error:
Error 13
'Telerik.Web.Mvc.UI.Fluent.GridDataKeyBuilder' does not contain a definition for 'ToolBar' and no extension method 'ToolBar' accepting a first argument of type 'Telerik.Web.Mvc.UI.Fluent.GridDataKeyBuilder' could be found (are you missing a using directive or an assembly reference?) c:\Users\dmccray11\Desktop\TheManhattanProject\Views\Home\PartialSlagView.cshtml 42 10 TheManhattanProject
This is the line of code that renders this error:
.Grid(Model)
.Name("Grid")
.DataKeys(keys => keys.Add(c => c.analysisid)
.ToolBar(commands => commands.Insert().ButtonType(type).ImageHtmlAttributes(new { style = "margin-left:0" })))
Does anyone know what could be the cause of this error?

Ensure you have adjusted your Views directory web.config to include the Telerik assembly.

Related

Selenium Webdriver using isDisplayed() not working

Goal: checking if the element exists on the page, if so, continue with the test, if it doesn't show an error and stop the test.
Boolean Display = Driver.FindElement(By.CssSelector(".mat - select")).isDisplayed();
Error CS1061 'IWebElement' does not contain a definition for 'isDisplayed' and no accessible extension method 'isDisplayed' accepting a first argument of type 'IWebElement' could be found (are you missing a using directive or an assembly reference?)
Boolean Display = Driver.FindElement(By.CssSelector(".mat - select")).Displayed();
Error CS1955 Non-invocable member 'IWebElement.Displayed' cannot be used like a method.
I will be grateful for your help!
In C# Selenium there is no isDisplayed() method. Also Displayed is a property, not a method.
So instead of
Boolean Display = Driver.FindElement(By.CssSelector(".mat - select")).isDisplayed();
Try using
Boolean Display = Driver.FindElement(By.CssSelector(".mat - select")).Displayed;

C#: Resolve Missing Assembly Reference for IServiceProvider.QueryService

I am not able to build some C# code because of the following message:
Error CS1061 'IServiceProvider' does not contain a definition for 'QueryService' and no extension method 'QueryService' accepting
a first argument of type 'IServiceProvider' could be found (are you missing a using directive or an assembly reference?)
serviceProvider.QueryService(ref SID_STopLevelBrowser, ref guidIServiceProvider, out objIServiceProvider);
Can this be fixed by adding a reference? Which one?
Microsoft.VisualStudio.Data.dll
https://learn.microsoft.com/en-us/dotnet/api/microsoft.visualstudio.data.serviceprovider.microsoft-visualstudio-ole-interop-iserviceprovider-queryservice?view=visualstudiosdk-2019

C# SSRS 'ReportExecutionService' does not contain a definition for 'ListChildren'

I'm trying to get a list of folders and RDL files in those folders on an SSRS 2008 server and I'm getting the following messages when trying to iterate through the folders.
'ReportExecutionService' does not contain a definition for 'ListChildren' and no accessible extension method 'ListChildren' accepting a first argument of type 'ReportExecutionService' could be found (are you missing a using directive or an assembly reference?)
var rs05 = new SSRS2005.ReportExecutionService();
rs05.Url = "http://<servername>/ReportServer/ReportService2005.asmx?wsdl";
rs05.Credentials = System.Net.CredentialCache.DefaultCredentials;
var reports = rs05.ListChildren("/");
I have it exactly as every example out there. Is ListChildren not exposed? Am I missing something?

How i can call winform from wpf window

Here is the code in wpf window that is calling two winform :
(new TWSMIS.Customer.New_CustomerF()).Show();
(new TWSMIS.Voucher.Create_Dv_VouchersF()).Show();
Here project name is "TWSMIS" folder names are "Customer" and "Voucher" respectively .In this code only first line is giving error of :" The type or namespace name 'New_CustomerF' does not exist in the namespace 'TWSMIS.Customer' (are you missing an assembly reference?) C:\Users\SKJ\Documents\Visual Studio 2012\Projects\TWSMIS\TWSMIS\HomePage.xaml.cs" While second line is executing correctly .Can some body tell me how to correct this error?

CrystalReport's Section Does not have property of AddTextObject in VS2010 with CR13

Note: I am using CR13 with VS 2010.
I am creating winform app.I want to create report dynamically,
I got reference of one of link in which the guy had created report dynamically:
http://www.xtremevbtalk.com/archive/index.php/t-248952.html?
I want same thing but i couldn't. I have create my report's instance as
EmployeeReport empRpt = new EmployeeReport();
then want to add TextObject as like
empRpt.section3.AddTextObject("Print Date: ", 0, 890).
But VS2010 gives me error that:
Error 16 'CrystalDecisions.CrystalReports.Engine.Section' does not
contain a definition for 'AddTextObject' and no extension method
'AddTextObject' accepting a first argument of type
'CrystalDecisions.CrystalReports.Engine.Section' could be found (are
you missing a using directive or an assembly reference?
Any suggestions?
empRpt.Section(3).AddTextObject("Print Date: ", 0, 890")
^here

Categories