Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
206 views
Hi All,

I have a tabstrip with 5 tabs 
I need validation group for every single TABs.
I want to acheive the below result

When i click on the second tab, only the FIRST tab needs to be validated
When i click on the third tab, only the SECOND tab needs to be validated and so on.

and  If i'm in second tab, and clicked the FIRST tab, i dont want to consider whether SECOND tab is validated or not, i just want to move to FIRST tab

Help me out of this guys

Manivannan
Top achievements
Rank 1
 answered on 14 Feb 2012
4 answers
662 views
Hi

As per this old thread for winforms controls (http://www.telerik.com/community/forums/winforms/combobox/alignment-of-wide-text-in-radcombobox.aspx) I need to left-align the text in a combobox, rather than right-align, after it is selected.

I have this code which works for ie9, but unfortunately I need it to also work for ie7 (o I hate u ie7 so much)
<telerik:RadComboBox ID="RadComboBox1" runat="server"
   Width="150px" DropDownWidth="300px"
   OnClientSelectedIndexChanged="AlignLeftAfterSelectedIndexChange">
</telerik:RadComboBox>
 
function AlignLeftAfterSelectedIndexChange(sender) {
    var input = sender.get_inputDomElement();
    input.setSelectionRange(0, 0);
}

Is there a more Telerik-friendly way to do it?

Cheers
Jeremy
Top achievements
Rank 1
 answered on 14 Feb 2012
1 answer
94 views
I have a RADTreeView that I build programmatically.

The same RADTreeView has ContextMenus built during design time. I've attached the script below on the RADTreeview's OnClientContextMenuShowing as below. The issue I have is that this only works for the nodes that have "isApproved" attributes. If right-click anywhere else in the RADTreeView, I get an error that says "Unable to get value of the property 'get_id': object is null or undefined".

My concept is that the get_id method shouldn't be called unless the context menu id is what I have stated below. It seems to be getting called not matter what. Your help is appreciated.

<telerik:RadTreeView ID="RadTreeView1" runat="server" OnClientContextMenuShowing="ClientContextMenuShowing">

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
       <script type="text/javascript" language="javascript">
 
           function ClientContextMenuShowing(sender, eventArgs) {
               var node = eventArgs.get_node();
               var menu = eventArgs.get_menu();
               var domEvent = eventArgs.get_domEvent();
 
               /* Change value of context menu based on whether an item is approved or not is Consent
               Agenda */
               if (menu.get_id() == "ctl00_ContentPlaceHolder1_RadTreeView1_cmOtherApprovalsAgenda") {
                   var attributes = node.get_attributes();
                   attributes.getAttribute("isApproved");
                   if (attributes.getAttribute("isApproved") == "Yes") {
                       menu.findItemByValue("cmOtherApprovalsAgendaApproveAB").set_text("UnApprove Agenda Bill");
                   }
                   else {
                       menu.findItemByValue("cmOtherApprovalsAgendaApproveAB").set_text("Approve Agenda Bill");
                   }
               }
           }       
       </script>
   </telerik:RadCodeBlock>

PJ Rodriguez
Top achievements
Rank 1
 answered on 13 Feb 2012
1 answer
159 views
Hi,

I have a radgrid with filtering by column set to true and all columns have 'Show Filter Icon' set to false. One of the gridbound columns is of data type Datetime and the dates are displayed in the format  29 Jan (DataFormatString="{0:dd MMM}"). Is it possible to filter this column using 'contains' functionality ie when the user types 29 or Jan and press enter, it should filter all records with the date 29 or all records with a date in Jan?

If such custom filtering is possible, will it still work with filters on other columns?

Thanks.

Pavlina
Telerik team
 answered on 13 Feb 2012
1 answer
118 views
Hi,

I am using RadGrid control with ajax settings. and i have used jquery to display tooltip for specific columns in grid. on changing the page i not getting the tooltip for that column. only on pageload it was invkoing. on postback it not calling javascipt pageload function. i have call pageload javascript function on post back also.
please help.

thanks in advance,
swarna
Richard
Top achievements
Rank 1
 answered on 13 Feb 2012
2 answers
170 views

Had a few reports from customers that the upload control was not properly displayed. Only a small box was displayed on the screen - no browse button, and nothing happened when clicking.

I was able to reproduce the problem in IE8 compatibility mode (presumably, this would also happen in IE7 and in IE9  compatibility mode).

The span wrapper around the file input box was set to overflow:hidden, which chopped off the control display, leaving just a little bit peeking out.

I added the following to my page to fix the problem:

<style type="text/css">
.RadUpload .ruFileWrap {
    overflow:visible !important;
}
</style>

 

Since the overflow style in the telerik upload.css file is "!important", I could not find a way to fix the overflow globally - I need to add the above style to every page where the control is used. Is there a better way to do this?

MBEN
Top achievements
Rank 2
Veteran
 answered on 13 Feb 2012
2 answers
193 views
I would like to add a confirm dialog box to a GridEditCommandColumn on an ImageButton. Is this possible? I do not see any properties that suggest it is. Please advise.
Mike
Top achievements
Rank 1
 answered on 13 Feb 2012
0 answers
84 views
u
Sawula
Top achievements
Rank 1
 asked on 13 Feb 2012
2 answers
66 views

Hi,

I have old version of Telerik controls (ProductVersion: 2008.03.1125.20) but maybe you know something about this problem.

I have on my page:

<telerik:RadFileExplorer ID="fileExp" runat="server">
    <configuration viewpaths="~/Documents" uploadpaths="~/Documents" deletepaths="~/Documents">
</configuration>
</telerik:RadFileExplorer>

Creating folders, renaming and deleting is working, deleting files also but when I rename file, it is moved (with new name)
to folder '~/' (outside ~/Documents). What is wrong?
Adrian
Top achievements
Rank 1
 answered on 13 Feb 2012
4 answers
251 views
Need some help...

Here's the js to open my rad window (working great)
function GetRadWindow(){ 
   var oWindow = null
   if (window.radWindow) oWindow = window.radWindow; 
   else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; 
   return oWindow; 
 
function OpenRadWindow(url, modal, width, height, name, cancelReturnValue, title, refresh, refreshElement, onClose) { 
    var oManager = GetRadWindowManager(); 
    if (oManager == null) { 
        alert("No Rad manager is available"); 
        return
    } 
    Wnd = oManager.open(url, name); 
    Wnd.setSize(width, height); 
    Wnd.set_title(title); 
    Wnd.setActive(true); 
    Wnd.SetModal(true); 
    Wnd.set_showContentDuringLoad(true); 
    Wnd.center(); 
    Wnd.refresh = refresh; 
    Wnd.cancelReturnValue = cancelReturnValue; 
    Wnd.returnValue = cancelReturnValue; 
    if (onClose!=null) Wnd.add_close(onClose); 
    if (refreshElement==null) refreshElement = "custom"
    Wnd.refreshElement = refreshElement; 

Here's my code that SHOULD be firing when the window closes:

<telerik:RadCodeBlock ID="cb1" runat="server"
    <script type="text/javascript"
        function refreshCustomFields(sender,eventArgs) 
        { 
          var ajaxManager = $find("<%= rapCustom.ClientID%>"); 
          ajaxManager.ajaxRequest(eventArgs); 
        } 
    </script> 
</telerik:RadCodeBlock>  

So, window opens great, when I close it, it should fire the "refreshCustomFields" JavaScript method which in turn will trigger an AjaxRequest on my RadAjaxPanel.  However, I get the following error in Firefox:

Error: a[b] is not a function 
Source File: http://localhost:64113/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_RadScriptManager1_HiddenField&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3ad0c4ca6e-6b5d-49b6-922d-5244924fb100%3aea597d4b%3ab25378d2 
Line: 6 

And this error in IE 8 (Windows 7)
Webpage error details 
 
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; OfficeLiveConnector.1.4; OfficeLivePatch.1.3) 
Timestamp: Wed, 28 Oct 2009 21:14:42 UTC 
 
 
Message: Function expected 
Line: 6 
Char: 29366 
Code: 0 
URI: http://localhost:64113/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_RadScriptManager1_HiddenField&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3ad0c4ca6e-6b5d-49b6-922d-5244924fb100%3aea597d4b%3ab25378d2 

The client script "refreshCustomFields" is in the source and the add_close(onClose) gets called and set properly when the window opens (JavaScript debugger).  But I get errors when I close the window.  Any help would be appreciated.



Dev
Top achievements
Rank 1
 answered on 13 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?