Hello Telerik Team,
I have a requirement where i need to pass some values from another method to the user functions.
I found that we cant use viewstate in static methods..and user functions should be static always.
How can we use session state here .
The following code is:
public reportname()
{
foreach (SPListItem item in listItemsCollection)
{
string Type = item["Columnname"].ToString();
}
}
public static string FormType(string Type)
{
// string TypeVal = "AA";
switch (Type)
{
case "AA":
Type = "Approved";
break;
}
return Type;
}
In the above code i need to pass "Type" value to the user function FormType.I appreciate your support.
Hello Telerik Team,
I have a sharepoint web part where i my user control loads which contains a report in it.
When i create a master detail report using subreports following this video (http://tv.telerik.com/watch/reporting/video/telerik-trainer-reporting-subreports)..its working fine in a class library project.
But when i implement the same inside a user control it says
"The type name 'detailsreportname' does not exist in the type 'TestUserControlUC.TestUserControlUC"
Please help in resolving the issue.
Thank you
Smith
public Form1() |
{ |
InitializeComponent(); |
//reportViewer1.RefreshReport(); |
String loc = "C:\\test1.csv"; |
DataTable k = parseCSV(loc); // return a DataTable |
this.DataSource = k |
} |
I have a form using the class to show the report.
1. There is no DataSource for either 'this' or 'reportViewer1'.
2. How can I use DataTable as a source to display.
I believe that I messed up somewhere. Can anyone show me a sample code which tells me how to use DataTable, instead of connecting to a database.
Thanks,
Nick
<
telerik:RadWindow
ID
=
"DocumentWindow"
runat
=
"server"
Modal
=
"True"
VisibleOnPageLoad
=
"false"
Behaviors
=
"Close"
AutoSize
=
"false"
Height
=
"480"
Width
=
"640"
>
<
ContentTemplate
>
<
asp:UpdatePanel
ID
=
"DocumentWindowUpdatePanel"
runat
=
"server"
UpdateMode
=
"Always"
>
<
ContentTemplate
>
</
ContentTemplate
>
</
asp:UpdatePanel
>
</
ContentTemplate
>
</
telerik:RadWindow
>