Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
235 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
347 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
91 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
173 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
568 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
157 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
6 answers
738 views
Hi

I have a RadGrid being filled from an ObjectDataSource. I've enabled client side selection, and EnablePostBackOnRowClick. The RadGrid is also added to a RadAjaxManager. It is set to update a Panel on the same page that contains some Label controls. I'm handling the ItemCommand eventhandler of the RadGrid and then checking if the RowCommand == "RowClick". All this works pretty well.

However, when the update takes place, and the Label controls are filled, the RadGrid loses its selection. I'm only selecting one row at a time.

How can I have the row selection persist through the postback?



Frank
Top achievements
Rank 1
 answered on 28 Jun 2014
0 answers
132 views
 Hi
 I want the Rad Org chart  with RadToolTipManager functionality and i try sample code "http://demos.telerik.com/aspnet-ajax/orgchart/examples/applicationscenarios/integrationwithradtooltip/defaultcs.aspx" but i can't understand and above demo link using two asp,.cs file
but i want only single aspx,.cs files only  

please  help me 
NA
Top achievements
Rank 1
 asked on 28 Jun 2014
5 answers
468 views
My issue is, when binding null data from a data set to the Pivot grid.  When any of my data has a null value, my pivot grid does not display any data at all with no error.  Yet, the data set has all other not null data before binding to the grid.   Is there a way to handle nulls through any of the pivot grid's properties instead of me placing an isnull() function for all columns in SQL.  Thank you!  
Julio
Top achievements
Rank 1
 answered on 28 Jun 2014
5 answers
136 views
Hi I am using RadTileList control with DataBinding. It's working fine as long as the TilePeekTemplate item displayed on mouse over. But I need it to display on page load. How can I make this happen?




Sanjay
Top achievements
Rank 1
 answered on 27 Jun 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?