.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Kaviya Balasubramanian
Imran Ghani
Post New Web Links

ExcelWebRenderer Visible item issue

Posted By:      Posted Date: October 05, 2010    Points: 0   Category :SharePoint
 

Hi,

I have a user control that I use to add in one of my sharepoint pages. In that user control I dynamically add a ExcelWebRenderer part as 

            ewaWebPart.Visible = true;
            ewaWebPart.ToolbarStyle = ToolbarVisibilityStyle.None;
            ewaWebPart.ChromeType = System.Web.UI.WebControls.WebParts.PartChromeType.None;

           ewaWebPart1.WorkbookUri = WorkbookUri;

            ewaWebPart.VisibleItem = Constants.TABULAR_NAMED_ITEM; // setting the range name for visible item
            this.tdContent.Controls.Add(ewaWebPart);  // Adding to table cell

what this code is expected to do is to render the ewaWebPart only showing its visble item ie the mentioned range in the Visible item property but what is happening that some time it shows full workbook and does not show only the visible item (range selected), but after refreshing the page it works fine i.e. only range item is shown.

Please check what I am doing wrong.




View Complete Post


More Related Resource Links

ExcelWebRenderer Visible item issue

  

Hi,

I have a user control that I use to add in one of my sharepoint pages. In that user control I dynamically add a ExcelWebRenderer part as 

            ewaWebPart.Visible = true;
            ewaWebPart.ToolbarStyle = ToolbarVisibilityStyle.None;
            ewaWebPart.ChromeType = System.Web.UI.WebControls.WebParts.PartChromeType.None;

           ewaWebPart1.WorkbookUri = WorkbookUri;

            ewaWebPart.VisibleItem = Constants.TABULAR_NAMED_ITEM; // setting the range name for visible item
            this.tdContent.Controls.Add(ewaWebPart);  // Adding to table cell

what this code is expected to do is to render the ewaWebPart only showing its visble item ie the mentioned range in the Visible item property but what is happening that some time it shows full workbook and does not show only the visible item (range selected), but after refreshing the page it works fine ie only range item is shown.

Please check what I am doing wrong.

 

 


radiobutton list item make visible true or false in javascript

  
in my project i have used one radiobuttonlist according different user login , i want to make one of radiobuttonlist item visible true or false..   please help me to solve this issue.   thanks in advance.  

Issue with Combobox - On selecting Item the combobox border becomes red why?

  
Hi, I have a combobox. <ComboBox DisplayMemberPath="Name" Name="CB" IsEnabled="{Binding ElementName=RB, Path=IsChecked}"<br/> SelectedValue="{Binding Path=Folders, Mode=TwoWay, UpdateSourceTrigger= PropertyChanged}" /> It has Selected value binding with ObservableCollection as public ObservableCollection<T> _folders; public ObservableCollection<T> Folders { get { return _folders; } set{ _folders = value; }} Combobox's IsEnabled property has binding with a Radio button checked value. PS: I don't have any validation here. The problem I am facing is when I select an Itam from Combobox its border becomes red , I don't understand why this is happening.

Need help when selecting an item from a dropdown list it makes the 2nd dropdown visible

  
Does anyone know how to do this so when I select something the 1st dropdown and the 2nd one becomes visible and populates list from a Select statement. How do you code this in Sharepoint Developer on an aspx page?

SP Workflow issue -> "The item is currently locked for editing. Waiting for item to be checked in o

  

Hello,

I'm getting the above issue with my List Workflow.  I've created a workflow that assigns column data to a file when it is created.  This works some of the time; however, at random intervals the workflow will get stuck with "In Progress" status for the reason listed above.  The only way to clear this status is to delete the workflow and republish it.  This happens when copying a document via the UI, as well as when copying a document via UNC path.  

If I terminate the workflow for the stuck item, when I go back to run it manually, the workflow isn't even listed.  Looking at the Visio history for the item, it seems to be getting stuck at different methods within the workflow; sometimes it gets stuck at a logic method, other times at a data manipulation method.  And other times it runs through fine without any issues.  This is all happening with the same file used as a control, so it's not like I'm introducing variable triggers to the methods in this workflow.

Ideas?

-Russ


List Item is not visible to specific users in a webpart in my portal

  

Hi,

There is a webpart which is displaying the items from list.There is another webpart which also display same items as in the above webpart.

Issue: Now the issue I am facing that the list items are not visible to specific users even though it is visible to same users who are in the same group. But this issue I am facing in production environment but not in staging environment.

Your quick help will help us a lot.

Thanks


Goud

Issue with Announcement content type and adding a new item

  

Hello,

I have the following issue with the (Silverlight?) form to add a new item:If the screen has many fields so scroll bars appear (i.e. it's longer than the screen), you can move up and down. YET, if you press to attach a file, the scroll bars dissapear, so you can't see the rest of the form.

To reproduce: 

a) make an annoucement list

b) Add a choice field, add many choises and enable multiple values - in order to have a longer-than-the-screen input form.

c) Go to the list , press add-new-item and attach a file: After that, you won;t be able to see all the input form.

 


Christos

WPF Issue - Toast Window does not appear after hibernate even though visibility is Visible

  
Hi

I'm working on an app which can make and receive calls. When receiving calls the application displays a toast on the bottom right of the screen. This toast is just a new WPF Window. If the machine has a graphics card the toast will scroll up from underneath the screen. If it does not support graphics hardware the toast will just appear.

However I'm seeing on Windows 7 (and its also been reported on Vista and XP) that the first incoming call after a hibernate or standby (or occasionally after leaving the app idle for a few hours) does not produce a toast. Looking at my logs I can see that my logic is correct. The window is positioned correctly and its Visibility is Visible. But the user does not see anything. At this stage I'm thinking its a WPF problem. This happens on machines both with and without a graphics card.

If I make a second call directly after the first one the toast appears. The logs are exactly the same for both cases. It just appears that WPF does not render the toast for the first call. This is not fully reproducible but it happens often enough to be a major concern. Does anybody have any suggestions on what could be causing this problem? The method I'm using to show the window is newNotification.Show() where newNotification is a Window.
<

styled combobox item rendering issue while display over another control

  

i have combobox with a custom style bind to an enumeration. and below that there is a text box. when i select the combo box value the list doesn't disappear, 

 

the style to the combobox is as follows 

 

<Style TargetType="ComboBoxItem">

        <Setter Property="Background" Value="Transparent" />

        <Setter Property="HorizontalContentAlignment" Value="Left" />

        <Setter Property="Padding" Value="6,4" />

        <Setter Property="KeyboardNavigation.ControlTabNavigation" Value="Local" />

        <Setter Property="VerticalContentAlignment" Value="Top" />

        <Setter Property="Template">

            <Setter.Value>

                <ControlTemplate TargetType="ComboBoxItem">

                    <Grid Background="{TemplateBinding Background}">

&n

styled combobox item rendering issue while display over another control

  

i have combobox with a custom style bind to an enumeration. and below that there is a text box. when i select the combo box value the list doesn't disappear, 

 

the style to the combobox is as follows 

 

<Style TargetType="ComboBoxItem">

        <Setter Property="Background" Value="Transparent" />

        <Setter Property="HorizontalContentAlignment" Value="Left" />

        <Setter Property="Padding" Value="6,4" />

        <Setter Property="KeyboardNavigation.ControlTabNavigation" Value="Local" />

        <Setter Property="VerticalContentAlignment" Value="Top" />

        <Setter Property="Template">

            <Setter.Value>

                <ControlTemplate TargetType="ComboBoxItem">

                    <Grid Background="{TemplateBinding Background}">

&n

styled combobox item rendering issue while display over another control

  

i have combobox with a custom style bind to an enumeration. and below that there is a text box. when i select the combo box value the list doesn't disappear, 

 

the style to the combobox is as follows 

 

<Style TargetType="ComboBoxItem">

        <Setter Property="Background" Value="Transparent" />

        <Setter Property="HorizontalContentAlignment" Value="Left" />

        <Setter Property="Padding" Value="6,4" />

        <Setter Property="KeyboardNavigation.ControlTabNavigation" Value="Local" />

        <Setter Property="VerticalContentAlignment" Value="Top" />

        <Setter Property="Template">

            <Setter.Value>

                <ControlTemplate TargetType="ComboBoxItem">

                    <Grid Background="{TemplateBinding Background}">

&n

styled combobox item rendering issue while display over another control

  

i have combobox with a custom style bind to an enumeration. and below that there is a text box. when i select the combo box value the list doesn't disappear, 

 

the style to the combobox is as follows 

 

<Style TargetType="ComboBoxItem">

        <Setter Property="Background" Value="Transparent" />

        <Setter Property="HorizontalContentAlignment" Value="Left" />

        <Setter Property="Padding" Value="6,4" />

        <Setter Property="KeyboardNavigation.ControlTabNavigation" Value="Local" />

        <Setter Property="VerticalContentAlignment" Value="Top" />

        <Setter Property="Template">

            <Setter.Value>

                <ControlTemplate TargetType="ComboBoxItem">

                    <Grid Background="{TemplateBinding Background}">

&n

Issue with Updating an Item using WebServices

  

Hi,

We have a method which adds an item to the DocLib using the CopyIntoItems method of Copy Webservice. Now I heard that this copyIntoItems has a limitation of updating lookup field values. So, What we now do is, we add an item, update all the columns such as single line text, choice and then we use the Lists web service’s updateListitem method to update the lookup fields.

We are facing an issue in updating this lookup columns. The web service is returning an error code 0x81020014 which gives the following error message.

One or more field types are not installed properly.
Go to the list settings page to delete these fields.

 

The batch command I am using to do this is :

 

"<Batch OnError='Continue' ListVersion='0' PreCalc='TRUE'><Method ID='1' Cmd='Update'><Field Name='ID'>" + Itemid + "</Field>" + "<Field Name='FileRef'>" &#

DataGrid/DataTable: Deleting Added Item Issue

  

Hello.

I’ve a DataGrid bound to a DataTable, and I’ve a problem deleting rows programmatically.

If I add a new row (using UI) and I mark the row with an error (using SetColumnError), and press the Delete key, the new row is deleted, everything is ok.

If I delete the new row (with errors) programmatically, the row is deleted, but no rows appear in the grid. There isn’t way to add a new row anymore, the grid has no items.

If I delete the new row (programmatically) and it hasn’t errors everything is ok. The row is deleted, and a new empty row appears in the grid. I can add more rows correctly.

IsapiModule Error 500 Issue

  

I am about exhausted trying to figure out this error:

HTTP Error 500.0 - Internal Server Error

Description: The page cannot be displayed because an internal server error has occurred.

Error Code: 0x8007007b

Notification: ExecuteRequestHandler

Module: IsapiModule

Requested URL: http://localhost:80/ReportServer

Physical Path: c:\Program Files\Microsoft SQL Server\MSSQL.2\Reporting Services\ReportServer

When I enable Failed Request Tracing Rules and view the log output I am supposing that the actual problem is in the 2nd call where there are 2 backslashes before the actual filename in the specified path:

ISAPI_START

CALL_ISAPI_EXTENSION DllName="C:\Windows\Microsoft.NET\Framework\v2.0.50727\\aspnet_isapi.dll"

 

MVC2 issue - Stuck. Trying to create a cms with nested partials

  

I am currently trying to display multiple items on a single page. I am not sure as to how to tackle this. What I have is a database table that has all the page data in. I have this run as a PagesController and this works fine. However what I would like to do is, if say the Products page is selected via the menu, I want to pull back not only the Products page html but also get all the products, and even be able to pull them through via category. I was trying to use a partial view, but I can't get it to work. The same would be for other pages, having partial views to display the other content, ie if Gallery is selected, the page html for Gallery shows and it then can push to a partial view that pulls all the gallery images from the gallery db table and so on. 

Maybe I am tackling this the wrong way. I have the pages stored in the db to allow for a CMS system I have setup. Maybe I need to use models for all the other items(Products, Gallery, Videos and such) and use the partial for the page html?

Any help would be greatly appreciated as I am confused.




Missing 'new item templates'

  

 Hi all,

          I am a 'newbie' to VWD and I am slowly working through the Basic Walkthrough Help files, and learning plenty along the way.

However, when I tried to create a new database in the LINQ control walkthrough I found that the option to create a new database is missing, and further investigation has found that many other new item templates are missing.

I am using a brand new machine with Windows 7 Ultimate and have enabled IIS and .NET from Control Panel-Programs-Turn Windows Features On-Off. I used the WPI to install all basic elements eg. IIS Components, SQL Server Express.

The only 'new item templates' I have when I right-click the App_Data Folder and choose 'new item' are:-

ADO.NET Data Service

AJAX Enabled WCF Service

Dynamic Data Field

SQL Server Database

Text File

XML File

Does anyone know where I have gone wrong.

 

Michael J. Hill


Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend