Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
54 views
I came across a strange problem:

Use updatepanel for ms Ajax approach in RadGrid nested in a RadGrid, in RadGrid nested in a template column, RadGrid binding outer layer, the dynamic binding nested in RadGrid. Procedures Dynamic user control loading out this template, the user dynamic form loading.

But problems arose when I was in the outer loading RadGrid in the following four records, the page after the back-fat, all normal. But the point toolbar button, the entire surface of the Telerik controls page, including tools and the style of all the loss of RadGrid.
Styles lost the appearance of RadGrid and can not be selected.
Very difficult to understand, carry the following four records, all normal. Do not know why?
I do not think the issue of the process itself! Will not be the issue of control or is the issue of the updatePanel? Configuration problems or Ajax?
Please help me!
Thanks!
2003
Top achievements
Rank 1
 answered on 25 Jun 2009
1 answer
64 views
I use RadToolTimManager in the Master Page. I have set AutoToolTipify to true, with OnMouseOver, and this is fine for 90% of the intended usage.

However, for fill-in forms, I would like the behavior to switch to OnFocus for the data entry fields. In this way, as the user clicks or tabs through, they get instructions for the field.

Somewhere in the demo material, I found this comment: "For example, you can tooltiptify only specific areas on your page or automatically tooltipify controls on your page."

How do I set a area, or specific controls, to override the Master Page settings (mouse) to the data entry fields (focus)?
Svetlina Anati
Telerik team
 answered on 25 Jun 2009
1 answer
139 views
I have a raddatepicker and I am trying to make the border - "red" if it is left empty. It only works when user tries to pick the date the second time and leave it empty not the first one i.e. we have to have the focus twice and only then it works. I got the latest dlls but still I cannot solve the problem. Can someone please tell me what am I doing wrong ?

<telerik:RadDatePicker  ID="radBillPeriodStartDate1" Skin="Office2007" Style="vertical-align: middle;" 
                            runat="server"   
                            DbSelectedDate='<%# Bind("BEGIN_BILLING_PERIOD", "{0:d}") %>'  
                            MinDate='<%# DateTime.Now.AddMonths(Convert.ToInt32(ConfigurationManager.AppSettings["BillingMin"].ToString()))%>'  
                            MaxDate='<%# DateTime.Now.AddMonths(Convert.ToInt32(ConfigurationManager.AppSettings["BillingMax"].ToString()))%>'  
                                
                            >  
                            <Calendar ShowRowHeaders="false">  
                                <OutOfRangeDayStyle Font-Strikeout="true" ForeColor="red" />  
                            </Calendar>  
                            <DateInput ID="DateInput1" runat="server" InvalidStyle-BorderColor="red" InvalidStyle-ForeColor="red" EmptyMessageStyle-BorderColor="red" EmptyMessage="  ">  
                            <EmptyMessageStyle BorderColor="red" />   
                                <ClientEvents OnKeyPress="disableEnterKey"    />  
                            </DateInput>  
                        </telerik:RadDatePicker>  
                      
Dimo
Telerik team
 answered on 25 Jun 2009
2 answers
107 views
Any chance we could see the following example updated for 2009 Q1?  I'm interested in how to bind it using page methods and using jQuery (since it is already in the project).

WebService based load on demand multi-column combobox


Thanks,
Colin


Simon
Telerik team
 answered on 25 Jun 2009
1 answer
234 views
I am trying to implement go to page number functionality in a detail table and can't seem to get it to work right.  I'd like to implement it using client side code and tried the following based loosely on a demo.

    function txtPendingReleaseInfo_ValueChanged(sender, args) 
    { 
        var grid =$find("<%= RGPendingCases.ClientID %>"); 
        var detailTables = grid.get_detailTables();

        var release = detailTables[1]; 
        release.page(sender.get_value()); 
    } 

There are 3 detail tables, the one I'm trying to access in this case is the second one.

I also tried something server side that didn't work as well.

    Protected Sub txtPendingReleaseInfo_OnTextChanged(ByVal sender As Object, ByVal e As EventArgs) 
        Dim txtPendingReleaseInfo = DirectCast(sender, Telerik.Web.UI.RadNumericTextBox) 
        Dim PageIndex As Integer 
        Integer.TryParse(txtPendingReleaseInfo.Text, PageIndex) 
 
        Dim ChildGrid = RGPendingCases.MasterTableView.DetailTables(1)  
        If PageIndex < 1 Then 
            PageIndex = 1 
        End If 
        ChildGrid.CurrentPageIndex = PageIndex - 1 
        ChildGrid.Rebind() 
    End Sub 

In this case, ChildGrid had a null ClientID, but all the other properties represented the correct grid.  Calling Rebind on it never fires the bind code.  The only way I seemed to be able to get this to work was to do

DirectCast(RGPendingCases.Controls(1).Controls(0).Controls(4).Controls(1).FindControl(ControlName), Telerik.Web.UI.GridTableView) 

and I really detest that way.

Any suggestions or examples I can look at?  I couldn't find any demos that did this.
Sebastian
Telerik team
 answered on 25 Jun 2009
4 answers
392 views
Hi !

I have a problem with the UpdatePanelsRenderMode Inline. When I use it, the buttons are aligned in block mode and then, after on second, they are aligned in inline mode.

There is a way to avoid that ?

Thank you,

Sabrina

Here is the example :

<html xmlns="http://www.w3.org/1999/xhtml">  
<head runat="server">  
    <title>Untitled Page</title> 
    <style type="text/css">  
    .MyModalPanel  
{  
    position:absolute;  
    top:0;  
    left:0;  
    width:100%;  
    height:100%;  
    margin:0;  
    padding:0;  
    background:#ffa url(img/loading.gif) center center no-repeat;         
}  
    </style> 
</head> 
 
<body> 
    <form id="form1" runat="server">  
    <div> 
    <telerik:RadScriptManager ID="MainRadScriptManager" runat="server">  
        </telerik:RadScriptManager> 
    <table> 
    <tr>voici un peu de texte</tr> 
     <tr>          
            <telerik:RadCodeBlock runat="server">       
            <td align="right" valign="bottom" style="border: none">                  
               <asp:Button ID="DeleteBtn" runat="server" Text="<%$ Resources:Resource, TEST_TEXT1%>" 
                        CausesValidation="false" UseSubmitBehavior="false" />&nbsp;  
               <asp:Button ID="ClearBtn" runat="server" Text="<%$ Resources:Resource, TEST_TEXT2%>" 
                        CausesValidation="false" UseSubmitBehavior="false" />                                      
            </td> 
            </telerik:RadCodeBlock> 
        </tr> 
    </table>    
        <telerik:RadAjaxManager ID="RadAjaxManagerProxy1" runat="server" UpdatePanelsRenderMode="Inline">  
        <AjaxSettings> 
           <telerik:AjaxSetting AjaxControlID="DeleteBtn">  
                <UpdatedControls> 
                   <telerik:AjaxUpdatedControl ControlID="DeleteBtn" LoadingPanelID="AjaxLoadingPanel">  
                   </telerik:AjaxUpdatedControl> 
                </UpdatedControls> 
            </telerik:AjaxSetting>                                  
            <telerik:AjaxSetting AjaxControlID="ClearBtn">  
                <UpdatedControls> 
                   <telerik:AjaxUpdatedControl ControlID="ClearBtn" LoadingPanelID="AjaxLoadingPanel">  
                   </telerik:AjaxUpdatedControl> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
           </AjaxSettings> 
        </telerik:RadAjaxManager> 
         <telerik:RadAjaxLoadingPanel ID="AjaxLoadingPanel" runat="server" Transparency="20" style="z-index: 10000" 
            BackColor="#E0E0E0" IsSticky="true" Width="100%" Height="100%" CssClass="MyModalPanel">         
        </telerik:RadAjaxLoadingPanel> 
    </div> 
    </form> 
</body> 
</html> 
Dimo
Telerik team
 answered on 25 Jun 2009
0 answers
86 views

Hi Telerik Team,

    
     I am using  RadFile Upload, i cant able to set the filename property of the radupload, because it is read only.
But my situation is that i have 4 rad upload controls to upload multiple files. here i have all my files in the same location which have to be uploaded to the same path. So what i need is when user browse for the first file in the first rad upload i want the other radupload filename to be filled automatically
For eg: in tab file upload when user browses the tab its supporting files which are at the same location have to be automatically filled at the filenames of the other radupload.

how can i achieve this?

Please help me to solve this issue!

Thanks
Mukunda
GIS Application Developer

Mukunda
Top achievements
Rank 1
 asked on 25 Jun 2009
1 answer
160 views
I have a RadGrid which is bound to a LinqDataSource, which is in turn getting data from SQL via a DataContext.

Sorting works fine, but filtering behaves rather strangely-
I've enabled filtering using AllowFilteringByColumn="true".

1. If I filter based on just a numeric column like ID or quantity, it works the way it should. The filter applies.
2. If I filter only on a non-numeric column (I've tried string and datetime columns), it is as if I didn't apply a filter at all. I could put in a value of "sdfsadfsdgdsfgsafsafdasdfsdf" in the filter box, then choose "Equal To", and it still shows all records as if a filter hadn't been applied.
3. If I first apply a filter to a numeric column, say, the identiy column, it filters down to the one row. Great. If I then ADD a filter to another non-numeric column, all the rows show up again, even though I STILL have the filter set on the numeric column.

Here's a snip:

<asp:LinqDataSource ID="dsOrders" runat="server"   
        ContextTypeName="ChargebackDataContext" EnableInsert="True" 
        EnableUpdate="True" TableName="Orders" Where="Active = @Active or Active = true">  
        <WhereParameters> 
            <asp:SessionParameter SessionField="ActiveOnly" Name="Active" DbType="Boolean" DefaultValue="true" /> 
        </WhereParameters> 
    </asp:LinqDataSource> 
    <telerik:RadGrid ID="gridOrders" runat="server" AutoGenerateColumns="False" 
        DataSourceID="dsOrders" GridLines="None" Skin="Office2007" 
        AllowSorting="true" AllowPaging="true" PageSize="20" > 
        <HeaderContextMenu> 
        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
        </HeaderContextMenu> 
 
        <MasterTableView allowautomaticinserts="true" allowautomaticupdates="true"   
                    commanditemdisplay="Top" datakeynames="OrderID" datasourceid="dsOrders" EditMode="PopUp" > 
            <CommandItemSettings AddNewRecordText="Add Order" /> 
            <CommandItemTemplate> 
            <table width="100%">  
            <tr> 
                <td align="left">  
                    <asp:Button runat="server" ID="btnInsert" CssClass="rgAdd" Text="Add Order" CommandName="InitInsert"/>  
                    <asp:LinkButton runat="server" ID="lbInsert" Text="Add Order" CommandName="InitInsert" /> 
                </td> 
                <td align="right">  
                    <asp:CheckBox runat="server" AutoPostBack="true"  Checked='<%# ShowActiveOnly %>' Text="Active Only" TextAlign="Right" ID="cbActiveOnly" OnCheckedChanged="cbActiveOnly_CheckedChanged" /> 
                </td> 
                <td align="right" style="width: 70px;">  
                    <asp:Button runat="server" ID="btnRefresh" CssClass="rgRefresh" Text="Refresh" CommandName="RebindGrid"/>  
                    <asp:LinkButton runat="server" ID="lbRefresh" Text="Refresh" CommandName="RebindGrid" /> 
                </td> 
            </tr> 
            </table> 
            </CommandItemTemplate> 
        <RowIndicatorColumn> 
        <HeaderStyle Width="20px"></HeaderStyle> 
        </RowIndicatorColumn> 
 
        <ExpandCollapseColumn> 
        <HeaderStyle Width="20px"></HeaderStyle> 
        </ExpandCollapseColumn> 
            <Columns> 
                <telerik:GridBoundColumn DataField="OrderID" DataType="System.Int32"   
                    HeaderText="OrderID" ReadOnly="True" SortExpression="OrderID"   
                    UniqueName="OrderID">  
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="OrderDate" DataType="System.DateTime" AllowFiltering="false" 
                    HeaderText="OrderDate" SortExpression="OrderDate" UniqueName="OrderDate">  
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="PrimaryCustomer.CustomerName" DataType="System.String" 
                    HeaderText="Primary Customer" SortExpression="PrimaryCustomer.CustomerName"   
                    UniqueName="PrimaryCustomerAlias">  
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="SecondaryCustomer.CustomerName"   
                    HeaderText="Secondary Customer" DataType="System.String" 
                    SortExpression="SecondaryCustomer.CustomerName" UniqueName="SecondaryCustomerAlias">  
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="CCIOCode" HeaderText="CC/IO Code"   
                    SortExpression="CCIOCode" UniqueName="CCIOCode">  
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="Service.ServiceName" HeaderText="Service" DataType="System.String"   
                    SortExpression="Service.ServiceName" UniqueName="ServiceName">  
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="Quantity" DataType="System.Decimal"    
                    HeaderText="Quantity" SortExpression="Quantity" UniqueName="Quantity">  
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="OrderInstanceIdentifier.InstanceName" DataType="System.String" 
                    HeaderText="Instance" SortExpression="OrderInstanceIdentifier.InstanceName"   
                    UniqueName="OrderInstanceIdentifierName">  
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="Notes" HeaderText="Notes" DataType="System.String" 
                    SortExpression="Notes" UniqueName="Notes">  
                </telerik:GridBoundColumn> 
                <telerik:GridCheckBoxColumn DataField="Recurring" DataType="System.Boolean"   
                    HeaderText="Recurring" SortExpression="Recurring" UniqueName="Recurring">  
                </telerik:GridCheckBoxColumn> 
                <telerik:GridCheckBoxColumn DataField="Active" DataType="System.Boolean"   
                    HeaderText="Active" SortExpression="Active" UniqueName="Active">  
                </telerik:GridCheckBoxColumn> 
                <telerik:GridEditCommandColumn></telerik:GridEditCommandColumn> 
            </Columns> 
            <EditFormSettings EditFormType="WebUserControl" UserControlName="Components/OrderEditForm/OrderEditForm.ascx"><PopUpSettings Width="600px" /> 
            </EditFormSettings> 
        </MasterTableView> 
 
        <FilterMenu> 
        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
        </FilterMenu> 
    </telerik:RadGrid> 
Sebastian
Telerik team
 answered on 25 Jun 2009
1 answer
172 views
HI,

I guess I'm having a similar issue as I had in the RadMenu, but this time in the toolbar. Here is the original post Recreate menu on click.

What I'm doing is adding and removing items dynamically from the client side to a dropdown menu. The code is very similar as the one in the other thread, but I don't clear all the items, I only remove the one I want when the user clicks on another item in the same dropdown menu.

This happens only when I click the item that will be removed. In the following example, try to click the second item in the dropdown.

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="toolbarThinLastButton.aspx.cs" Inherits="toolbarThinLastButton" %> 
<%@ Register TagPrefix="telerik" Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml" > 
<head runat="server"> 
    <title>Untitled Page</title> 
    <script type="text/javascript"> 
        var number = 0; 
        function Clicked() { 
            var taskbar = $find("RadToolBar1"); 
            //var dd = taskbar.findItemByText("xxx"); 
            var dd = taskbar.findItemByAttribute("key", "this"); 
 
            taskbar.trackChanges(); 
 
            var dropDownChildButton = new Telerik.Web.UI.RadToolBarButton(); 
            dropDownChildButton.set_text("a button " + number); 
            number++; 
 
            if (dd.get_buttons().get_count() > 1) { 
                // Remove last 
                dd.get_buttons().removeAt(1); 
            } 
             
            // Tooltip 
            dd.get_buttons().add(dropDownChildButton); 
 
            taskbar.commitChanges(); 
        } 
    </script> 
</head> 
<body> 
    <form id="form1" runat="server"> 
        <asp:ScriptManager ID="scriptManager1" runat="server" /> 
    <div> 
        <telerik:RadToolBar ID="RadToolBar1" runat="server" Skin="Office2007" OnClientButtonClicked="Clicked"> 
            <Items> 
                <telerik:RadToolBarButton Text="button 1" /> 
                <telerik:RadToolBarButton Text="button 2" /> 
                <telerik:RadToolBarButton Text="button 3" /> 
                <telerik:RadToolBarDropDown Text="xxx" key="this"> 
                    <Buttons> 
                        <telerik:RadToolBarButton Text="add or remove buttons" ToolTip="click me"> 
                        </telerik:RadToolBarButton> 
                        <telerik:RadToolBarButton Text="bla" ToolTip="click me"> 
                        </telerik:RadToolBarButton> 
                        <telerik:RadToolBarButton Text="bla" ToolTip="click me"> 
                        </telerik:RadToolBarButton> 
                        <telerik:RadToolBarButton Text="bla" ToolTip="click me"> 
                        </telerik:RadToolBarButton> 
                        <telerik:RadToolBarButton Text="bla" ToolTip="click me"> 
                        </telerik:RadToolBarButton> 
                    </Buttons> 
                </telerik:RadToolBarDropDown> 
            </Items> 
        </telerik:RadToolBar> 
    </div> 
    </form> 
</body> 
</html> 
 

Is there something I can do? In the dropdown menu there is no close() method, so I can't do the same as in the menu.

Thanks,
Eduardo



Yana
Telerik team
 answered on 25 Jun 2009
1 answer
49 views
Hi everyone,

Since I use the Q3 2008 Office2007 converted skin with the Q1 2009 version of Telerik, I have some little problems? First it was with the tabStrip wich used to stay in one line whatever i was doing. Now that's problem is fixed, but I have several other problems.

With the ToolBar, the text is now under the icons except in dropdown. I try most all the properties without succes.
And for the dropdown, if I have only one dropdown in my toolbar with several items, the right border doesn't show correctly (it seems the toolbar is cut on the right) and the little arrow is not visible like it was on the Q3 2008.

Does anyone know how to fix those problems ?

Regards,

[Nean]
Kamen Bundev
Telerik team
 answered on 25 Jun 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?