Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
138 views
I am using the RadWindow as a dialog box for a complex form in a medical application. The RadWindow contains a RadTab control, and each tab has another part of the form. Additionally, in some areas, I need to display another RadWindow to get some details, then close that extra window and continue working with the original one. (I should also mention that this page auto-refreshes once a minute or so to keep the data on it current).

I don't want the dialog to show when the initial page is displayed, it needs to be launched when a button is clicked, It should then stay open until explicitly closed.

I am opening it using Javascript:

function showWizard() {
    var oWnd = $find("<%= RadWindow1.ClientID %>");
    oWnd.show();
}           

This works, but if anything at all causes a postback, the window goes away, and for some reason, I usually can't get it to come back without closing the browser and starting over again.

Using the "VisibleOnPageLoad" option works much better generally speaking, but like I said, I don't want it to always be open.

Do you have any sample code which is fairly bulletproof in regards to managing the show/hide state of the window(s)?
VisibleOnPageLoad
VisibleOnPageLoad

Marin Bratanov
Telerik team
 answered on 12 Apr 2011
1 answer
134 views
Hi,

How can I create a multi-row(2) menu.
I found /aspnet-ajax/menu/examples/functionality/multirow/defaultcs.aspx but this is no longer active.

I want 2 rows: First expands up, second expands down.

Please help.

BR,
Marc
Kate
Telerik team
 answered on 12 Apr 2011
1 answer
103 views
Hai,

How can we save the position the of a floating Raddock control. I want to get the Radcontrol placed on the position(X,Y cordinates on the screen ) which was last saved, when I open the same page again.

Thanks
Regeesh
Pero
Telerik team
 answered on 12 Apr 2011
1 answer
111 views
HI,

We are using Telerik RadGrid control with .NET 4.0 ASP.NET code. We are attaching dataview to RadGrid Control, but at runtime there is mismatch with header columns and actual table columns in display. 

This issue is coming with IE 7.0 and IE 8.0

Is this the known issue? How could we solve this problem?

Rapid help would be much appreciated :-)

Thanks,
Dev Team First American

Pavlina
Telerik team
 answered on 12 Apr 2011
1 answer
105 views
Hi,

When I try to set ControlObjectsVisibility property at design time, receive Specified cast is not valid exception. When I set it manually from coode behind  and run page it doesn't throw any exception but seems not working.

<telerik:RadAsyncUpload runat="server" ID="RadAsyncUpload1" HttpHandlerUrl="~/UploadHandler.ashx"
    MultipleFileSelection="Disabled" MaxFileInputsCount="1" OnClientFileUploaded="fileUploaded"
    EnableInlineProgress="False" Skin="Default" >
</telerik:RadAsyncUpload>

I am using version 2011.1.405.40
Helen
Telerik team
 answered on 12 Apr 2011
3 answers
287 views
Hi Team,

While Saving Rad Editor Content as a RTF the content Format was changing (ex: Center alignment wast not coming, Underline)

i was also checked with the Telerik site , there also format was not coming correctly.

I'm Saving the Rad Editor content as RTF into database. while Retrieving the RTF from Database and loding into Rad Editor on that time i'm getting the content with the Question Mark Symbols and alignment was not coming correctly.

Please give the solution as soon as possible.

Regards,
Harish
Dobromir
Telerik team
 answered on 12 Apr 2011
2 answers
292 views
Hey!

The list displays message text and has 2 buttons "+" and "-", so users vote if they like or dislike the message.

I tried 2 solutions but have problems with both.

1st solution is without needdatasource:

Here is the ListView:

<telerik:RadListView ID="rlvTweets" runat="server" Width="100%" DataKeyNames="Tweet_ID"
    AllowPaging="True" PageSize="5" ItemPlaceholderID="ObjectHolder"
    OnItemCommand="rlvTweets_ItemCommand"
    OnItemDataBound="rlvTweets_ItemDataBound" >
  <LayoutTemplate>
    <asp:Panel ID="ObjectHolder" runat="server" />
    <telerik:RadDataPager ID="rdpTweets" runat="server" PagedControlID="rlvTweets" PageSize="5" Visible='<%# rlvTweets.PageCount != 1%>' >
      <Fields>
        <telerik:RadDataPagerButtonField FieldType="Numeric" />
      </Fields>
    </telerik:RadDataPager>
  </LayoutTemplate>
  <ItemSeparatorTemplate>
    <div class="separator"></div>
  </ItemSeparatorTemplate>
  <ItemTemplate>
 
    <%--Image Avatar--%>
    <asp:HyperLink ID="hlAvatar" runat="server" ImageUrl='<%#Eval("trTwitterUser.Avatar")%>' />
    <%--Link Username--%>
    <asp:HyperLink ID="hlUsername" runat="server" Text='<%#Eval("trTwitterUser.Username")%>' />
    <%--Buttons follow/stop following--%>
    <asp:Button ID="btnFollow" runat="server" Text="<%$ Resources:Localization, Follow  %>" ToolTip="<%$ Resources:Localization, Follow  %>" CommandName="Follow" />
    <asp:Button ID="btnStopFollowing" runat="server" Text="<%$ Resources:Localization, StopFollowing  %>" ToolTip="<%$ Resources:Localization, StopFollowing  %>" CommandName="StopFollowing" />
    <br />
    <%--Text message--%>
    <%#Eval("Text")%>
    <br />
    <%--Rank and plus/minus buttons--%>
    <asp:Label ID="lblRank" runat="server" Text='<%#Eval("Rank")%>' />
    <asp:Button ID="btnPlus" runat="server" Text="+" CommandName="PlusVote" />
    <asp:Button ID="btnMinus" runat="server" Text="-" CommandName="MinusVote" />
    <br />
    <%--TweetRank--%>
    <asp:Label ID="lblTweetRank" runat="server" Text='<%#Eval("TweetRank")%>' />
    <br />
    <%--Klout icon and KloutScore--%>
    <asp:Image ID="imgKlout" imageUrl="~/Resources/Images/KloutScore.png" runat="server" />
    <%#Eval("trTwitterUser.KloutScore")%>
    <br />
    <%--Date--%>
    <%#Eval("Date")%>
 
  </ItemTemplate>
  <EmptyDataTemplate>
    <asp:Label ID="lblNoTweets" runat="server" Text="<%$ Resources:Localization, NoTweetsFound  %>" />
  </EmptyDataTemplate>
</telerik:RadListView>


I databind the list in page_load;

rlvTweets.DataSource = _db.trTweets.Where(tw => tw.Date > dt).OrderByDescending(t => t.Date);
rlvTweets.DataBind();

Everything works fine on the first page, the itemcommand fires, tweet is set properly... However if I use the pager the ItemCommand doesn't even fire.

protected void rlvTweets_ItemCommand(object sender, RadListViewCommandEventArgs e)
{
      RadListViewDataItem item = (RadListViewDataItem)e.ListViewItem;
      trTweet tweet = (trTweet)item.DataItem;
        if (e.CommandName == "PlusVote")
        {
             ....
        }
}


The second solution is with using the needdatasource:

ListIs the same except for needdatasource event, itemcommand is the same, the itemcommand fires everywhere now except that the item.DataItem is always null...

I removed the databinding from the page load and added it to the needdata source. I feel like I have to call the list's DataBind function somewhere, but I don't know here...

this is what i do in needdatasource:

protected void rlvTweets_NeedDataSource(object sender, RadListViewNeedDataSourceEventArgs e)
        {
            DateTime dt = DateTime.Now.AddDays(-30);
            rlvTweets.DataSource = _db.trTweets.Where(tw => tw.Date > dt).OrderByDescending(t => t.Date);
        }


Thanks for you help!

Sincerely, Jure


Princy
Top achievements
Rank 2
 answered on 12 Apr 2011
1 answer
55 views
Dear,


I have problem in Sheduler control which show the(do not work time means same color with to do work time color) in IE8
but work fine in the firebox and grome.

Please help me as soon as posible.

Thanks You,


Best Regards

Mutum Jiten Singh
Akhil Systems
Veronica
Telerik team
 answered on 12 Apr 2011
1 answer
183 views
We are evaluating the Q1 2011 Rad Controls for ASP.NET Ajax suite. In testing the Editor's ability to load RTF content, we loaded a test RTF that included an embedded image. The rendering in the editor of the document did not show the image. Looking at the HTML source of the rendered document shown that the image's URL was set to something that did not exist.

1. Did we not set up the RadEditor correctly on the website to render embedded images correctly?
2. Is this one of those limitations/problems with 3rd party RTF-to-XHTML library you are using?
Rumen
Telerik team
 answered on 12 Apr 2011
4 answers
153 views
Hy,

I noticed one little bug while using RadListBox.

When I disable RadListBoxItem on client side, using javascript function item.disable(), item gets disabled and turns into grey, that's ok.

But the problem is when I enable it using item.enable(), item gets enabled, but it stays grey, it doesn't turn back in black.

I'm using the default skin.

Thanks in advance!
Peter Filipov
Telerik team
 answered on 12 Apr 2011
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?