Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
172 views
Hi,
I have a radpanelBar(has some fixed height) inside a popup, and when there are more radpanelitems the radpanelitem height gets decreased and looks conjusted. 
I want to have a fixed height for RadPanelBar , so when RadPanelBar height is exceeded, it should get a scrollbar(noe it get a scroll bar only when the height is exceeded, and till the height is exceede all the radpanelItems are conjusted).

regards,
Naresh
Nikolay Tsenkov
Telerik team
 answered on 22 Oct 2010
3 answers
170 views
Hello,

I have 2 problems:

1) If you see in the image001.png, the text in column 2 is too long and comes on the second line.  Is there a possibility to cut of the text?  something like ...

2) The user can change the values of  chekboxes. (see image002.png).  Is it possible to make it read-only?

Can somebody help me out of this?

Kind Regards,
Kris
Kris
Top achievements
Rank 2
 answered on 22 Oct 2010
8 answers
92 views
When I try to close new appointment window in RadScheduler, it takes longer to close using Close/Cancel button. It is not performing any specific operation at that time..

Can we reduce this delay and close it using JS? I am using the control provided for Telerik.    
Sebastian
Telerik team
 answered on 22 Oct 2010
1 answer
352 views
Hello,

I have a grid with detail table inside it. I have check box in header column in it which provides "select all" functionality, i.e I want to provide the functionality where clicking on header check box selects all the check box in the column of detail table.
I looked at this Example in the site, but some how I was not able to get the "CheckBox1" control inside item template of the detail table. Please help. Following is the code I have in aspx side.
<telerik:RadGrid runat="server" AllowMultiRowSelection="false" AutoGenerateColumns="false"
    ID="radGridChecks" AllowSorting="true" AllowPaging="true" PageSize="7" AllowFilteringByColumn="false"
    HeaderStyle-HorizontalAlign="Center" GroupingSettings-CaseSensitive="false" AllowAutomaticDeletes="false"
    AllowAutomaticInserts="false" AllowAutomaticUpdates="false" OnItemDataBound="OnRadGridChecks_ItemDataBound"
    OnPageIndexChanged="OnRadGridChecks_PageIndexChanged" OnNeedDataSource="OnRadGridCheck_NeedDataSource"
    OnDetailTableDataBind="OnRadGridCheck_OnDetailTableDataBind" OnItemCommand="OnRadGridCheck_OnItemCommand">
    <MasterTableView CommandItemDisplay="Top" EnableColumnsViewState="false" AllowAutomaticDeletes="false"
        AllowAutomaticInserts="false" AllowAutomaticUpdates="false" Name="ChecksByRepGrid"
        DataKeyNames="RepCode" ItemStyle-HorizontalAlign="Center">
        <CommandItemSettings ShowAddNewRecordButton="false" />
        <Columns>
            <telerik:GridBoundColumn DataField="RepName" HeaderText="Name" />
            <telerik:GridBoundColumn DataField="Count" HeaderText="# of Checks" />
        </Columns>
        <DetailTables>
            <telerik:GridTableView align="right" DataKeyNames="Code" runat="server" Name="ChecksByRepChildGrid"
                AutoGenerateColumns="false" AllowFilteringByColumn="false">
                <ParentTableRelation>
                    <telerik:GridRelationFields DetailKeyField="Code" MasterKeyField="RepCode" />
                </ParentTableRelation>
                <Columns>
                    <telerik:GridBoundColumn DataField="ClientName" HeaderText="Client Name">
                        <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Status" HeaderText="Status">
                        <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="CheckNumber" HeaderText="Check #">
                        <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                     
                    <telerik:GridBoundColumn DataField="PayableTo" HeaderText="Payable To">
                        <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ForwardedTo" HeaderText="Forwarded To">
                        <HeaderStyle HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" />
                    </telerik:GridBoundColumn>
                    <telerik:GridTemplateColumn UniqueName="CheckBoxTemplateColumn">
                            <HeaderTemplate>
                             <asp:CheckBox id="headerChkbox" OnCheckedChanged="ToggleSelectedState" AutoPostBack="True" runat="server"></asp:CheckBox>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:CheckBox id="CheckBox1" OnCheckedChanged="ToggleRowSelection" AutoPostBack="True" runat="server"></asp:CheckBox>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" />
                            <ItemStyle HorizontalAlign="Center" />
                        </telerik:GridTemplateColumn>
                    
                </Columns>
            </telerik:GridTableView>
        </DetailTables>
    </MasterTableView>
 
</telerik:RadGrid>

Thanks
Utkarsh
http://www.utkarshonline.com
Princy
Top achievements
Rank 2
 answered on 22 Oct 2010
1 answer
117 views

 

 

Hello ,

I want to use RadAjaxLoadingPanel on masterpage  for RadTreeView .
when we click on the RadTreeView  node a loding panel should be display.

 

 

<

 

telerik:RadPanelBar ID="rpbMenu" runat="server" Width="100%" ExpandMode="FullExpandedItem"

 

 

CollapseAnimation-Type="None" AllowCollapseAllItems="false">

 

 

<Items>

 

 

<telerik:RadPanelItem Text="Full Menu" Expanded="true" Value="ids">

 

 

<ItemTemplate>

 

 

<telerik:RadTreeView ID="tvwMenu" runat="server" DataSourceID="smdsMenu" DataNavigateUrlField="Url"

 

 

DataTextField="Description" DataValueField="Title" >

 

 

</telerik:RadTreeView>

 

 

</ItemTemplate>

 

 

</telerik:RadPanelItem>

 

 

</Items>

 

 

</telerik:RadPanelBar>

 

 

</telerik:RadSlidingPane>

Below are the implimentation

 

 

<telerik:RadAjaxManager ID="rajxMgrManageEmployee" runat="server">

 

 

 

 

 

<AjaxSettings>

 

 

 

 

 

<telerik:AjaxSetting AjaxControlID="rpbMenu">

 

 

 

 

 

<UpdatedControls>

 

 

 

 

 

<telerik:AjaxUpdatedControl ControlID="pnlContentID" LoadingPanelID="rajxLdpanManageEmployee" />

 

 

 

 

 

</UpdatedControls>

 

 

 

 

 

</telerik:AjaxSetting>

 

 

 

 

 

</AjaxSettings>

 

 

 

 

 

</telerik:RadAjaxManager>

 

 

 

 

 

<telerik:RadAjaxLoadingPanel ID="rajxLdpanManageEmployee" runat="server" Height="25px"

 

 

 

 

 

Width="25px" HorizontalAlign="Center">

 

 

 

 

 

</telerik:RadAjaxLoadingPanel>


Please Help.

Thanx

 

Abdul Shaquoor

Sebastian
Telerik team
 answered on 22 Oct 2010
1 answer
193 views
Hi,

I am usin Rad scheduler in my application. I am using Advanced forms feature for editing and creating new appointments, however i have some questions mentioned below.

1. How to  make timelines show 15 minutes. PLease check the screen attached.

2. I am saving values n multiple tables after Save button is clicked on New or Edit form. What is the best way to do teh validations on this form?

Any help in this regards will be appreciable as this is very urgent for me.

Regards,
Sachin
Peter
Telerik team
 answered on 22 Oct 2010
1 answer
90 views
The Window css seems to be downloading BOTH the gif and png sprites....if they both contain the same elements, that seems a bit redundant (and perhaps why the window seems to "pop" in)?

So should the icon be it's own image?  Therefore it won't be downloaded if we don't even use the default window icon?

(validated this on the demo site)

Steve
Georgi Tunev
Telerik team
 answered on 22 Oct 2010
1 answer
98 views
Hello,
           It may be a simple question. I want to create a grid control and add columns like the following

 

<telerik:RadGrid ID="grid1" runat="server" GridLines="None">

 

 

<columns>

 

 

</columns>

 

 

</telerik:RadGrid>

I dont want to use datasource associated with the grid control. Is there a simple way to add columns to the grid??. I want to add rows dynamically like we add ListItem in list control. I went through the Property Builder. I dont see an option to add a column. I see an option to add bound column, button column etc. But I dont want any of that.

Thanks,
Bharani

 

Shinu
Top achievements
Rank 2
 answered on 22 Oct 2010
3 answers
64 views
Hi,

I cannot seem to get this, I have a multipage with a label in it that dynamically populates a list, I have set scroll to auto, but no matter what I have tried I cannot seem to style the scroll bar, the design has a custom looking scroll bar so I need to make the scroll bar look as close to that as possible. Is there a way to style the scroll bar in this control?
Yana
Telerik team
 answered on 22 Oct 2010
1 answer
169 views
the methods for never fire on this sample code at http://www.telerik.com/help/aspnet-ajax/grdtotalsingridfooters.html under

Client-side calculation of totals for a template column in firefox 3.6.10 but works fine in IE 8 how do I adapt this telerik supplied sample code so that it works on both of them?

<script type="text/javascript">
  var initialValue = 0.0;
   function update(footerBox, changedBox)
   {
   var footerBoxControl = $get(footerBox);
   var changedBoxControl = $get(changedBox);
   var tempValue = footerBoxControl.value - initialValue;
   footerBoxControl.value = parseFloat(tempValue) + parseFloat(changedBoxControl.value);
   }
   function getInitialValue(changedBox)
   {
   var changedBoxControl= document.getElementById(changedBox);
   initialValue = parseFloat(changedBoxControl.value);
   }
 </script>

<form id="form1"  runat="server">
       <telerik:RadGrid
        ShowFooter= "true"
        ID= "RadGrid1" runat="server" DataSourceID="AccessDataSource1" GridLines="None"
        OnPreRender= "RadGrid1_PreRender" OnItemDataBound="RadGrid1_ItemDataBound">
           <MasterTableView AutoGenerateColumns="False" DataKeyNames="OrderID"
           DataSourceID= "AccessDataSource1">
               <Columns>
                   <telerik:GridBoundColumn DataField="OrderID" DataType="System.Int32"
                   HeaderText= "OrderID"
                       ReadOnly= "True"
                       SortExpression= "OrderID" UniqueName="OrderID">
                   </telerik:GridBoundColumn>
                   <telerik:GridTemplateColumn UniqueName="Template1">
                   <ItemTemplate>
<asp:TextBox runat="server" ID="TextBox1" Text='<% #Eval("Freight") %>'></asp:TextBox>
                   </ItemTemplate>
                   <FooterTemplate>
                   <asp:TextBox runat="Server" ID="TextBox2">
                   </asp:TextBox>
                   </FooterTemplate>
                   </telerik:GridTemplateColumn>
               </Columns>
               <ExpandCollapseColumn Visible="False">
                   <HeaderStyle Width="19px" />
               </ExpandCollapseColumn>
               <RowIndicatorColumn Visible="False">
                   <HeaderStyle Width="20px" />
               </RowIndicatorColumn>
           </MasterTableView>
       </telerik:RadGrid><asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/Nwind.mdb"
           SelectCommand= "SELECT TOP 10 [OrderID], [Freight] FROM [Orders]"></asp:AccessDataSource>
   </form>


public partial class _Default : System.Web.UI.Page
{
   double sum = 0;
   string clientID;
 
 
   protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
   {
        if (e.Item is GridDataItem)
       {
           GridDataItem dataItem = (GridDataItem)e.Item;
           sum+=double.Parse((dataItem[ "Template1"].FindControl("TextBox1") as TextBox).Text);
       }
        else if (e.Item is GridFooterItem)
       {
           GridFooterItem footer = (GridFooterItem)e.Item;
           (footer[ "Template1"].FindControl("TextBox2") as TextBox).Text = sum.ToString();
           clientID = (footer["Template1"].FindControl("TextBox2") as TextBox).ClientID;
       }
   }
 
 
 
   protected void RadGrid1_PreRender(object sender, EventArgs e)
   {
       foreach (GridDataItem dataItem in RadGrid1.MasterTableView.Items)
       {
           (dataItem[ "Template1"].FindControl("TextBox1") as TextBox).Attributes.Add("onblur", "update('" + clientID + "'" + "," + "'" + (dataItem["Template1"].FindControl( "TextBox1") as TextBox).ClientID + "')");
           (dataItem[ "Template1"].FindControl("TextBox1") as TextBox).Attributes.Add("onfocus", "getInitialValue('" + (dataItem["Template1"].FindControl( "TextBox1") as TextBox).ClientID + "')");
       }
   }
}
Veli
Telerik team
 answered on 22 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?