Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
112 views
Hi

I have a user control which has TabStrip control. The Tabstrip control has 2 tabs ,each of the tab has a PageView which is again a user control.Say, when I click on Tab1 ,the PageView1(usercontrol) has 3 input fields like FullName, CompanyName,PhoneNo.
When I click on Tab2,PageView2(user control) has 2 other input fields with a Submit button.

How do I persist the data across tabs and update the database on click of submit button?
Also I want each of the PageViews to be validated before I click Submit button. How do I do this?

Thanks,
Chand
Veronica
Telerik team
 answered on 12 Apr 2011
1 answer
84 views
Hi,

I have set the edit mode for each of the Editable Grid items in the pre-rendere event of the the page life cycle and this allow for each and every row in the grid to start in edit mode which is exactly what i want. I have set the in-line edit mode against the master table view which is what i want.

However, each row seems to have a border around item which is not what i want. I dont know how to stop this. Can anyone help?
Shinu
Top achievements
Rank 2
 answered on 12 Apr 2011
2 answers
123 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
130 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
93 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
108 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
102 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
274 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
280 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
49 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?