Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
93 views
Using a TabStrip with custom skin in IE9 seems to cause tearing in the buttons. See attached screen shot. Running version 2012.607. Does not occur in IE8, Chrome or FF.

Let me know if you need more information.
Kate
Telerik team
 answered on 28 Jun 2012
1 answer
120 views
<telerik:RadGrid ID="RadGridItemSizes" runat="server" AllowPaging="false" AllowSorting="True" GridLines="None" Skin="Windows7" Width="95%">                                                        
<MasterTableView AutoGenerateColumns="false" EditMode="InPlace" >
<NoRecordsTemplate>
 No Sizes Found
</NoRecordsTemplate>                                                                                          
<Columns>                                                           
<telerik:GridBoundColumn    DataField="IT_SizePk"   UniqueName="SizePk" Visible="false" />
<telerik:GridCheckBoxColumn DataField="Checked"     HeaderText="Select"         HeaderStyle-Width="20px"    UniqueName="Checked"/>
<telerik:GridBoundColumn    DataField="Size"        HeaderText="Size"           HeaderStyle-Width="40px"    ReadOnly="true"/>                                                               
<telerik:GridNumericColumn  DataField="SizePremium" HeaderText="Size Premium"   HeaderStyle-Width="100px"   UniqueName="SizePremium" DecimalDigits="2" DataFormatString="{0:f3}" />
 </Columns>
 </MasterTableView>
 </telerik:RadGrid>

I have the above Grid. And the following Code being used for this grid

        Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            Try
               'Put In Edit Mode
                Dim i As Integer
                For i = 0 To RadGridItemSizes.PageSize - 1
                    RadGridItemSizes.EditIndexes.Add(i)
                Next i
            
            Catch exc As Exception        'Module failed to load
                ProcessModuleLoadException(Me, exc)
            End Try
End Sub


Private Sub SaveDataSpecificationTab()
                Dim Sizes() As Guid = {}
                Dim SizesPrices() As Double = {}
 
               For Each DataItem As GridEditableItem In RadGridItemSizes.EditItems
 
                   Dim CheckBox As CheckBox = DirectCast(DataItem("Checked").Controls(0), CheckBox)
                   Dim txtbox As TextBox = DirectCast(DataItem("SizePk").Controls(0), TextBox)
                   Dim SizePk As String = txtbox.Text
                   txtbox = DirectCast(DataItem("SizePk").Controls(0), TextBox)
                   Dim SizePremium As String = txtbox.Text
 
                   If CheckBox.Checked Then
                       ReDim Preserve Sizes(Sizes.Length)
                       ReDim Preserve SizesPrices(SizesPrices.Length)
                       Sizes(UBound(Sizes)) = New Guid(SizePk)
                       SizesPrices(UBound(SizesPrices)) = SizePremium
                   End If
 
               Next
End Sub

Private Sub RadGridItemSizes_ItemCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGridItemSizes.ItemCreated
           If (Not Page.IsPostBack AndAlso TypeOf e.Item Is GridEditableItem) Then
               e.Item.Edit = True
           End If
       End Sub
 
       Private Sub RadGridItemSizes_NeedDataSource(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles RadGridItemSizes.NeedDataSource
 
           Dim Item As ConvergenceDataAccess.Items = New ConvergenceDataAccess.Items(Me.ConnectString)
           RadGridItemSizes.DataSource = Item.GetDataTable_ItemSizesPremium(New Guid(ItemPk.Value))
 
       End Sub

This page is also using the RadAjaxManager.

I haven't been able to pull the data from the grid to save using the SaveDataSpecificationTab()  Sub - being called by a button.

I've tried pretty much all of the suggestions I have found here and through google.


Tsvetoslav
Telerik team
 answered on 28 Jun 2012
1 answer
87 views
Hello,

is there an event available for catching the collapse/expand action which is enabled by setting EnableMinimizing to TRUE?

Regards,
   Jos Meerkerk
Bozhidar
Telerik team
 answered on 28 Jun 2012
6 answers
1.8K+ views
I call the script from input checkbox field that is inside of  RadPageView of RadDockZone of RadDock how i find that id
<input type="checkbox" runat="server" name="ChkAdmin" value="Chk_Admin" id="Chk_Admins"
                                                                                                        onclick="Chk_AdminClick()" />Admin
function Chk_AdminClick() {                               
                debugger;
                var chkBox = document.getElementsId('Chk_Admins');      
                var Checked = document.getElementsId('Chk_Admins').checked;                               
                var chkBox1 = document.getElementsByName('ChkAdmin');               
                if(chkBox1.Checked == true)
                {
                  setPrives("admin");
                }
                else
                {setPrives("none");}
            }


Regards,
Mohamed
Princy
Top achievements
Rank 2
 answered on 28 Jun 2012
7 answers
367 views
Hello all,

I am using rad window as follows,
i.e., from the code base in a grid row command event.

 
                     Telerik.Web.UI.RadWindow objEditOffer = new Telerik.Web.UI.RadWindow();
                     objEditOffer.VisibleOnPageLoad = true;
                     objEditOffer.NavigateUrl = "~/OfferManagement/CreateEditOffer.aspx?OfferId=" + _commandArg;
                    double heightEditOffer = 400;
                    double widthEditOffer = 900;
                    objEditOffer.Height = new Unit(heightEditOffer);
                    objEditOffer.Width = new Unit(widthEditOffer);
                    

                    pnlrad.Controls.Add(objEditOffer);



I want to close that window and I want to refresh the parent page.I did used the following script,



    function CloseOnReload() {
        //alert("Dialog is about to close itself");
        GetRadWindow().close();
        RefreshParentPage();
    }



    function RefreshParentPage() {
        //alert("Dialog is about to reload parent page");
        GetRadWindow().BrowserWindow.location.reload();
    }


    function GetRadWindow() {
        var oWindow = null;
        if (window.radWindow)
            oWindow = window.radWindow;
        else if (window.frameElement.radWindow)
            oWindow = window.frameElement.radWindow;
        return oWindow;
    }

    function Close() {
        var oWindow = GetRadWindow();
        oWindow.argument = null;

        

        oWindow.close();
        window.location = location.href;
        

        return false;

    }


The script did worked for me but with a problem that is, it is refreshing the page and reopening the rad window again. Please give me a solution ASAP.





Rama
Top achievements
Rank 1
 answered on 28 Jun 2012
2 answers
148 views
I've tried a few ways of making the GridHTMLEditorColumn of my grid to be in text overflow mode. Nothing seems to work.

Given this example: 
http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/columntypes/defaultcs.aspx 

Can someone please alter this column:
<telerik:GridHTMLEditorColumn UniqueName="Notes" SortExpression="Notes" HeaderText="HTMLEditorColumn"
                        DataField="Notes" FooterText="HTMLEditorColumn footer" HeaderStyle-Width="200px">
</telerik:GridHTMLEditorColumn>
Such that text longer than 75px height causes overflow:hidden with ellipsis?
Radoslav
Telerik team
 answered on 28 Jun 2012
1 answer
153 views
Hi Team,

I have implemented RadGrid in a Email Client scenario. Whan I click the RadGridItem I load an user conrol on the same page. Talking about this everything is ok. The problem is that RadGrid not only binds the user controll but also itself which makes everything look dummy. So how can I stop RadGrid from rebinding itself.

Best regards, Ivan.
Tsvetoslav
Telerik team
 answered on 28 Jun 2012
5 answers
215 views
Hi,

I have combo box, im loading the item on load demand. I have client selected index changed event, if i type exact text(case sensitive) and when i come out of the combobox and clicked on out side of the combobox,onclientselectedindexchanged event is firing. I don't want to fire this event when exact match is found. I want user to select the item from the combobox list then only i want this event to be fire.

I have

MarkFirstMatch

 

="false"

 

Attachment1 is firing the event.
Attachment2 is not firing the event.
Please let me know the solution for this. If this is the default behaviour of the combobox, are there any work arounds for the solution.

Thanks in Advance,
Hari.
Princy
Top achievements
Rank 2
 answered on 28 Jun 2012
1 answer
143 views
I'm not sure its possible but I'd like to be able to enter multiple numbers into a numeric textbox.
I'd like to be able to enter a string of numbers such as: 12345, 12365, 14356.
Each number must be a whole number with no decimals. Is this possible or should I use a textbox and validate each value individually after splitting the string?

Thanks
Shinu
Top achievements
Rank 2
 answered on 28 Jun 2012
4 answers
138 views
Dear Sir
i Have a RadRotator in WebControl and i'm loading it in the page within RadAjaxPanel
in IE9 is working fine but in FF OR Safari the images not Showing in the first click button " Cmd_ReadMore " the Secound Click it's showing

how i can solve this problem

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
                 <AjaxSettings>
                        <telerik:AjaxSetting AjaxControlID="Cmd_ReadMore">
                            <UpdatedControls>
                                <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" LoadingPanelID="RadAjaxLoadingPanel1" />
                            </UpdatedControls>
                        </telerik:AjaxSetting>
                       <telerik:AjaxSetting AjaxControlID="Cmd_Back">
                            <UpdatedControls>
                                <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" LoadingPanelID="RadAjaxLoadingPanel1" />
                            </UpdatedControls>
                        </telerik:AjaxSetting>
                 </AjaxSettings>
           </telerik:RadAjaxManager>
           <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server">
           </telerik:RadAjaxLoadingPanel>
<telerik:RadButton runat="server" ID="Cmd_ReadMore"  Text="Back"></telerik:RadButton>
<telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel1">
<asp:Panel ID="Pnl_Data"  runat="server"  Visible="false" >
<telerik:RadButton runat="server" ID="Cmd_Back"  Text="Back"></telerik:RadButton>
     <ibw:imageBrowser ID="ImgBrow" runat="server"   />
</asp:Panel>
 </telerik:RadAjaxPanel>

Code Behind
Public Sub Cmd_ReadMore_Click(sender As Object, e As System.EventArgs)
        Me.Pnl_Data.Visible = True
       Me.ImgBrow.LoadImages()
End Sub
Public Sub Cmd_Back_Click(sender As Object, e As System.EventArgs)
        Me.Pnl_Data.Visible = False
        Me.ImgBrow.ClearImages()
End Sub
Ayman
Top achievements
Rank 1
 answered on 28 Jun 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?