Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
247 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
121 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
101 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
248 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
226 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
343 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
90 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
168 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
6 answers
546 views
Hi,

I am
using a RadGrid in my project and have the following code:

<body dir="rtl">

RadGrid1.MasterTableView.Dir = GridTableTextDirection.RTL


I am experiencing the following problems:

1. Pressing right click on the grid's header cell, context menu is shown on the side.
(For all headers cells it's shown in the same position - in the side, instead of showing below each header cell).
 Please see number 1 circled, in the image attached.


2. The list of columns in the context menu is aligned to the right but the check box
is still in the left side. I want the checkboxes to appear also at right. Please
see number 2 circled, in the image attached. 

I appreciate your help.

Thanks,

Daniel.
Daniel
Top achievements
Rank 1
 answered on 29 Jun 2014
2 answers
147 views
Hi,
I have created a xml file and i need to bind the data from xml file to the combobox.

Here is my xml file data

<?xml version="1.0" encoding="UTF-8"?>
<UserBranches>
  <User Name="Nasik">
    <Branch BranchID="7" BranchName="Al Khuwdh Branch" />
    <Branch BranchID="8" BranchName="Al Seeb Branch" />
    <Branch BranchID="10" BranchName="Ghobra Branch" />
    <Branch BranchID="1" BranchName="Main Branch" />
    <Branch BranchID="3" BranchName="Muttrah Branch" />
    <Branch BranchID="5" BranchName="Nizwa Branch" />
    <Branch BranchID="9" BranchName="Qurm Branch" />
    <Branch BranchID="2" BranchName="Ruwi Branch" />
    <Branch BranchID="6" BranchName="Salalah Branch" />
    <Branch BranchID="4" BranchName="Sohar Branch" />
    <Branch BranchID="11" BranchName="Sur Branch" />
  </User>
  <User Name="admin">
    <Branch BranchID="1" BranchName="Main Branch" />
  </User>
  <User Name="Jamshed">
    <Branch BranchID="3" BranchName="Muttrah Branch" />
    <Branch BranchID="5" BranchName="Nizwa Branch" />
    <Branch BranchID="9" BranchName="Qurm Branch" />
    <Branch BranchID="2" BranchName="Ruwi Branch" />
    <Branch BranchID="6" BranchName="Salalah Branch" />
    <Branch BranchID="4" BranchName="Sohar Branch" />
    <Branch BranchID="11" BranchName="Sur Branch" />
  </User>
  <User Name="Nabhan">
    <Branch BranchID="7" BranchName="Al Khuwdh Branch" />
    <Branch BranchID="8" BranchName="Al Seeb Branch" />
    <Branch BranchID="10" BranchName="Ghobra Branch" />
    <Branch BranchID="1" BranchName="Main Branch" />
    <Branch BranchID="3" BranchName="Muttrah Branch" />
    <Branch BranchID="5" BranchName="Nizwa Branch" />
    <Branch BranchID="9" BranchName="Qurm Branch" />
    <Branch BranchID="2" BranchName="Ruwi Branch" />
    <Branch BranchID="6" BranchName="Salalah Branch" />
    <Branch BranchID="4" BranchName="Sohar Branch" />
    <Branch BranchID="11" BranchName="Sur Branch" />
  </User>
  <User Name="Mohammed">
    <Branch BranchID="7" BranchName="Al Khuwdh Branch" />
    <Branch BranchID="8" BranchName="Al Seeb Branch" />
    <Branch BranchID="1" BranchName="Main Branch" />
    <Branch BranchID="9" BranchName="Qurm Branch" />
    <Branch BranchID="6" BranchName="Salalah Branch" />
    <Branch BranchID="4" BranchName="Sohar Branch" />
    <Branch BranchID="11" BranchName="Sur Branch" />
  </User>
</UserBranches>

when i enter 'admin' in textbox i need to load branch under user 'admin'


Thanks,
Mohammed


Mohammed
Top achievements
Rank 1
 answered on 29 Jun 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?