Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
223 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
229 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
24 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
150 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
128 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
3 answers
62 views
Hi,

I am looking for a telerik asp.net ajax control which works like a .net drop-down with multiple selection ability. I thought of ComboBox but I dont if it supports multiple selection since I didn't see that feature in demo and documentation.

Can you please tell me which ajax control I should use?

Thanks!
Shinu
Top achievements
Rank 2
 answered on 12 Apr 2011
1 answer
105 views
Dear,
I want to set the view of days(two or three days in a week) not all days when i click week in Sheduler control. But presently it show all the days of week.


Please help me as soon as possible.
Thanks You

Best Regards

Mutum Jiten Singh

Akhil Systems
Veronica
Telerik team
 answered on 12 Apr 2011
1 answer
100 views
Hello ,

I have used telerik scheduler in the project by using telerik trial version for asp.net ajax control. Now I have deployed the license version. I have copied the dlls in the bin folder of the project and then added the reference accordingly. Now I want to ask that do we need to mention the license in the web.config? If so then please tell me how to do this?

Thanks,
roshani

Veronica
Telerik team
 answered on 12 Apr 2011
1 answer
107 views
Hi,

I need of the RowHeader so that I can place an exclamation or error icon in there to indicate any error or validation messages which may result from my loading of the grid's data source. I come from a windows forms world. Back there I could fulfill my requirement by setting the RowHeader.Visible = True on the GridView and it would show up. 

I notice there is a property: RowIndicatorColumn under MasterTableView. But when I try to set it's visiblility to True, it refuses to change; continues to remain False.

Also, if you can guide on how to display error icons in individual cells as well that would be great. Basically, we're trying to mimic the way error messages are displayed in SQL Server Mgmt. Studio. So if a user entered an invalid text or if the code failed to load a particulr cell's information corectly, then I'd like to display an error icon in there and then set my message in the tooltip property of the icon.

I am new to RadGrid and would appreciate any help that you can extend in this regard.

Thanks.
Rahul

Princy
Top achievements
Rank 2
 answered on 12 Apr 2011
3 answers
124 views
Hi

I am working on a new project using Telerik ASP.NET AJAX controls and one of the requirements is to be able to dispaly columns in a group and be able to collapse/expand the group using a +/- button for example. I already created a group inside a table using GridTemplateColumn type but was wondering if there is a better way to acheave this with collapse/expand ability while not losing the sort and resize ability.

I apprecaite your help in advance
Ron Farko
Tsvetoslav
Telerik team
 answered on 12 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?