Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
63 views
Hi

I have here the following problem, wonder if it is a known issue:

Have a page with RadTabStrip, tabs generated by TabTemplates with DataSource provided. Tab Strip is set to be shorter than required to display all tabs ==> thus scrolling is there. Also there is function set for OnClientLoaded event.
Under normal circumstances:
 1) Tabs are loaded,
 2) tab strip scrollbar is displayed,
 3) function for OnClientLoaded event fires as required.

Now - I have added a RadButton with Text and ImageURL properties set as well as OnClientClicked pointing to existing function.
When I run page now, I see that:
 1) Tabs are loaded,
 2) tab strip scrollbar is NOT displayed, and tabs are NOT scrollable
 3) function for OnClientLoaded event does NOT fire
 4) RadButton is shown

are these two controls are incompatible or I am missing something?
I can set up some small sample demo if needed for investigation

Thanks,
Dmitry
Cori
Top achievements
Rank 2
 answered on 06 Jan 2011
1 answer
89 views
i want to find the textbox..?
aspx page
<EditItemTemplate>
                                        <asp:TextBox ID="txtState" TabIndex="1" Enabled="true" runat="server" Text='<%#Eval("MA")%>'></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="reqFieldValGameState" runat="server" ErrorMessage="RequiredFieldValidator"
                                            ControlToValidate="txtState" Text="Please enter Game state."></asp:RequiredFieldValidator>
                                         <asp:CustomValidator ID="custmValState" runat="server" ControlToValidate ="txtState" OnServerValidate ="custmValState_ServerValidate"
                                        ErrorMessage="Invalid State."></asp:CustomValidator>
                                    </EditItemTemplate>

code behind
  protected void custmValState_ServerValidate(object sender, ServerValidateEventArgs e)
        {
            
            TextBox txtState = (TextBox)grdGameInfo.FindControl("txtState");
            string sGameState = txtState.Text;

            switch (sGameState.ToUpper())
            {
                case "MA":
                    e.IsValid = true;
                    break;
                case "DA":
                    e.IsValid = true;
                    break;
                default:
                    {
                        e.IsValid = false;
                        return;
                    }
            }
        }

How to find the textbox in edittemplate of grid . How to find the textbox ..above event is called OnServerValidate ="custmValState_ServerValidate"

Help Me urgent . how to find textbox  inside the "custmValState_ServerValidate"  function
Shinu
Top achievements
Rank 2
 answered on 06 Jan 2011
1 answer
209 views
How do I set the contenturl in this function?
I thought it would have been: pageView.contenturl = "blah", but this does not compile.

Private Sub AddTab(ByVal tabName As String)
        Dim tab As RadTab = New RadTab
        tab.Text = tabName
        radTabStrip.Tabs.Add(tab)
  
        Dim pageView As RadPageView = New RadPageView
        pageView.ID = tabName
        'pageView.
        RadMultiPage.PageViews.Add(pageView)
  
        radTabStrip.SelectedIndex = tab.Index
        radTabStrip.DataBind()
    End Sub
Shinu
Top achievements
Rank 2
 answered on 06 Jan 2011
1 answer
110 views
I am trying to use the ASP.NET AJAX File Explorer control.  The control loads fine initially, with the correct folders etc but when ever I click a folder to open, the waiting icon appears and then it hangs and the grid doesn't refresh.

I keep getting a Javascript error Sys.WebForms.PageRequestManagerParserErrorException 

I have pretty much copied the markup from the Live Demos page.  I am using the Q2 2009 ( I am unable to upgrade) controls with ASP.NET MVC 2 using Visual Studio 2010.

Can someone help me at all?

Thanks

Barry

Dobromir
Telerik team
 answered on 06 Jan 2011
2 answers
118 views
Hi,

 I am using RadCalendar in my app. While click on the particular date opening the RadWindow. In that RadWindow i am entering three values, After closing that window those entered values are displaying on the particular date.

Now in that main page RadCalendar Page : I have three textboxes...In that after closing that RadWindow. need to display the displayed values on the date....

ex: on the date 3 : has V=1, S=1, O=1 and date 7: has V=2 , S=1, O=2.

 Need to display those values and accumulate in to textboxes in the main pages
like:
  Vacation : 3
  Sick :2
 Other:3

Tell me how to do?
Maria Ilieva
Telerik team
 answered on 06 Jan 2011
10 answers
468 views
Hello,

I have a problem with the tooltip positioning with some elements on my page.  I am using the TooltipManager and geting tooltip using javacript.  It is working fine with the position untill I scroll down the page.After scoll down it is showing tooltip uper side of the element.  Here is my sample code:  
<telerik:RadToolTipManager runat="server" ID="RadTaskToolTipMgr" OffsetY="-3" Width="280" Height="80" Position="BottomCenter" RelativeTo="Element" Animation="None" HideEvent="LeaveToolTip" Text="Loading..." ShowEvent="OnClick" />

<script type="text/javascript">
function
GetTootltip(element, Task_id) {
var tooltipManager = $find("<%= RadTaskToolTipMgr.ClientID %>");
if (!tooltipManager) return;
var tooltip = tooltipManager.getToolTipByElement(element);
if (!tooltip) {
tooltip = tooltipManager.createToolTip(element);
$.ajax({
type:
"POST",
url:
"Get-Members.aspx",
data:
"Id=" + Task_id + "&For=Task",
success:
function(msg) { if (msg == "1") {
window.location =
"../login.aspx";
}
else
    tooltip.set_text(msg);
    element.onclick =
null
    element.onmouseover =
null;
tooltip.show();
}
}
});
}
else {
element.onclick =
null;
element.onmouseover =
null;
tooltip.show();
}
return false;
}
</script>
Svetlina Anati
Telerik team
 answered on 06 Jan 2011
1 answer
76 views
How to identity gird cancel button click . In javascript .

I want to identitfy the cancel button is click on client side.

Shinu
Top achievements
Rank 2
 answered on 06 Jan 2011
2 answers
64 views

I have a numeric column in a grid that receives numbers from a datatable. The cell is conditionally formatted during OnItemDataBound to change color depending on the how larger the number in the cell is.

I would like to format the number in the column regardless of how larger it is so that it displays , thousands separator. However, when I use a DataFormatString (either in code or via a PreRender method) an exception is thrown because the number no long matches (1000 vs 1,000).

 

How can I properly format the data in the column while allowing it to be conditionally formated?

Radoslav
Telerik team
 answered on 06 Jan 2011
7 answers
116 views
I have created a WCF SQL provider however i can't find any examples of the code for: CreateRecurrenceException and RemoveRecurrenceExceptions.

Do you any examples detailing these methods? 

Thanks
Peter
Telerik team
 answered on 06 Jan 2011
1 answer
126 views
Hi,

I have a radscheduler which shows the occupation of meeting rooms. When an event is a "all day event" it is displayed (in the dayview) at the top of the meeting room (resource) with the note "all day". 

Is there a way to display these "all day events" really as an all day occupation? It would be more clear to our users that the meeting rooms is not available during that day?

Thank you in advance
Peter
Telerik team
 answered on 06 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?