Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
341 views
Hello,

I have a RadSlider which is hidden when the page initially loads. Later it is loaded onto the page using Ajax and that time there is some display issues with the skin. I have experienced the same issue with few other controls also. Is this a bug?

Thank you,
Merlin.
Slav
Telerik team
 answered on 30 Apr 2013
1 answer
105 views
I recently upgraded to 2013.1.403.40. Since then, a page has stopped filtering a Grid correctly.
  • The Grid has EnableViewState = False.
  • The Gird has GridBoundColumns containing RadComboBoxes that are used to filter the Grid when the RadComboBox's SelectedIndexChanged() fires.

This was working OK before the upgrade.

I've observed that once the RadComboBox is changed to filter the Grid, instead of the SelectedIndexChanged event firing and then the Grid's OnNeedDataSource event, the opposite occurs. So the RadComboBox value needed to filter the Grid isn't there.

I know from documentation that "If ViewState optimization is enabled, RadGrid will fire NeedDataSource and will bind after each post back to restore its items....RadGrid and its TableView manage the state of the following features while the EnableViewState property is set to False: ...Filter expressions(but not the filter value in the input control)..."

Note that I use a local class to store the value of the RadComboBox, which is then accessed to filter the grid in OnNeedDataSource .

I guess I'm wondering if this is a new bug, or one that was fixed and now my code is wrong.

Thanks for any info,
Robert



Kostadin
Telerik team
 answered on 30 Apr 2013
1 answer
52 views
Hello

My question is, the value of CaptchaImage.Text does not change all the way through the page life cycle from Init to PreRender, yet the value it contains is different to that rendered in the CaptchaImage when the browser loads the page. Am I right in thinking that the raw text stored in the Text must then be an 'encrypted' version of the code that the Captcha really displays and against which it will validate on postback? Presumably this means that the CaptchaImage.Text property is not of any use in trying to store or control the code programmatically?

Thankyou for the confirmation of this.

Slav
Telerik team
 answered on 30 Apr 2013
1 answer
436 views
I know there are a number of threads with this issue, I just wanted to post my specific implementation and see if there is a solution to the corner I seem to be in.

Here is my combobox declaration:
<telerik:RadComboBox runat="server" ID="rcbAssetAssoc" ZIndex="100100" Enabled="false" AllowCustomText="false" MarkFirstMatch="true" Width="100%" Height="190px" EnableLoadOnDemand="true" HighlightTemplatedItems="true" OnItemDataBound="rcbAssetAssoc_ItemDataBound">
<HeaderTemplate>
<ul>
<li class="multiColBoxItem">Serial #</li>
<li class="multiColBoxItem">Asset #</li>
<li class="multiColBoxItem">Machine Name</li>
</ul>
</HeaderTemplate>
<ItemTemplate>
<ul>
<li class="multiColBoxItem"><%# Eval("SerialNumber") %></li>
<li class="multiColBoxItem"><%# Eval("AssetNumber") %></li>
<li class="multiColBoxItem"><%# Eval("MachineName") %></li>
</ul>
</ItemTemplate>
<FooterTemplate>
<asp:Panel runat="server" CssClass="multiColBoxFooter">
<asp:Label runat="server" ID="lblAssetAssocCount" SkinID="atBlueForm" />
</asp:Panel>
</FooterTemplate>
</telerik:RadComboBox>

I have read the solution to clear the selection as:

rcbAssetAssoc.Text = "";
rcbAssetAssoc.ClearSelection();

and that if the combobox is read-only the AllowCustomText="true" must be set to enable the clear to work.

However, if I set the AllowCustomText="true" that creates a bug in my code because I don't want the user typing in their own values.

Am I missing something?

At the end of the day I want a templated dropdown that forces the user to select one of the options with auto-complete style functionality AND have the box clear ready for the next selection.
Plamen
Telerik team
 answered on 30 Apr 2013
1 answer
121 views
After upgrade library to 2013.1.417.40 I noticed problem with data binding in RadGrid for column with properties Visible="false".

<MasterTableView DataKeyNames="UserAuthorizationID"><br>            <Columns><br>                <telerik:GridBoundColumn DataField="UserAuthorizationID" <br>                    HeaderText="UserAuthorizationID" SortExpression="UserAuthorizationID"<br>                    UniqueName="UserAuthorizationID" Visible="False"><br>                </telerik:GridBoundColumn>

When I'm trying to read on postback (when event occured) the text properites is equal to nbsp;

The interesting thing is that when I bind the data in OnItemDataBound event or column has property Visible="true", it works correctly.

In previous control release it worked correctly.
Shinu
Top achievements
Rank 2
 answered on 30 Apr 2013
6 answers
1.7K+ views
HI,

Am not getting the Horizontal scrollbar for Radgrid .
Width of the all columns is greater than the width of the grid.
in UI only few columns are coming in the grid & Horizontal scroll bar is not coming .

below is my Code in UI:

 

<P><FONT color=#008000 size=2><FONT color=#008000 size=2><asp:Panel 
ID="Panel1" ScrollBars="None" runat="server" Width="100%" Height="100%" ></P>
<P></P>
<P><telerik:RadGrid ID="RadGrid1" AllowSorting="true" 
EnableEmbeddedSkins="False" ShowStatusBar="true"</P>
<P>ShowFooter="false" AllowPaging="true" EnableViewState="true" 
AutoGenerateColumns="False"</P>
<P>OnNeedDataSource="RadGrid1_NeedDataSource" ShowHeader="true" 
CellSpacing="1"</P>
<P>runat="server" OnDataBound="RadGrid1_DataBound"></P>
<P><PagerStyle Mode="NextPrevNumericAndAdvanced" AlwaysVisible="true" 
/></P>
<P><MasterTableView AllowPaging="true" AllowSorting="true" 
AutoGenerateColumns="false"</P>
<P>EditMode="InPlace" TableLayout="Auto" ></P>
<P><Columns> </P>
<P><telerik:GridTemplateColumn HeaderText="Action" </P>
<P>ItemStyle-CssClass="centerAlign" HeaderStyle-Width="10%" 
ItemStyle-Width="10%" ></P>
<P><ItemTemplate></P>
<P><asp:LinkButton ID="btnEdit" runat="server" </P>
<P>Text="Edit" CssClass="buttonLink" /></P>
<P></ItemTemplate></P>
<P><HeaderTemplate></P>
<P><asp:Button ID="btnDeleteAll" runat="server" Text="Delete All" 
OnClick="btnDeleteAll_Click" Visible="false" /></P>
<P><asp:Label ID="lblAction" runat="server" Text="Action" 
Visible="true"/></P>
<P></HeaderTemplate></P>
<P></telerik:GridTemplateColumn></P>
<P><telerik:GridTemplateColumn HeaderText="Change" HeaderStyle-Width="10%" 
ItemStyle-Width="10%" </P>
<P>ItemStyle-CssClass="centerAlign"></P>
<P><ItemTemplate></P>
<P><%# Eval("EVAL1")%></P>
<P></ItemTemplate></P>
<P></telerik:GridTemplateColumn></P>
<P><telerik:GridBoundColumn DataField="DataField1" HeaderText="HeaderText1" 
HeaderStyle-Width="12%" ItemStyle-Width="12%" ItemStyle-CssClass="centerAlign" 
/></P>
<P><telerik:GridBoundColumn DataField="DataField2" HeaderText="HeaderText2" 
ItemStyle-Width="12%" HeaderStyle-Width="12%" ItemStyle-CssClass="leftAlign" 
/></P>
<P><telerik:GridBoundColumn DataField="DataField3" HeaderText="HeaderText3" 
ItemStyle-Width="16%" HeaderStyle-Width="16%" ItemStyle-CssClass="leftAlign" 
/></P>
<P><telerik:GridBoundColumn DataField="DataField4" HeaderText="HeaderText4" 
ItemStyle-Width="20%" HeaderStyle-Width="20%" ItemStyle-CssClass="leftAlign" 
/></P>
<P><telerik:GridBoundColumn DataField="DataField5" HeaderText="HeaderText5" 
ItemStyle-Width="15%" HeaderStyle-Width="15%" ItemStyle-CssClass="leftAlign" 
/></P>
<P><telerik:GridBoundColumn DataField="DataField6" HeaderText="HeaderText6" 
ItemStyle-Width="15%" HeaderStyle-Width="15%" ItemStyle-CssClass="leftAlign" 
/></P>
<P><telerik:GridBoundColumn DataField="DataField7" HeaderText="HeaderText7" 
ItemStyle-Width="15%" HeaderStyle-Width="15%" ItemStyle-CssClass="leftAlign" 
/></P>
<P><telerik:GridBoundColumn DataField="DataField8" 
DataFormatString="{0:0,0.0000}" HeaderText="HeaderText8" HeaderStyle-Width="15%" 
ItemStyle-Width="15%" ItemStyle-CssClass="rightAlign" /></P>
<P><telerik:GridBoundColumn DataField="DataField9" 
DataFormatString="{0:0,0.00}" ItemStyle-Width="15%" HeaderStyle-Width="15%" 
HeaderText="HeaderText9" ItemStyle-CssClass="rightAlign" /></P>
<P><telerik:GridTemplateColumn HeaderText="HeaderText10" 
ItemStyle-Width="15%" HeaderStyle-Width="15%" </P>
<P>ItemStyle-CssClass="centerAlign"></P>
<P><ItemTemplate></P>
<P><asp:ImageButton ID="imgComments"</P>
<P>ImageAlign="AbsMiddle" CssClass="handCursor"</P>
<P>runat="server" Visible="false" /></P>
<P><span ID="span1" class="popupExtender" runat="server"></P>
<P><%# Eval("Eval2") %></P>
<P></span></P>
<P></ItemTemplate></P>
<P></telerik:GridTemplateColumn></P>
<P></Columns></P>
<P><NoRecordsTemplate></P>
<P>No Data Found</P>
<P></NoRecordsTemplate></P>
<P></MasterTableView></P>
<P><ClientSettings></P>
<P><Scrolling AllowScroll="true" SaveScrollPosition="false" 
ScrollHeight="163px" UseStaticHeaders="true" /></P>
<P><Selecting AllowRowSelect="true" /></P>
<P></ClientSettings></P>
<P></telerik:RadGrid></P>
<P></P>
<P></asp:Panel></P></FONT></FONT>

 

 

 


please help me ASAP.

Pavlina
Telerik team
 answered on 30 Apr 2013
1 answer
762 views
HI folks,

I've got myself a RadTextBox where the users are creating new records where one of the values is an SSN. From one of the examples I got the validation to make sure it's in the right format and that's working as expected. I'd like to add to the behavior so that it doesn't require the user to enter the dashes. In a best case scenario, the user could enter the dashes, or not, and the system will still accept the value.

This is whut I've got now:
<telerik:RadTextBox ID="txtSSN" runat="server" EmptyMessage="Enter valid SSN..." Width="250px"></telerik:RadTextBox>
          <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ValidationGroup="AddPatient" ErrorMessage="* Required Field" ControlToValidate="txtSSN" /><br />    
          <asp:RegularExpressionValidator id="ssnValidator" runat="server" Display="Dynamic" ErrorMessage="Invalid SSN format"
          ValidationExpression="\d{3}-\d{2}-\d{4}" ControlToValidate="txtSSN">

Thanks for the help.

MArk B.
Vasil
Telerik team
 answered on 30 Apr 2013
2 answers
110 views
   var tabStrip = $find("<%= RadTabStrip1.ClientID %>");
    alert(tabStrip);

I am using Rad Tab Strip in my page. i want to get tabstrip object at javascript like coding above..
but it shows null in alert. how to resolve it?
aditya pratap
Top achievements
Rank 2
 answered on 30 Apr 2013
1 answer
107 views
Hi,

Is there a way to add a seperator inside RibbonBarMenuItem for the RibbonBar?

Thanks,
Bilal
Kate
Telerik team
 answered on 30 Apr 2013
4 answers
232 views
Hi,

I'm hoping someone can explain how to do what seems like a relatively straightforward task.  

I'm using radgrid to display a list of users bound to an Entitydatasource control .  To insert or edit the users I am using a FormTemplate for the edit/insert.

One of the fields for the user data is gender.  Rather than create a lookup table for this I wanted to create a combobox containing only the values (Not Selected, Male, Female).   The default value displayed on the combo-box for an insert should be Not Selected.  The default value
for an edit should be the underlying value from the db that has previously been selected.

If I bind the combo directly to the field I am given all the values that are currently in the table for that field (ie. Male, Male, Female, Not Selected).

Instead of this I want a combobox with only the above values, while it is also bound to the underlying entitydatasource and thus can have its selectedvalue set.

I've been through as many posts and articles as I can find that seem to be relevant but I still don't seem to be solving the problem some examples below.

http://www.telerik.com/help/aspnet-ajax/grid-with-combobox.html
http://www.telerik.com/help/aspnet-ajax/grid-operations-with-dropdownlist-in-edititemtemplate.html

If I implement the recommendation from the above article I do end up with a combo-box limited to the selected values but as it is not bound to the database I cannot retrieve the correct value on edit nor persist any selected values back the database using EF. 

It seems I'm missing something obvious here so please feel free to point it out to me as any help on this would be welcome.




Antonio Stoilkov
Telerik team
 answered on 30 Apr 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?