Telerik Forums
UI for ASP.NET AJAX Forum
10 answers
371 views

Using the scheduler control (Q3 2008), I'm having trouble getting it to expand or contract to fit the screen when the user resizes the browser (in both IE7 and FF3).  I built a sample page with only a RadScheduler control on it, like this:

<telerik:RadScheduler   
    runat="server"   
    ID="RadScheduler1"   
    OverflowBehavior="Expand"    
    Width="100%">  
</telerik:RadScheduler> 

The Scheduler fills the width of the screen, but if you resize the browser, you have to refresh the page in order to get the scheduler to resize.  After experimenting a bit, I found that I could get the scheduler to resize with javascript:

<telerik:RadScriptBlock runat="server" ID="RadScriptBlock1">   
    <script type="text/javascript">  
        window.onresize = function() {  
            var scheduler = $find('<%= RadScheduler1.ClientID %>');  
            scheduler.repaint();  
        }        
    </script>    
</telerik:RadScriptBlock>  

This works until you try to put the scheduler inside a table... after that, it no longer resizes properly.  The masterpage layout on our site uses tables, and we don't have resizing problems with any other types of controls.  It doesn't seem like I should have to jump through the javascript hoops to get the scheduler to resize.  Any ideas? 
Plamen
Telerik team
 answered on 30 Jun 2014
7 answers
519 views
I set this to false in my web.config and haven't noticed any issues.  Is there any reason that Telerik sets this to true by default?
Petar
Telerik team
 answered on 30 Jun 2014
2 answers
283 views
Hello,

I want to configure the calendar, so I can show the days of the month on one single row, I tried the following settings:

<telerik:RadCalendar ID="RadCalendar" runat="server" HideNavigationControls="true" ShowNavigationButtons="false" ShowRowHeaders="false" ShowColumnHeaders="false" ShowFastNavigationButtons="false" SingleViewColumns="31" SingleViewRows="1" FocusedDate="6/1/2014" Skin="MetroTouch" TitleAlign="Left"></telerik:RadCalendar>


These settings display the days for the month "6" in single row, but it only display 24 days not all days, how can I display all days of the month in one single row.

Thanks in advance.
Bary


Bary
Top achievements
Rank 1
 answered on 30 Jun 2014
1 answer
141 views
Hello, 


I know that the radgrid is 508 compliant, but the filtering columns on the radgird might be not 508 compliant. Is that correct? if so, how can I resolve this issue.  I tested it in IE browser using Web Accessibility toolbar from paciello group. They resulted there are no label inputs for the radgrid.

Thanks,
Chi Ming 
Radoslav
Telerik team
 answered on 30 Jun 2014
3 answers
106 views
Hi,

The following example on a RadGrid:
<ClientEvents OnColumnClick="function(){alert(1)}" />

On a iPad with IOS 6, we don't get the alert at all.

Regards
Caesar
Marin
Telerik team
 answered on 30 Jun 2014
1 answer
269 views
Hi,

I just want to bind a simple boolean to a checkbox, but it isn't working.
All tries to get the bool into the grid will be answered with a NullException ... but why??

A first chance exception of type 'System.NullReferenceException' occurred in App_Web_patoy0yq.dll


    <telerik:RadGrid ID="RadGrid1" runat="server" Culture="de-DE" ShowStatusBar="True" AllowPaging="True" PageSize="5" Width="800px"
        DataKeyValues="Id, ModuleName, IsActive, NavigationPath" OnItemCommand="RadGrid1_ItemCommand" OnNeedDataSource="RadGrid1_NeedDataSource" OnItemDataBound="RadGrid1_ItemDataBound">
        <MasterTableView Width="100%" AutoGenerateColumns="False" CommandItemDisplay="Top" DataKeyNames="Id, ModuleName, IsActive, NavigationPath" EditMode="PopUp"
            NoDetailRecordsText="Keine Detaileinträge." NoMasterRecordsText="Keine Einträge." RetrieveNullAsDBNull="False">
            <Columns>

                <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn" ItemStyle-Width="30px">
                    <ItemStyle Width="30px"></ItemStyle>
                </telerik:GridEditCommandColumn>

                <telerik:GridBoundColumn DataField="Id" DataType="System.Guid" HeaderText="Modul Id" ReadOnly="true"
                    SortExpression="ModuleId" UniqueName="ModuleId">
                    <ColumnValidationSettings>
                        <ModelErrorMessage Text=""></ModelErrorMessage>
                    </ColumnValidationSettings>
                </telerik:GridBoundColumn>

                <telerik:GridBoundColumn DataField="ModuleName" DataType="System.String" HeaderText="Modul Name"
                    SortExpression="ModuleName" UniqueName="ModuleName">
                    <ColumnValidationSettings>
                        <ModelErrorMessage Text=""></ModelErrorMessage>
                    </ColumnValidationSettings>
                </telerik:GridBoundColumn>

                <%--<telerik:GridCheckBoxColumn DataField="IsActive" HeaderText="Modul aktiviert"
                    SortExpression="ModuleIsActive" UniqueName="ModuleIsActive">
                </telerik:GridCheckBoxColumn>--%>      <%-- Tried this, but no values (always FALSE) --%>

                <telerik:GridTemplateColumn HeaderText="IsActive" UniqueName="TemplateColumn">
                    <EditItemTemplate>
                        <asp:CheckBox ID="editChkBox" runat="server"
                            Checked='<%# Bind("IsActive") %>'></asp:CheckBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:CheckBox ID="defaultChkBox" runat="server"
                            Checked='<%# Eval("IsActive") %>'></asp:CheckBox>    <%-- << NullException here! --%>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>

                <telerik:GridBoundColumn DataField="NavigationPath" DataType="System.String" HeaderText="Modul Navigationspfad"
                    SortExpression="ModuleNavigationPath" UniqueName="ModuleNavigationPath">
                    <ColumnValidationSettings>
                        <ModelErrorMessage Text=""></ModelErrorMessage>
                    </ColumnValidationSettings>
                </telerik:GridBoundColumn>

                <telerik:GridButtonColumn Text="Delete" CommandName="Delete" ButtonType="ImageButton" ItemStyle-Width="30px">
                    <ItemStyle Width="30px"></ItemStyle>
                </telerik:GridButtonColumn>

            </Columns>

        </MasterTableView>

        <ClientSettings AllowKeyboardNavigation="true" EnablePostBackOnRowClick="true">
            <Selecting AllowRowSelect="true"></Selecting>
        </ClientSettings>
    </telerik:RadGrid>


I just want to get a bool .... !!! ??????
Princy
Top achievements
Rank 2
 answered on 30 Jun 2014
1 answer
246 views
Hello,
please help me to resolve this issue.
As Shinu suggested to use this logic for OnBlur event:

<telerik:RadTextBox ID="ShrtgLicAreaTextBox" runat="server" TabIndex="2" Width="300px" CssClass="textbox" MaxLength="40" Height="15px" onKeyUp="Count(this,40)" onChange="Count(this,40)" ClientEvents-OnBlur="changeTextBoxColorOnBlur" >

javascript:

function changeTextBoxColorOnBlur(sender, args) {
sender.addCssClass("txtblur-style");


}

CSS:

.RadComboBox_Default .rcbFocused .rcbReadOnly .rcbInput, .riSingle .riTextBox[type="text"]:focus
{
background-color:Red !important;
}
.txtblur-style
{
background-color:Blue !important;
}

But when I move away from control using tab key the color not changing to blue as it supposed to do.

RadTextBox is located inside RadPanelBar:

<telerik:RadPanelBar ID="formPanel2" runat="server" Width="98%" ExpandMode="MultipleExpandedItems" OnClientItemClicking="onPanelItemClicking" Skin="Telerik" >
<Items>
<telerik:RadPanelItem Expanded="true" Text="REQUEST FORM" runat="server" Selected="true" Font-Bold="true" Font-Size ="13" Font-Names ="Verdana">
<Items>
<telerik:RadPanelItem Value="infoPanel" runat="server" Height="75">
<ItemTemplate>
<div style="padding: 5px;background-color :#FAFCFE;">
<telerik:RadTextBox ID="NameTextBox" runat="server" TabIndex="-1" Width="300px" CssClass="textbox" ReadOnly="true" Height="15px" >


<table width="98%" >
<tr>
<td style="width:24%;">
<label class="style">
6. SHORTAGE LICENSE AREA:
</label>
</td>
<td >
<telerik:RadTextBox ID="ShrtgLicAreaTextBox" runat="server" TabIndex="2" Width="300px" CssClass="textbox" MaxLength="40" Height="15px" onKeyUp="Count(this,40)" onChange="Count(this,40)" FocusedStyle-BackColor="#D4DEEC" ClientEvents-OnBlur="changeTextBoxColorOnBlur" >
</telerik:RadTextBox>
<asp:Image ID="ShrtgLicErrImage" runat="server" Width="14px" Height="14px" ImageUrl="~/Image/error-icon.jpg" ImageAlign="Middle" Visible="false" />
</td>

</tr>
</table>

Please help...
Vitaly  
Shinu
Top achievements
Rank 2
 answered on 30 Jun 2014
4 answers
356 views

Sir,
<

telerik:RadAjaxManager ID="RadAjaxManager1" EnableAJAX="true" runat="server">

<AjaxSettings>

<telerik:AjaxSetting AjaxControlID="GridCustomFilter">

<UpdatedControls>

<telerik:AjaxUpdatedControl ControlID="GridCustomFilter" />

</UpdatedControls>

</telerik:AjaxSetting>

</AjaxSettings>

</telerik:RadAjaxManager>

<

telerik:RadGrid ID="GridCustomFilter" runat="server" GridLines="None" AutoGenerateColumns="False"

AllowAutomaticDeletes="true" AllowAutomaticInserts="true" AllowAutomaticUpdates="true"

CssClass="gridnew" Skin="Vista">

<ClientSettings><Selecting AllowRowSelect="true" /></ClientSettings>

<MasterTableView EditMode="InPlace" EnableViewState="true">

<EditFormSettings>

<PopUpSettings ScrollBars="None" />

<EditColumn UniqueName="EditCommandColumn1">

</EditColumn>

</EditFormSettings>

<ExpandCollapseColumn Resizable="False" Visible="False">

<HeaderStyle Width="20px" />

</ExpandCollapseColumn>

<RowIndicatorColumn Visible="False">

<HeaderStyle Width="20px" />

</RowIndicatorColumn>

<Columns>

<telerik:GridTemplateColumn UniqueName="TemplateColumnItem">

<ItemTemplate>

<asp:Label ID="lbloandor" runat="server"></asp:Label>

</ItemTemplate>

</telerik:GridTemplateColumn>

<telerik:GridTemplateColumn UniqueName="TemplateColumnItem" HeaderText="FilterOn">

<ItemTemplate>

<asp:Label ID="lblField" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"GridItem")%>'></asp:Label>

</ItemTemplate>

</telerik:GridTemplateColumn>

</Columns>

</MasterTableView>

</telerik:RadGrid>
Thanks

Princy
Top achievements
Rank 2
 answered on 30 Jun 2014
1 answer
97 views
Hello,

I'm working on a project that has a hirarchial RadGrid.
I need Paging option only in the hirarchial DetailTable.

how can I do that

Hope for your solution.

Thanks, Daniel.


My VB.NET code for the DetailTable:
Dim tableViewOrders = New GridTableView(RadGrid1)
RadGrid1.MasterTableView.DetailTables.Add(tableViewOrders)

Princy
Top achievements
Rank 2
 answered on 30 Jun 2014
3 answers
177 views
Hi
I have looked at the docs and found the example a bit obscure, and have searched the forum posts,
and I am still struggling to come up with the right VB code to read the text box values.
Here is how they are nested:
<telerik:RadPanelBar ID="RadPanelBar1" Runat="server">  
  <Items> 
    <telerik:RadPanelItem runat="server" Text="ContactDetails">  
       <Items> 
          <telerik:RadPanelItem runat="server" Text="">  
             <ItemTemplate> 
                <telerik:RadTextBox ID="RadTextBoxEmail" Runat="server">  
                </telerik:RadTextBox> 
 
                (more text boxes) 
            </ItemTemplate>
          </telerik:RadPanelItem>
       </Items>   
    </telerik:RadPanelItem>
  (more RadPanelItems)
  </Items>
</telerik:RadPanelBar) 
So exactly how do I get the content of the TextBox into my code
so that I can save it to a database etc.?

Thanks for all your great support guys

Clive
Ana
Top achievements
Rank 1
 answered on 30 Jun 2014
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?