Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
148 views
Hi, i was wondering if it were possible to explicitly apply a skin to the pager style.

Basically my issue is, i want to use the web blue skin for the pager style, but if i apply that skin to my radgrid it overrides various styles in my item template and it doesn't display as i would like.

Is there a way for me to accomplish ?

Alan
Alan T
Top achievements
Rank 1
 answered on 28 May 2010
22 answers
525 views
I have a RadGrid with a RadTextBox that gets spell-checked by RadSpell (read that 3 times fast)

i get the box to come up, and can change the misspelled word, but it doesn't update in the text box until i click on the box, or give it focus.  if i never give the changed box focus, the field doesn't update

this happens in IE and firefox
here is part of my code
<EditItemTemplate> 
  <telerik:RadTextBox Label="Note*" Rows="2" Width="400px" TextMode="MultiLine" runat="server" ID="Note" Text='<%# Bind("Note") %>' /> 
  <asp:RequiredFieldValidator ControlToValidate="Note" ErrorMessage="This field is required" runat="server" />               
  <telerik:RadSpell ControlToCheck="Note" ID="SpellNote" runat="server" ButtonType="LinkButton" /> 
</EditItemTemplate> 

Dimo
Telerik team
 answered on 28 May 2010
2 answers
192 views
I am trying to use a RadWindow as a replacement for radalert.  I have created a RadWindow and put a literal control on it.  I set the literal's text property to a string of HTML amounting to a message.  I have the RadWindow set to Autosize.  When the window is displayed, the width is set so that the text message line wraps after every word.  Is there a way to have the RadWindow width set so that the text only wraps when a real line break (<br/>) is detected.  The radalert works this way, so it seems that it should be possible.

Thanks
Fred Wesson
Top achievements
Rank 1
 answered on 28 May 2010
1 answer
213 views
Hi,

I'm using Q1 2010 and would like to save the HTML from a radeditor into a SQL table (using VB.Net), however all the samples i found refer to radeditor.html which does not exist. Does anybody have a sample on how to get the HTML source?
Rumen
Telerik team
 answered on 28 May 2010
1 answer
96 views
Hi!

how to open a radwindow from radconfirmation's ok button click..
plz help me....

thanks in advance...
Shinu
Top achievements
Rank 2
 answered on 28 May 2010
2 answers
162 views
Hi telerik

I am trying to persisting grid (save grid layout), with following example

http://demos.telerik.com/aspnet-ajax/grid/examples/programming/savinggridsettingsonperuserbasis/defaultcs.aspx

I have copied the same GridSettingsPersister.vb as have in the above link example

filtering, sorting, column moving everthing is working fine but after button click of savegrid or loadgrid i m getting error like this

Could not load file or assembly 'Telerik.Web.UI, Version=2009.3.1314.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

 

please check my below code and error and let me know what am i doing wrong.

version: RadControls for ASP.NET AJAX Q3 2009

aspx


Users:

<asp:dropdownlist id="cmbMode" runat="server" width="200" >

 

 

<asp:ListItem Value="user1">user 1</asp:ListItem>

 

 

<asp:ListItem Value="user2">user 2</asp:ListItem>

 

 

<asp:ListItem Value="user3">user 3</asp:ListItem>

 

 

</asp:dropdownlist>

 


<telerik:RadGrid AutoGenerateColumns="False" ID="RadGrid1" ClientSettings-Scrolling-ScrollHeight="500" 
 
AllowFilteringByColumn="True" ClientSettings-Scrolling-UseStaticHeaders="true" EnableLinqExpressions="false" 
 
ClientSettings-Scrolling-AllowScroll="true" ClientSettings-Selecting-AllowRowSelect="true" 
 
AllowSorting="True" runat="server">  
 
<GroupingSettings CaseSensitive="false" /> 
 
<MasterTableView TableLayout="Fixed" ClientDataKeyNames="KEYID">  
 
<Columns> 
 
<telerik:GridNumericColumn Aggregate="Count" HeaderText="Employee Number" DataField="KEYID" 
 
UniqueName="KEYID" SortExpression="KEYID" FilterControlWidth="30px" AutoPostBackOnFilter="true" 
 
Visible="false" CurrentFilterFunction="EqualTo" ShowFilterIcon="false" /> 
 
   
 
 
<telerik:GridBoundColumn HeaderText="Employee Name" DataField="Name" UniqueName="Name" 
 
SortExpression="Name" HeaderStyle-Width="300px" FilterControlWidth="140px" AutoPostBackOnFilter="true" 
 
CurrentFilterFunction="contains" ShowFilterIcon="false" /> 
 
   
 
 
<telerik:GridBoundColumn HeaderText="SSN" DataField="EMP_SSN" HeaderStyle-Width="205px" 
 
UniqueName="SSN" SortExpression="EMP_SSN" FilterControlWidth="90px" AutoPostBackOnFilter="true" 
 
CurrentFilterFunction="contains" ShowFilterIcon="false" /> 
 
   
 
   
 
</Columns> 
 
</MasterTableView> 
 

<

 

ClientSettings AllowColumnsReorder="true" ReorderColumnsOnClient="true">

 

 

<Resizing AllowRowResize="True" EnableRealTimeResize="True" ResizeGridOnColumnResize="True"

 

 

AllowColumnResize="True"></Resizing>

 

 

<ClientEvents OnRowSelected="RowSelected" />

 

 

</ClientSettings>

 

 
</telerik:RadGrid> 
 
 
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ></asp:SqlDataSource> 
 
   
 
<asp:Button runat="server" OnClick="SaveGrid" ID="btnSaveGrid" Text="SAVE GRID" /> 
 
<asp:Button runat="server" ID="btnLoadGrid" OnClick="LoadGrid" Text="LOAD GRID" /> 
 
 

codebehind

 

 
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles   
form1.Load  
SetSource()
End Sub 
Protected Sub SaveGrid(ByVal sender As Object, ByVal e As EventArgs)
Dim user As String = cmbMode.SelectedValue
Dim SavePersister As New GridSettingsPersister(RadGrid1)  
Session(user) = SavePersister.SaveSettings()
End Sub
  
Protected Sub LoadGrid(ByVal sender As Object, ByVal e As EventArgs)
Dim user As String = cmbMode.SelectedValue
Dim LoadPersister As New GridSettingsPersister(RadGrid1)
If Not Session(user) Is Nothing Then
Dim settings As String = DirectCast(Session(user), String)
LoadPersister.LoadSettings(settings)
End If
End Sub

Protected Sub SetSource()
SqlDataSource1.ConnectionString =   
ConfigurationManager.AppSettings.Item("ConnectString")
SqlDataSource1.SelectCommand = "spFilterEmployee"
SqlDataSource1.SelectCommandType =   
SqlDataSourceCommandType.StoredProcedure
SqlDataSource1.SelectParameters.Clear()
SqlDataSource1.SelectParameters.Add("Mode", cmbMode.SelectedIndex)
SqlDataSource1.SelectParameters.Add("gtxtEnhancedSQL", "1=1")
SqlDataSource1.SelectParameters.Add("Term", "0")
SqlDataSource1.SelectParameters.Add("strAdditionalCriteria", "1=1")
SqlDataSource1.SelectParameters.Add("NUMERICEMPNBR", "Y")
sqlDataSource1.SelectParameters.Add("EMPVALIDATION", "N")
RadGrid1.DataSourceID = "SqlDataSource1"</P>  
End Sub

waiting for your repy
Thanks
Kiran pandit
Kiran
Top achievements
Rank 1
 answered on 28 May 2010
1 answer
127 views
I have rad editor & call out extender in a page.
The call out extender direction is not showing properly when the button is clicked.
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head runat="server"> 
    <title></title> 
</head> 
<body> 
    <form id="form1" runat="server"> 
    <div> 
        <cc1:ToolkitScriptManager runat="server" ID="test"> 
        </cc1:ToolkitScriptManager> 
        <table> 
            <tr> 
            </tr> 
            <tr> 
                <td> 
                    <asp:RequiredFieldValidator ID="RFV_rdDescription" runat="server" ErrorMessage="Please enter Description" 
                        ControlToValidate="rdDescription" Display="None" SetFocusOnError="True" ValidationGroup="MyGen"></asp:RequiredFieldValidator> 
                    <cc1:ValidatorCalloutExtender ID="VCE_RFV_rdDescription" runat="server" PopupPosition="TopLeft" 
                        TargetControlID="RFV_rdDescription"> 
                    </cc1:ValidatorCalloutExtender> 
                    <telerik:RadEditor ID="rdDescription" runat="server" Width="98%"> 
                        <ImageManager ViewPaths="~/UserData/RadEditor/Images/GenericContent" DeletePaths="~/UserData/RadEditor/Images/GenericContent" 
                            MaxUploadFileSize="1053000" UploadPaths="~/UserData/RadEditor/Images/GenericContent" /> 
                        <MediaManager DeletePaths="~/UserData/RadEditor/Documents/GenericContent" MaxUploadFileSize="1053000" 
                            ViewPaths="~/UserData/RadEditor/Documents/GenericContent" UploadPaths="~/UserData/RadEditor/Documents/GenericContent" /> 
                        <TemplateManager DeletePaths="~/UserData/RadEditor/Documents/GenericContent" MaxUploadFileSize="1053000" 
                            ViewPaths="~/UserData/RadEditor/Documents/GenericContent" UploadPaths="~/UserData/RadEditor/Documents/GenericContent" /> 
                        <DocumentManager DeletePaths="~/UserData/RadEditor/Documents/GenericContent" MaxUploadFileSize="1053000" 
                            ViewPaths="~/UserData/RadEditor/Documents/GenericContent" UploadPaths="~/UserData/RadEditor/Documents/GenericContent" /> 
                        <FlashManager UploadPaths="~/UserData/RadEditor/Documents/GenericContent" MaxUploadFileSize="1053000" 
                            DeletePaths="~/UserData/RadEditor/Documents/GenericContent" ViewPaths="~/UserData/RadEditor/Documents/GenericContent" /> 
                        <ImageManager ViewPaths="~/UserData/RadEditor/Documents/GenericContent" DeletePaths="~/UserData/RadEditor/Documents/GenericContent" 
                            MaxUploadFileSize="1053000" UploadPaths="~/UserData/RadEditor/Documents/GenericContent" /> 
                        <Content></Content> 
                    </telerik:RadEditor> 
                </td> 
            </tr> 
            <tr> 
                <td align="right"> 
                    <asp:Button ID="Button1" ValidationGroup="MyGen" runat="server" Text="Button" /> 
                </td> 
            </tr> 
        </table> 
    </div> 
    </form> 
</body> 
</html> 
 
Rad editor version: 2010.1.519.35
Ajax toolkit version:3.540112.2
Rumen
Telerik team
 answered on 28 May 2010
2 answers
129 views
Hello guys.

What I need is only to change the name of fields that is showed in filter.

For example: I want that the field's name be the same of header text of the grid, instead of DataField column property.

How can I do this?

Regards.
Silvio Silva Junior
Top achievements
Rank 2
 answered on 28 May 2010
2 answers
156 views
Hello guys.

I am doing a search with filter in:
http://demos.telerik.com/aspnet-ajax/filter/examples/integration/defaultcs.aspx?product=filter

I'm trying to use this:
AND --> ShipName --> Contains : "vins" without quotes.

For this search I have no results, but, if I try with "Vins" I got 5 results.

I need a case insensitive filter, so, what can I do?

Regards.



Silvio Silva Junior
Top achievements
Rank 2
 answered on 28 May 2010
2 answers
146 views
I have a listview. Inside every item I have a RadToolbar that, when clicked, shows a hidden panel inside the item.
When clicking a button in that hidden panel, and after modifying some data in the database, I need to fire a rebind, but when i execute listview1.Rebind() (in server-side) I get "Exception has been thrown by the target of an invocation".

Any ideas?
Thanks a lot!


Jorge
Top achievements
Rank 1
 answered on 28 May 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?