Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
142 views
I'm a bit unclear on web services and data providers.

I'm wondering why WCF and web service functionality exist if they require a data provider.

If I use a data provider does this not prevent postbacks? Would an insert on a RadScheduler with a provider for example cause a postback and then fire the providers insert method? If it doesn't stop postbacks then I can understand the need to use WCF or web services as a facade/proxy to prevent postbacks.
T. Tsonev
Telerik team
 answered on 16 Mar 2009
3 answers
161 views
Hi,

I've enabled "AllowKeyboardNavigation" but it doesn't seem to work in Fire Fox?? Also, is there any way of finding out which row has been selected by the keyboard?

Thanks,

Antony
Nikolay Rusev
Telerik team
 answered on 16 Mar 2009
4 answers
147 views
Hi,
  I am using CustomizingRadUploadUI.
I want change position of the remove button before file input box.
also I want submit button net to the add button. Please tell me how can i achieve this.
below is my code:

 

<table width="100%" cellpadding="0" border="1" cellspacing="0">

 

 

<tr><td><rad:RadUpload SkinsPath="~/RadControls/Upload/Skins" Skin="Vista_New" ID="Radupload1"

 

 

runat="server" InitialFileInputsCount="1" />

 

 

<asp:ImageButton ImageAlign="Right" ID="ibtnSubmit" runat="server" ImageUrl="~/Images/btn_Submit.gif"

 

 

AlternateText="Click here to submit." OnClick="ibtnSubmit_Click"></asp:ImageButton>

 

 

<rad:RadProgressArea ID="RadprogressArea1" runat="server" DisplayCancelButton="True">

 

 

</rad:RadProgressArea>

 

 

</td><td>

 

 

<div style="float: right; margin-right: 9px; height: 132px; width: 250px;" class="module">

 

 

<asp:Label ID="labelNoResults" runat="server" Visible="True">No uploaded files yet</asp:Label>

 

 

<asp:Repeater ID="reportResults" runat="server" Visible="False">

 

 

<HeaderTemplate>

 

Uploaded files:

<br />

 

 

</HeaderTemplate>

 

 

<ItemTemplate>

 

'<%

#DataBinder.Eval(Container.DataItem, "FileName")%>' ( '<%#DataBinder.Eval(Container.DataItem, "ContentLength").ToString() + " bytes"%>'

 

)

<br />

 

 

</ItemTemplate></asp:Repeater>

 

 

</div></td></tr></table>

I have tried by placing button in following way but it is not working:

 

 

var x=document.getElementById('Radupload1ButtonContainer').rows(0);

 

 

var y=x.insertCell(1);

 

 

//var z=x.insertCell(1);

 

 

 

 

var input = document.createElement("ImageButton");

 

input.type =

"submit";

 

input.className =

"ruButton";

 

input.value =

"Submit";

 

input.id = input.name =

"submit";

 

 

 

//y.innerHTML=input;

 

 

 

y.appendChild(input);
Please reply.

Genady Sergeev
Telerik team
 answered on 16 Mar 2009
2 answers
218 views
Hi,

yesterday I updated to Q109 - and the first tests said - WoW - much better look.
Some bugs (problems) are gone - looks fine.

So overall I would say -- GREAT JOB FOLKS :)

Now a few word about the things I find not so good.
There seems to be a bug with RadNumericTextBox - I made a thread about this.
--But thats an other story.

Design - Skin Changes.
It would have been really a good idea if you have kept the old defaults.
Not as default - but at least as "_OldDefaultSkin".
The skins have not been marked as obsolete - so I had expected to find them again after the update.
My scenario - RadMenu - since this is integrated in my frame (it integrates in a border) I had to redesign my master page frame.
Not that job - but keeping the old styles available (at least those not marked as obsolete) would have given me the choice to modify my design later (thanks god my customer is nice - so I could change it without permission).

Designer behavior.
I already ran into this with the last version - but at this time it was not destructive - now it is!
An example - I have this grid column
<telerik:GridBoundColumn DataField="ItemPriceEUR" ReadOnly="true" DataType="System.Double" HeaderText="ItemPriceEUR" SortExpression="ItemPriceEUR" UniqueName="ItemPriceEUR" HeaderStyle-Width="100px">  
</telerik:GridBoundColumn> 
 
This is what the designer made - plus my change for the header width.
After changing the skin (via context menu in design mode) I get this:
<telerik:GridBoundColumn DataField="ItemPriceEUR" ReadOnly="true" DataType="System.Double" HeaderText="ItemPriceEUR" SortExpression="ItemPriceEUR" UniqueName="ItemPriceEUR" HeaderStyle-Width="100px">  
    <HeaderStyle Width="100px"></HeaderStyle> 
</telerik:GridBoundColumn> 
Not that big thing - but I don't like when designer mess up my markup.
Yesterday I had to change a lot of Skins (due to the changes).
On DataGrid did after the change no longer display the delete icon.
It was something like this
<telerik:GridClientDeleteColumn ButtonType="ImageButton" ConfirmText="Are you sure?\nSind sie sicher?" UniqueName="DeleteCol" ConfirmDialogType="RadWindow" ConfirmTitle="Löschen?" HeaderStyle-Width="90px" > 
 
I searched around and finally I found an image link like mvres://.......
First thought - OK - a problem with the generator inside grid.
So I set up a fast demo site - but there it works.
I did a lot of tests and check - disabled things like URL rewrite and so on.
Last not least I decided to place my own image path in the column.
And what did I see? There was already one - pointing to that mvres:// URI
The designer placed it there - BUT I could not reproduce this later.

RadAjaxLoadingPanel - PLEASE RETHINK THIS!!!
By changing my Skins I found that the currently used Loading.gif does not fit the design - so I decided to change it.
I remembered that there was a list of the images in your samples - so I go the (what I do often - real a good place to find solutions!!)
And I found that you changed the kind the things work.
When I read "Loading Panel overview" I find "Rad... comes with a rich set of...." :)
Anyhow - here I found a good looking sample http://demos.telerik.com/aspnet-ajax/ajax/examples/loadingpanel/loadingimages/defaultcs.aspx
OK - the "rich set" has changed to a spinning thing colored depending on the Skin.
Anyhow - I changed it on one page with a grid - and what do I get - a "grayed" Grid with a spinning thing in it.
I know that this thing places itself automatically in the toolbar of the grid if I enable it - BUT with larger grids this thing is out of view.
So I kept it as it was.
While your sample looks good - my grid is the pure frustration for the user.

Details: your sample simulates a long time server processing.
My Grid (changing to edit) has a relation of 1 (or less) to 3 seconds server - and 1 to 5 seconds client rendering.
Of course GIF animation has a very low priority in IE - so if the browser hast to render content it will stop spinning.
So how does this look?
The "disabled look" covers the grid.
Assume we have the "fast server situation". And the "edit form" contains 3 Radeditor.
A spinning thing comes up and makes a spin for about 10 to 50 degrees - a "quarter clock" or something like this.
The the spin stops - it looks as if the interface was frozen. 5 Seconds no response - than the panel disappears.

I'm glad that I still can use the old style because this gives much better experience.
First - it tells "Loading please wait" (to bad that it can't be localized as a text).
And YES the spin stops here also while rendering - but there is still a plate with the text "Please...." and most important - the Grid does not look "dead" (disabled).

To point out my problems:
a.) No chance to reduce the size of this thing
b.) No text in it
c.) If I have (for some reasons) a toolbar on the grid the panel moves there -- and becomes (in scrolling situations) invisible
d.) The "rich set of..." is gone - instead we have a number of different colored "wheels" including a predefined background.
e.) Transparency works on the whole thing - so I can't even say - OK let the grid look useable while loading
--because than the wheel is almost invisible
f.) I can't place my custom images (Bitte warten instead of Pleas wait for an example)

Please rethink this thing an keep the possibility to place custom images like it is now.
I talk about the sentence: 

"Please note that the loading images which where previously embedded in the Telerik.Web.UI assembly would not be available since Q2 2009."

Conlcusion:
Great job - really a big step forward.
The new look is also a great thing.
Except the loading panel (and some errors) I'm really happy with it.
I know that on such a big project errors can occur - and I was surprised that I had almost no problems with the update.

Regards

Manfred

Dimo
Telerik team
 answered on 16 Mar 2009
2 answers
198 views
Apologies if this potential bug has already been isolated.

In Q1 2009 (version 2009.1 311 - March 11, 2009)...
RadToolTip Show() throughs a javascript error if Position is not set or set to values other than "Center".
The javascript error is 'window' is null or not an object.
The error occurs in Internet Explorer (IE) but not FireFox or Chrome. 
I have not tested other browsers or all possible Position values.

The following simplified code demonstrates the behavior:

The following works (Position value is set)

<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <div>
            <telerik:RadToolTip ID="RadToolTip1" runat="server" HideEvent="ManualClose" Position="Center">
                <br /><hr />Tool Tip Message
            </telerik:RadToolTip>
        <asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" />
        </div>    
    </form>
</body>

The following fails (Position value is not set)

<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <div>
            <telerik:RadToolTip ID="RadToolTip1" runat="server" HideEvent="ManualClose">
                <br /><hr />Tool Tip Message
            </telerik:RadToolTip>
        <asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" />
        </div>    
    </form>
</body>

CodeBehind
using System;
public partial class TestToolTip : System.Web.UI.Page
{

    protected void Page_Load(object sender, EventArgs e)
    {
    }

    protected void Button1_Click(object sender, EventArgs e)
    {
                    RadToolTip1.Show();
    }
}

Thank you for your prompt attention to this matter.



ATX
Top achievements
Rank 1
 answered on 16 Mar 2009
1 answer
121 views
Hi, i was wondering when you double click on a item in the scheduler then edit it and click ok. Is there a way to capture the ok click event, what i am trying to do is when a user clicks on the ok button to end the editing event i want to update the database with the new data he/she has entered. Is there a way to do this?
Veselin Vasilev
Telerik team
 answered on 16 Mar 2009
3 answers
246 views
Hello,
I am trying to use a radupload with radprogressmanager and radprogressarea in a radtabstrip control which have also radajaxpanel. I read and tried lots of topic in this subject but I couldn't find any solution to my problems. Let me explain. 
Yesterday, my uploads  were working, but I wasn't able to see progressarea. But today radupload have nor uploadedfiles neither invalidfiles. Yesterday my code was in an other radajaxpanel which have  some codes that I copied from other posts on ClientEvents-OnRequestStart event. And today my codes are below.
 <asp:Panel runat="server" ID="pnlAttachments" Visible="false">  
                                <telerik:RadUpload ID="RadUpload1" runat="server" InitialFileInputsCount="1" MaxFileInputsCount="5" 
                                    AllowedFileExtensions=".pdf,.xls,.doc,.docx,.xlsx" ControlObjectsVisibility="RemoveButtons,AddButton">  
                                </telerik:RadUpload> 
                                <telerik:RadProgressArea ID="progressArea1" runat="server" /> 
                                <asp:Button ID="btnAttachmentCancel" runat="server" Text="Cancel" Style="margin-top: 6px" /> 
                                <asp:Button ID="buttonSubmit" runat="server" Text="Submit" Style="margin-top: 6px" /> 
                            </asp:Panel> 
And I just found another javascript function that I use yesterday. I hope it will help you to understand what is wrong with my code. Codes are below:
   function conditionalPostback(sender, args)  
            {  
                if (args.EventTarget == "<%= ButtonSubmit.UniqueID %>")  
                {  
                    args.EnableAjax = false;  
                }  
            } 

I guess I am  a little confused after reading so much post and everytime found another possible errors.
I would appreciate it a lot, if you could help me to work that uploads.
Kind regards,
Aytaç Utku TOPAL
Genady Sergeev
Telerik team
 answered on 16 Mar 2009
1 answer
75 views

Is it possible to change the focus of a page to the top pager on a grid, or a textbox just above the grid, client side prior to firing the server events when using the bottom pager to switch pages?


I can use something like this on the server side,

 

ScriptManager.

SetFocus(focusOnControl);

to set the focus to the top of my page, but the page actually jumps about a third of the way up the page and then goes the rest of the way to the top of the page to set the focus.  I want the focus to be set in one step, without the delay, is that possible? 

 

 

Thank you

Iana Tsolova
Telerik team
 answered on 16 Mar 2009
3 answers
145 views
I want to sort my datagrid having an objectdatasource with a typed List output. I don`t have database ordering and i manage two databases (sql server an oracle)
I can´t modify this because is an old application and there are too many grids and procedures. It is posible?
Thanks in advance
        martín
martin
Top achievements
Rank 1
 answered on 16 Mar 2009
3 answers
339 views
Hi all,
  i have a page base call a windows page like "details.aspx"
In this page datails i have a grid with more records, each record has one button for select row.

when i click on select button i want return a value of this record in the page base.

how i can make it ?

tnk's

L.
Luigi
Top achievements
Rank 1
 answered on 16 Mar 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?