Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
198 views
hi
the page with RadSplitter with Height="100%"  never resize and fit Height to page in diffrent resolution . for example in page with Height=760 is diffrent seen page with Height=720 and .....how to fit to page in all resolution with RadSplitter?my code:    <telerik:RadSplitter ID="RadSplitter1" runat="server"       Height="100%" Width="100%">
        <telerik:RadPane ID="navigationPane" runat="server" ForeColor="White" Height="100%" Scrolling="None"
             Width="200px" CssClass="treeViewNavigate">
//my code
        </telerik:RadPane>
        <telerik:RadSplitBar ID="RadSplitbar1" runat="server" CollapseMode="Forward"  Height="100%">
        </telerik:RadSplitBar>
        <telerik:RadPane ID="contentPane" runat="server" Height="100%">
//my code
   </telerik:RadPane>
    </telerik:RadSplitter>
Vessy
Telerik team
 answered on 14 Jul 2014
1 answer
98 views
Hi All,

I am having a usercontrol with dropdowntree control . I'm using that control in my aspx page inside asp formview contol. when i'm trying to use that usercontrol if in asp.ObjectDataSource , im unable to access that.

  <asp:ControlParameter Name="AreaId" Type="Int32" ControlID="AreaList" PropertyName="AreaID"   />

In this "AreaList" is my usercontrol.  but in runtime it show the error ,

 Error Message:Could not find control 'AreaList' in ControlParameter 'AreaId'.

how to access my usercontrol in ObjectDataSource ?
Peter Filipov
Telerik team
 answered on 14 Jul 2014
1 answer
329 views
We seem to found a cosmetic glitch in a grid with BatchEdit mode and
<ClientSettings Selecting-AllowRowSelect="true" />
<BatchEditingSettings EditType="Row" OpenEditingEvent="Click" />

When an existing row is selected it is highlighted by applying <tr class="rgAltRow rgSelectedRow">
When a new record is added and activated the selection stays on the row selected before. You have to click on the new row outside of any input controls (e.g. texboxes) to make this row selected. However, when you click to any input in existing rows then that row becomes selected.
It's is a little inconsistent.
Konstantin Dikov
Telerik team
 answered on 14 Jul 2014
3 answers
454 views
  Am I missing something?  MinValue and MaxValue do not appear to be members of GridNumericColumn.  A search of the forums doesn't find much revealing either.  Is there some sort of workaround that does not involve using a Template Column?  I would prefer to use the GridNumericColumn for its DefaultInsertValue which takes a bit longer to implement with the template column.
Eyup
Telerik team
 answered on 14 Jul 2014
6 answers
212 views
hi
when the webpage is postback the treeview , never show which, node is selected before the postback the page.
how to save state tree view node selected, after postback page?
Shinu
Top achievements
Rank 2
 answered on 14 Jul 2014
7 answers
865 views
So been looking at telerik sites to but each time the page comes up as missing for passing values thru query string to radwindow.
What I need to do is this, I need to pass a value into my radwindow to fill out a checkbox list with items that are checked per what region they pick on the radgrid.  So if they pick on a region and it has stations the radwindow will open with those stations already picked in the checkboxlist.   How can I do this. 


<telerik:RadGrid ID="myRadGrid" runat="server" Width="40%" Skin="Web20" CssClass="dvGridWrapper">
           <MasterTableView AutoGenerateColumns="false" Font-Size="10" DataKeyNames="intRegionID" CommandItemDisplay="Top">
               <HeaderStyle ForeColor="White" Font-Bold="true" HorizontalAlign="Center" />
               <ItemStyle HorizontalAlign="Center"/>
               <AlternatingItemStyle BackColor="#B0C4DE"  HorizontalAlign="Center" />
                   <Columns>
                       <telerik:GridEditCommandColumn UniqueName="EditCommandColumn"></telerik:GridEditCommandColumn>
                       <telerik:GridTemplateColumn>
                           <ItemTemplate>
                               <asp:LinkButton ID="lnkAssign" runat="server" CommandArgument='<%# Bind("strRegionCode")%>' Text="Assign Teams" CommandName="Assign" OnClientClick='<%# String.Format("addAdminWin({0}, {1}); return false;", Eval("intRegionID"), 2)%>'></asp:LinkButton>
                           </ItemTemplate>
                       </telerik:GridTemplateColumn>



I am filling out hte Radwindow right now on page load but I need the items checked that actually need to be checked from the reagion that they pick.
Private Sub FIllCb()
      sql = "select t.intTeamID, t.strTeamCode + ' - ' + t.strTeamName + ' (' + r.strRegionCode + ')' from Team as t left outer join Region as r on t.intRegionID = r.intRegionID"
 
      buildDD(sql, cbTeams)
  End Sub

Marin Bratanov
Telerik team
 answered on 14 Jul 2014
5 answers
207 views
Hi,
I'm trying to populate the nestedviewtemplate in my grid..

If I use <# Eval("Code")%> in NestedViewTemplate I've got an error
<telerik:RadGrid ID="HomeRadGrid" runat="server" ClientDataSourceID="RadClientDataSource1"
             EnableEmbeddedSkins="False" AllowPaging="True" AllowSorting="True" AllowFilteringByColumn="True"
             Skin="MySkin" ShowGroupPanel="True" PageSize="10">
             <PagerStyle Mode="NextPrevAndNumeric" />
             <MasterTableView AutoGenerateColumns="False" ClientDataKeyNames="Id" HierarchyLoadMode="Client">                 
                 <NestedViewTemplate>
                     <div class="homeBackground">
                         <div style="float: left; padding-left: 10px; padding-top: 10px">
                             <asp:Image ID="ItemImage" runat="server" ImageUrl='<%# GetItemImageUrl(Container) %>'
                                 Width="150px" meta:resourcekey="ItemImageResource1" />
                         </div>
                         <div style="float: left; padding-left: 10px; width: 50%">
                             <div class="homeTitle">
                                 <asp:Label ID="CodeLabel" runat="server"></asp:Label>
                             </div>
                             <span style="color: #555555">
                                 <asp:Label ID="DescriptionLabel" runat="server"></asp:Label>
                             </span>
                             <hr class="lineSeparator" />
                             <table width="100%" class="homeInfo">
                                 <tr>
                                     <td>
                                         <strong>
                                             <asp:Label ID="SiteLabel" runat="server" meta:resourcekey="SiteLabelResource1">Site</asp:Label>:</strong>
                                         <asp:Label ID="SiteLabel" runat="server"></asp:Label>
                                     </td>
                                 </tr>
                                 <tr>
                                     <td>
                                         <strong>
                                             <asp:Label ID="PlateLabel" runat="server" meta:resourcekey="PlateLabelResource1">Plate</asp:Label>:</strong>
                                         <asp:Label ID="TargaLabel" runat="server"></asp:Label>
                                     </td>
                                 </tr>
                             </table>
                         </div>
                         <div style="float: right; padding-right: 10px; padding-left: 10px; padding-top: 10px">
                             <div style="width: 150px; height: 150px; border: solid 1px black" id='smallmap'>
                             </div>
                         </div>
                         <div style="clear: both">
                         </div>
                     </div>
                 </NestedViewTemplate>
                 <Columns>
                     <telerik:GridBoundColumn DataField="CompanyCode" HeaderText="Company Code" SortExpression="CompanyCode"
                         ShowFilterIcon="false" AutoPostBackOnFilter="True" CurrentFilterFunction="Contains"
                         UniqueName="CompanyCode" Visible="true" meta:resourcekey="GridBoundColumnResource1">
                     </telerik:GridBoundColumn>
                     <telerik:GridBoundColumn DataField="Code" HeaderText="Project" SortExpression="Code"
                         ShowFilterIcon="false" AutoPostBackOnFilter="True" CurrentFilterFunction="Contains"
                         UniqueName="CdcCode" Visible="true" meta:resourcekey="GridBoundColumnResource2">
                     </telerik:GridBoundColumn>
                     <telerik:GridBoundColumn DataField="Site" HeaderText="Site" SortExpression="Site"
                         AutoPostBackOnFilter="True" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                         ItemStyle-Width="50px" FilterControlWidth="30px" UniqueName="Site" Visible="true"
                         meta:resourcekey="GridBoundColumnResource3">
                         <ItemStyle Width="50px"></ItemStyle>
                     </telerik:GridBoundColumn>     
                     ...
                 </Columns>             
             </MasterTableView>
             <ClientSettings ReorderColumnsOnClient="false" AllowDragToGroup="True" AllowColumnsReorder="false">
                 <ClientEvents OnRowDblClick="RowDblClick" OnHierarchyExpanded="LoadSmallMap" OnHierarchyExpanding="CollapseOtherRows">
                 </ClientEvents>
                 <Selecting AllowRowSelect="true"></Selecting>
             </ClientSettings>
         </telerik:RadGrid>

   <telerik:RadClientDataSource ID="RadClientDataSource1" runat="server" AllowBatchOperations="true">
        <ClientEvents OnChange="LoadBigMap" />
        <DataSource>
            <WebServiceDataSourceSettings>
                <Select Url="load_map.asmx/GetHomeData" RequestType="Post" DataType="JSON" ContentType="application/json; charset=utf-8" />
            </WebServiceDataSourceSettings>
        </DataSource>
        <Schema DataName="d">
        </Schema>
        <Schema>
            <Model>
                <telerik:ClientDataSourceModelField FieldName="Id" DataType="Number" />
                <telerik:ClientDataSourceModelField FieldName="CompanyCode" DataType="String" />
                <telerik:ClientDataSourceModelField FieldName="Code" DataType="String" />
                <telerik:ClientDataSourceModelField FieldName="Site" DataType="String" />
...
            </Model>
        </Schema>
    </telerik:RadClientDataSource>

Thanks
Mattia
Top achievements
Rank 2
 answered on 14 Jul 2014
3 answers
287 views
Hi
I'm trying to display an image in a GridImageColumn.
I tried with
DataImageUrlFields="FieldImgUrl"
where FieldImgUrl is a field of my object (FieldImgUrl = "/PHP/icon/accept.png")
but no image is shown
<telerik:GridImageColumn HeaderText="Field1" HeaderTooltip="Field1" AllowFiltering="false"
                       DataImageUrlFields="FieldImgUrl" UniqueName="Field1" ItemStyle-Width="16px" >
                       </telerik:GridImageColumn>


But if I write directly ImageUrl = "/PHP/icon/accept.png" it works...
<telerik:GridImageColumn HeaderText="Field1" HeaderTooltip="Field1" AllowFiltering="false"
                       ImageUrl="/PHP/icon/accept.png" UniqueName="Field1" ItemStyle-Width="16px" >
                       </telerik:GridImageColumn>



Thanks


Viktor Tachev
Telerik team
 answered on 14 Jul 2014
1 answer
141 views
Hi,

is it possible to change the buttons of the Pager (in the bottom of the grid, see attached image) ?


Thank you !

Venelin
Telerik team
 answered on 14 Jul 2014
1 answer
346 views
Hai All,
I am using ajaxtoolkit’s modalpopupextender control to alert user about expiring session.what i need for every 5mins if the site is ideal it will show alert message your seesion is expering if u want to extend if it is ok then u have reset the time like that for that
i wrote my code like this.but dnt knw i am getting error in script its not wroking properly can any one tel me how to do this task

<script type="text/javascript">
            function ShowAlert() {
                $find('mpe_alert').show();
            }
            function hide() {
                $find('mpe_alert').hide();
            }
            function onOk() {
                $find('mpe_alert').hide();
                _doPostBack($find('btnOk'), '')
            }
my .aspx page
<body>
    <form id="form1" runat="server">
        <%--  <asp:ScriptManager ID="ScriptManager1" runat="server" AsyncPostBackTimeout="180" ScriptMode="Release" EnableScriptGlobalization="true" EnablePageMethods="true" >
    </asp:ScriptManager>--%>
        <telerik:RadScriptManager  runat="server" ID="RadScriptManager1" EnablePageMethods="true" />
        <telerik:RadSkinManager ID="QsfSkinManager"  runat="server" Skin="Metro" ShowChooser="false" />
   <asp:HiddenField ID="hdnSessionExpire" runat="server" />
            <cc1:ModalPopupExtender ID="mpe_alert"  runat="server" TargetControlID="hdnSessionExpire"
                PopupControlID="pnlAlert" CancelControlID="btnCancel" OkControlID="btnOk" BehaviorID="mpe_alert"  önOkScript="onOk()">
            </cc1:ModalPopupExtender>
            <asp:Panel ID="pnlAlert" runat="server" Height="100px"
                Style="display: none" Width="250px">
                <table width="100%">
                    <tr>
                        <td align="left" style="font-weight: bold; font-family: Arial">
                            <asp:Label ID="lblSessionAlert" runat="server" Text="Session Expiry Alert"></asp:Label>
                    </tr>
                </table>
                <table>
                    <tr>
                        <td colspan="2">
                            <asp:Label ID="lblMessage" runat="server" Font-Bold="true" Text="Your session is going to expire in 1 minute. Would you like to extend your session?"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <br />
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Button Text="Yes" value="Yes" runat="server" ID="btnOk" />
                        </td>
                        <td align="left">
                            <asp:Button Text="Cancel" value="No" runat="server" ID="btnCancel" />
                        </td>
                    </tr>
                </table>
            </asp:Panel>
  
        </div>
my .cs file in page load 
Session.Timeout = 5;
            int MillisecondsTimeout = (Session.Timeout * 60000) - 120000;
            string strScriptAlert = @"window.setInterval('ShowAlert()' , " + MillisecondsTimeout.ToString() + @");   ";
            ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "Alert", strScriptAlert, true);
  
            int Timeout = (Session.Timeout * 60000) - 60000;
            string strScriptHideAlert = @"window.setInterval('hide()' , " + Timeout.ToString() + @");   ";
            ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "HideAlert", strScriptHideAlert, true);
            Response.AppendHeader("Refresh", Convert.ToString((Session.Timeout * 60)) + ";URL=Login.aspx");
Genady Sergeev
Telerik team
 answered on 14 Jul 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?