Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
111 views
Hi,

I'm having a problem putting the RadMenu control into SharePoint 2010 because of its overlay behaviour. I'm looking to replace SharePoint's OOB navigation with the RadMenu, but it's not playing nicely with SharePoint's Site Actions menu. I've set the EnableOverlay property to false, however the overlay is still in effect if I mouseover any of the RadMenu's items.

I've attached some screenshots to demonstrate the problem. One shows all controls inactive (just for reference), one shows the Site Actions menu overlaying on top of the RadMenu control (this is how I want it to behave, hence setting EnableOverlay to false), then another showing the RadMenu in an active state overlaying on top of the Site Actions menu, which isn't the look I'm after.

Anybody have any tips for having the RadMenu always sit below the Site Actions menu? I'd also thought of trying something neat like if the RadMenu becomes active while the Site Actions menu is open, it closes the Site Actions menu, but I don't really have enough time on this project to delve into SharePoint's javascript actions.

Cheers
Helen
Telerik team
 answered on 02 May 2011
4 answers
130 views
I'm not sure if this has been asked before, but is it at all possible to determine a file's path from being dragged and dropped from the local user's PC onto the web browser, insert that into the upload field, and then submit for upload automatically? Even if the drag and drop portion isn't possible, could a file be programmatically uploaded (via Javascript or otherwise) given a known path, such that the user would not need to select it each time they wanted to upload it. Say I just wanted to remember the last 5 uploaded files and have them prepoulated for upload.

P.S. Can the Telerik SilverLight Upload Control be of use for this scenerio?
Genady Sergeev
Telerik team
 answered on 02 May 2011
1 answer
305 views
Hi,
Maybe someone out there could help me out here.

I have a Page that binds data to a grid that then (depending on the data within that row) adds a usercontrol to a cell within that row.  The data is bound only once to the grid and I have placed the logic to add the usercontrols to the ItemCreated event for the grid (so that everytime the grid causes a Postback the usercontrols are recreated).  Now there is a need for functionality to allow the user to add a new instance of the user control (of the same type) to the cell.

I have tried the following:

  1. I have used the serverclick event of a button to add the new control to the grid - however, as the control is added after LoadViewState any user entered data to the control is not maintained by Viewstate.  At least on the first passthrough of a Page lifecycle the data is not maintained however, if the Item created event knows that an extra user control is required for a given row then any subsequent postbacks would allow the data entered to be mainteained by Viewstate  Ie.
            -- On first load --
            PAGELOAD (Bind grid)
                -> ONDATABOUND
                -> ONITEMCREATED (adds user controls to specific cell in RadGrid)
            -- On server click to add new control (Causing Postback) --
            ONITEMCREATED (adds user controls to specific cell in RadGrid)
                -> PAGELOAD (Grid not bound)
                -> BUTTONCLICK EVENT (add new usercontrol to correct row)
                (Data entered to added control)
            -- On Second server click to add new control (Causing Postback) --
            ONITEMCREATED (adds user controls to specific cell in RadGrid adding the extra User control for the effected row)
                -> PAGELOAD (Grid not bound)
                (Data entered on added control not set)
                -> BUTTONCLICK EVENT (add new usercontrol to correct row)
                (Data entered to the first added control)
                (Data entered into the newly added control)
            -- On Third server click to add new control (Causing Postback) --
            ONITEMCREATED (adds user controls to specific cell in RadGrid adding the extra 2 User control for the effected rows)
                -> PAGELOAD (Grid not bound)
                (Data entered on first control control set - data entered into second not set)
                -> BUTTONCLICK EVENT (add new usercontrol to correct row)

    I have tried using a variety of different methods to force a manual postback following the Buttonclick event to ensure a new 'full' page lifecycle occurs (after the serverclick event) so that Viewstate saves the user input but this results in a very messy clientside and serverside code...
  2. I added a clientside onclick event to the serverclick button that sets a hidden textbox with data that could be used by the ITEMCREATED event to build the correct usercontrols in the grid.  However, the hidden textbox is always empty when the Itemcreated event is fired as the viewstate has not been loaded at that time following the postback.  I could not think of another way to pass the data to allow it to be available to the Itemcreated method (other than the use of Cookies which would be set by a Javascript function kicked off by the onclick event from the serverclick button... and then this could be consumed by the ItemCreated method)
  3. The final option which does work though performance is poor.. is to Response.Redirect to the page following the button serverclick event... I save required data within the database but the Itemcreated method builds and adds the usercontrols at the right time...

Are there any other ways that people out there could think of to get this to work... Biggest problem is that the ItemCreated event gets fired before PageLoad on Postback.  I think I will proceed with the Cookie method as it allows for performance but there would be the problem that people with Cookies disabled would not be able to use the system... well they could use it...  but the Viewstate not storing entered userdata on dynamically created usercontrols on first appearance would still rear it's ugly head...

Any smart people out there with any other ideas???

Iana Tsolova
Telerik team
 answered on 02 May 2011
1 answer
71 views
Hi,

I have created radfilter with custom dropdowneditor.When I submit the page it passes the correct value for the filter expression.If I click the "Browser back" button,the filter is loading with the selected value in the dropdown.However, if I tried to add another filter ao just simply submit the page again the previously selected value is passing as empty string.
This happens only for the last filter row,which means if I have two filter rows and the lastet value only set as empty.
Please help

Warn.
Tsvetina
Telerik team
 answered on 02 May 2011
3 answers
69 views
Hi -

Im new to Telrik and have downloaded a trial.

Using ASP.NET AJAX, playing with the RadMenu bound to a SQL datasource. This works nicely.

But then, is there any other control that would be suitable to create a Admin System for the menu, so that webmaster can add/remove root menu items, sub level menu items and so on from a protected page.
Any examples/ videos on how to create a menu Admin System? Please advice.

Kind r

Bjørn.
Veronica
Telerik team
 answered on 02 May 2011
1 answer
95 views
I cannot seem to coax RadEditor into adding custom styles to the ApplyClass dropdown.  [See attached image]

Here is what I'm using for RadEditor:

<telerik:RadEditor ID="RadEditor1" runat="server" Skin="Telerik">
    <CssFiles>
        <telerik:EditorCssFile Value="~/Styles/editor.css" />
    </CssFiles>
    <CssClasses>
        <telerik:EditorCssClass Name="Sample" Value=".sample" />
    </CssClasses>
    <Tools>
        <telerik:EditorToolGroup Tag="Formatting">
            <telerik:EditorTool Name="Bold" />
            <telerik:EditorTool Name="Italic" />
        </telerik:EditorToolGroup>
        <telerik:EditorToolGroup>
            <telerik:EditorDropDown Name="FormatBlock">
            </telerik:EditorDropDown>
        </telerik:EditorToolGroup>
        <telerik:EditorToolGroup>
            <telerik:EditorDropDown Name="ApplyClass">
            </telerik:EditorDropDown>
        </telerik:EditorToolGroup>
        <telerik:EditorToolGroup>
            <telerik:EditorTool Name="InsertUnorderedList" />
            <telerik:EditorTool Name="InsertOrderedList" />
            <telerik:EditorSeparator />
            <telerik:EditorTool Name="Outdent" />
            <telerik:EditorTool Name="Indent" />
        </telerik:EditorToolGroup>
        <telerik:EditorToolGroup Tag="MainToolbar">
            <telerik:EditorSplitButton Name="Undo">
            </telerik:EditorSplitButton>
            <telerik:EditorSplitButton Name="Redo">
            </telerik:EditorSplitButton>
            <telerik:EditorSeparator />
            <telerik:EditorTool Name="Cut" />
            <telerik:EditorTool Name="Copy" />
            <telerik:EditorTool Name="Paste" ShortCut="CTRL+V" />
        </telerik:EditorToolGroup>
    </Tools>
    <Content></Content>
</telerik:RadEditor>

And here is the referenced Editor.css file (shown above):

body  
{
    background: #ffffff;
}
.sample
{
    color: Red;
}

Does anyone see why this won't work?  

Gabe
=================
Rumen
Telerik team
 answered on 02 May 2011
1 answer
74 views
I have an asp:button in ma webpage.... but while adding formdecorator, the button is disappearing...but when i checked the source code from the browser i can see thatt the button is there ....but the button is not displaying(both in IE and firefox)... what the reason for this ?...

plss help me......
Bozhidar
Telerik team
 answered on 02 May 2011
3 answers
77 views
When using the scheduler within visual studio I have no problems at all. When I publish the project to the webserver the vertical resource headers don't expand. After some investigation it seems the style sheets are different. Please see screen shots. Any idea how to fix this? I've tried to incorporate some inline style, but without much luck.

Hmm, this seems to be an IE9 issue.
Veronica
Telerik team
 answered on 02 May 2011
2 answers
90 views
Hi Telerik Team,

I don´t know what´s happening. I go to next page in RadGrid and in aleatory way the error message appears (please, see attached image).
I investigated my code line-by-line and I don´t found any problem related with this.
Please, what can I search in my code?

Thanks, best.

Daniel
Daniel Aquere
Top achievements
Rank 2
 answered on 02 May 2011
6 answers
116 views
hello,
I have a grid which has a number of columns,
one of the columns is combobox,
I am getting Data from DB from 2 Tables:

1. a table that populates the combobox - display, code.
2. a table that populates the grid - fields+display.

my problem is that I Indeed get the comboboxes full, but the selected items are always blank .

i tried to change it to label instead of combobox and then i got it right,
but I want it to be combobox.

P. S. I want the combobox to be always avalable to change, without editmode.
Yoni
Top achievements
Rank 1
 answered on 01 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?