<telerik:RadButton Command="{Binding ZoomInCommand}" Margin="0,2" Padding="2">
<Image Width="16" Height="16" Source="{StaticResource ZoomIn}" />
</telerik:RadButton>
<telerik:RadButton Command="{Binding ZoomOutCommand}" Margin="0,2" Padding="2">
<Image Width="16" Height="16" Source="{StaticResource ZoomOut}" />
</telerik:RadButton>
<telerikNavigation:RadToolBarSeparator />
<telerik:RadButton Command="{Binding CloseCommand}" Margin="0,2" Padding="2">
<Image Width="16" Height="16" Source="{StaticResource Close}" />
</telerik:RadButton>
Unfortunately I am not sure how the create a new Property to bind this new command. (e.g.CloseCommand).
Basically I like to bind this command the my ViewModel.
How can I do this?
Thanks,
Manuel
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