Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
44 views
hi every body
sorry but my rad window has strange problem.
i set 2 drop down in my rad window , when it shows to user and user clicks on them the small window that contains the data of drop down go to other side of window (as default the small window of the drop down comes under it after click on it)
i don't know the reason O_o !

Haniyeh
Top achievements
Rank 1
 answered on 07 Jan 2013
3 answers
297 views
hi
i have a page that contains an update panel, and all of my page are user controls.
one of them has grid view and the grid view contain an image button .if user is clicking on it, the rad window should be display.
but it doesn't show.
what am i doing now?(i used this demo to do it but :( nothing happen )
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="NormalTickets.ascx.cs" Inherits="NormalTickets" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
 
<telerik:RadCodeBlock ID="RadCodeBlock2" runat="server">
        <style type="text/css">
            .orderText
            {
                font: normal 10pt tahoma;
                margin-top: 6px;
            }
        </style>
       
    </telerik:RadCodeBlock>
   
<div id="mainDiv">
 
   
    <telerik:RadFormDecorator ID="QsfFromDecorator" runat="server" DecoratedControls="All" EnableRoundedCorners="true" />
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
        <script type="text/javascript">
            function ShowEditForm(id, rowIndex) {
                var grid = $find("<%= RadGrid1.ClientID %>");
 
                var rowControl = grid.get_masterTableView().get_dataItems()[rowIndex].get_element();
                grid.get_masterTableView().selectItem(rowControl, true);
 
                window.radopen("EditFormcs.aspx?EmployeeID=" + id, "رزرو بلیط");
                return false;
            }
            function ShowInsertForm() {
                window.radopen("EditFormcs.aspx", "رزرو بلیط2");
                return false;
            }
            function refreshGrid(arg) {
                if (!arg) {
                    $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("Rebind");
                }
                else {
                    $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("RebindAndNavigate");
                }
            }
            function RowDblClick(sender, eventArgs) {
                window.radopen("Pg_Normaltickets.aspx?siD=" + eventArgs.getDataKeyValue("sid"), "نمایش تاریخ ها");
            }
        </script>
        </telerik:RadCodeBlock>
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1"></telerik:AjaxUpdatedControl>
                </UpdatedControls>
                 
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RadGrid1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1"></telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <br />
    <div dir="rtl">
    <telerik:RadGrid OnItemCreated="RadGrid1_ItemCreated" ID="RadGrid1" runat="server"
        AllowPaging="True" Width="80%" 
    AutoGenerateColumns="False" CellSpacing="0" Font-Names="Tahoma"
    GridLines="None" Skin="Metro" Culture="fa-IR">
        <MasterTableView DataKeyNames="sid" ClientDataKeyNames="sid"
            Width="100%" CommandItemDisplay="Top" PageSize="10">
<CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
 
<RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column"></RowIndicatorColumn>
 
<ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column"></ExpandCollapseColumn>
            <Columns>
                <telerik:GridBoundColumn DataField="sid" HeaderText="sid" ReadOnly="True"
                    SortExpression="sid" UniqueName="sid"
                    Visible="False">
                    <ItemStyle Font-Names="Tahoma" />
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="descr" HeaderText="نمایش" SortExpression="FirstName"
                    UniqueName="FirstName">
                    <HeaderStyle Font-Names="Tahoma" Font-Size="10pt" ForeColor="#08AFEE" />
                    <ItemStyle Font-Names="Tahoma" Font-Size="10pt" />
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="descr1" HeaderText="کارگردان" SortExpression="LastName"
                    UniqueName="LastName">
                    <HeaderStyle Font-Names="Tahoma" Font-Size="10pt" ForeColor="#08AFEE" />
                    <ItemStyle Font-Names="Tahoma" Font-Size="10pt" />
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="duration" HeaderText="مدت اجرا" SortExpression="Title"
                    UniqueName="Title">
                    <HeaderStyle Font-Names="Tahoma" Font-Size="10pt" ForeColor="#08AFEE" />
                    <ItemStyle Font-Names="Tahoma" Font-Size="10pt" />
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="saloonName"
                    FilterControlAltText="Filter column column" HeaderText="مکان"
                    UniqueName="column">
                    <HeaderStyle Font-Names="Tahoma" Font-Size="10pt" ForeColor="#08AFEE" />
                    <ItemStyle Font-Names="Tahoma" Font-Size="10pt" />
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="price"
                    FilterControlAltText="Filter column1 column" HeaderText="قیمت"
                    UniqueName="column1">
                    <HeaderStyle Font-Names="Tahoma" Font-Size="10pt" ForeColor="#08AFEE" />
                    <ItemStyle Font-Names="Tahoma" Font-Size="10pt" />
                </telerik:GridBoundColumn>
 
                <telerik:GridTemplateColumn UniqueName="TemplateEditColumn">
                     
                    <ItemTemplate>
                        <asp:ImageButton ID="EditLink" runat="server" ImageUrl="~/images/buy.png"
                            onclick="imgbtn_buy_Click"
                            ToolTip="برای انتخاب سانس مورد نظرتان و خرید کلیک کنید." />
                    </ItemTemplate>
                     
                </telerik:GridTemplateColumn>
 
               </Columns>
 
<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
</EditFormSettings>
            <CommandItemTemplate>
                 
            </CommandItemTemplate>
        </MasterTableView>
        <ClientSettings>
            <Selecting AllowRowSelect="true"></Selecting>
            <ClientEvents OnRowDblClick="RowDblClick"></ClientEvents>
            <Animation AllowColumnReorderAnimation="True" />
        </ClientSettings>
 
<FilterMenu EnableImageSprites="False"></FilterMenu>
    </telerik:RadGrid>
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true">
        <Windows>
            <telerik:RadWindow ID="UserListDialog" runat="server" Title="Editing record" Height="320px"
                Width="310px" Left="150px" ReloadOnShow="true" ShowContentDuringLoad="false"
                Modal="true">
            </telerik:RadWindow>
        </Windows>
    </telerik:RadWindowManager>
    </div>
 
 
 
 
<div id="basket">
          
        <div style="text-align:center;color:Gray;font:10pt tahoma;">
         <telerik:RadAjaxPanel ID="RadAjaxPanel3" runat="server"
             HorizontalAlign="NotSet" LoadingPanelID="RadAjaxLoadingPanel1" Width="540px">
             <telerik:RadCaptcha ID="RadCaptcha1" runat="server" BackColor="Transparent"
                 CaptchaTextBoxCssClass="capthchaTextBox"
                 CaptchaTextBoxLabel="لطفاً حروف تصویر را وارد نمایید"
                 CaptchaTextBoxLabelCssClass="capthchalable" Font-Size="Small" Height="76px"
                 Visible="False" Width="381px">
             </telerik:RadCaptcha>
         </telerik:RadAjaxPanel>
         <div style="margin-left: 43px; margin-right: 66px">
                            
                               <asp:Button ID="btn_buyticket" runat="server" BackColor="#08AFEE"
                                   BorderColor="#08AFEE" BorderStyle="Solid" BorderWidth="1px" Font-Size="10pt"
                                   ForeColor="White" Text="اظافه به سبد خرید" Width="127px"
                                   onclick="btn_buyticket_Click" />
                            
                           </div>
       </div>
    </div>
    </div>
     <asp:SqlDataSource ID="SqlDataSource1" runat="server"
                    ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
                    SelectCommand="Select distinct S.SID as SID,Descr,SaloonName,unitprice From [Section] S , SansDet D,Saloon S1  Where S.SID=D.SID And D.Date1>dbo.persiandate(getdate()) and S.SaloonID=S1.SaloonID And SS=1 and type=1 Order by S.SID "></asp:SqlDataSource>
                
i made the another page to show in rad window,

Note : my purpose is user controls came to update panel to avoid refresh and post back.my user control name is NormalTickets and it has a gridview to show the name oh theater and the button in each row should show the another page.the second page has another gridview to show the theater date and time and user can select one of them to get the ticket.(first page resend the id of ticket to another page)
Haniyeh
Top achievements
Rank 1
 answered on 07 Jan 2013
2 answers
126 views

I want to call RadTreeListWork_UpdateCommand from radbutton click event

Thanks Advance,
Mohamed.
Shinu
Top achievements
Rank 2
 answered on 07 Jan 2013
1 answer
163 views
Hi,

I am having mastergrid and 3 levels of hierarchal gridtables inside . i want to get the master grid datakeynames in OnDetailTableDataBind event when i am expanding the second  hierarchal level grid table. Please help  .....


Thanks 
Raju
Shinu
Top achievements
Rank 2
 answered on 07 Jan 2013
1 answer
171 views
inside the popup Image Manager of my rededitor, Is it possible to hide the file path box? I want to hide the server location of the folder from user.

thanks in advance
Princy
Top achievements
Rank 2
 answered on 07 Jan 2013
1 answer
156 views
I have a some radmenu items with subitems in a dropdown and I need to remove the subitems, my code is.

function RemoveItems() {
            var menu = $find("<%= ResourceContextMenu.ClientID %>");
            var items = menu.findItemByText("Resources");
            for (var i = 0; i < items.get_count(); i++) {
                items.remove(i);
            }
            menu.trackChanges();
            menu.commitChanges();
        }
But i get an error in get_count.. I accomplish to remove the Resource Item but the only thing i want to remove is the Resource subitems..
What is wrong with my code?
Princy
Top achievements
Rank 2
 answered on 07 Jan 2013
0 answers
88 views
Hi telerik,
I have a grid with frozon columns in my project, I intend to set width for some columns, I refer to the demo below in help article
http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/frozencolumns/defaultcs.aspx 
I noticed that it use the following to set width for ALL Columns 
<HeaderStyle Width="200px"></HeaderStyle> 
but I only intend to set some specific columns, taking the demo above for example, I only want to set the column 'Address' width to 500px,
when remove <HeaderStyle width="200px"></HeaderStyle> and set column 'Address' width to 500px, it does not work and the horizontal scroll bar 
I also noticed there is another help article 
http://www.telerik.com/help/aspnet-ajax/grid-scroll-with-static-headers.html
there is a note said 'When scrolling is enabled and UseStaticHeaders is True, the grid columns should declare HeaderStyle.Width.'
does that mean 'HeaderStyle.Width' will apply to all columns?
could you please how to set width for specific columns when using frozon column?
Albert
Top achievements
Rank 1
 asked on 07 Jan 2013
0 answers
47 views
Inside an EditItemTemplate of a Grid I have two buttons:

<div>
    <asp:Button runat="server" ID="btnSave" CommandName="Update" Text="Save" OnClick="btnSave_Click" />
    <asp:Button runat="server" ID="btnCancel" CommandName="Cancel" Text="Cancel" CssClass="floatRight" />
</div>

The first Save button is placed inside a "rfdSkinnedButton" anchor tag and has rounded corners etc.
The second Cancel button is not automatically styled this way. Seems its explicit CssClass overrides this behaviour. What is this behaviour called? Grid skinning?

How do I float my Cancel button right but still get the rounded corners etc?
Peter
Top achievements
Rank 1
 asked on 07 Jan 2013
8 answers
439 views
Hello,

I have a RadGrid on my page with AllowMultiRowSelection="true" and clientSelectColumn.
In the itemDataBound evennt I perform some check on the binded item and sometimes disable the row:
e.Item.Enabled = false;    

While this line disables the checkbox, the row can still be checked when clicking on it.
Moreover, when clicking on the check all check box in header all the checkboxes become checked, even the disabled ones.

Is that a bug?




This is the grid declaration:
<telerik:RadGrid ID="gridReviews" runat="server"
            AutoGenerateColumns="false" AllowMultiRowSelection="true"
            onitemdatabound="gridReviews_ItemDataBound"  >            
            <HeaderContextMenu>
            <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
            </HeaderContextMenu>
            <ItemStyle Wrap="False" />
            <MasterTableView DataKeyNames="Value.Id">                
                <Columns>                    
                    <telerik:GridClientSelectColumn UniqueName="ReviewSelectCol">                        
                    </telerik:GridClientSelectColumn>
               .....
               .....


                </Columns>
            </MasterTableView>
            
            <ClientSettings >
                        <Selecting AllowRowSelect="True" />
                        <Scrolling AllowScroll="True" UseStaticHeaders="True" />
                        <Resizing AllowColumnResize="True" EnableRealTimeResize="True" />
            </ClientSettings>

        </telerik:RadGrid>

Thanks,
Maria.
Vlad
Top achievements
Rank 1
 answered on 06 Jan 2013
0 answers
81 views
Hi,

How should I publish a web site to get a release version?
I mean to get min JS and min Css resources in WebResource.axd link for telerik controls.

Some images and js resources of Telerik controls that are linked by WebResource.axd do not get cached by the browser (there is no 'Expire Date' in response header). what should I do to make this resource links cachable??


Thank you very much. 
reza
Top achievements
Rank 1
 asked on 05 Jan 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?