Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
144 views

Good morning,

Is there anyway to change the tooltip of the filter icon of a radgrid column, so that it displays the current filter (i.e. 'contains', 'starts with', ...)?

thanks a lot,

Gaetan

Gaetan
Top achievements
Rank 1
 answered on 30 Nov 2015
0 answers
62 views

hexadecimal value 0x2D error when you export to PDF. Content is pasted in RadEditor.

Any warning message when you pasted content that is not compliant?

RJ
Top achievements
Rank 1
 asked on 30 Nov 2015
2 answers
158 views

Hi,

 I use Autocompletebox in my asp.net website for load postal code from by sql servr's database. But it take a lot of time (15 second.. to long). And It seem that, if I understand, autocomplete box load ALL my postal code from database and after that, use the string research...

My question is here, did it is possible to call a function sql server with, on parameter, the text witch is written in the Autocompletebox

I've tried a code like : 

        protected void RadAutoCompleteBox1_TextChanged(object sender, AutoCompleteTextEventArgs e)
        {
            string recherche = RadAutoCompleteBox1.Text;
            SqlDataSource2.SelectCommand = "select CodePostal,NomCommune from GetVilleByCpTelerik2(" + recherche + ") order by CodePostal OFFSET 10 ROWS FETCH NEXT 10 ROWS ONLY";
        }

 

But it doesn't work. I have error message like "The object reference is not definied"

 

Can I have help please ?

 

Ps : Sorry for my English level

Thibault
Top achievements
Rank 1
 answered on 30 Nov 2015
3 answers
144 views

Why is the dateinput rendering as type="text".

Better would be type="date" to let correct keyboard popup on iOs

Marc

Viktor Tachev
Telerik team
 answered on 30 Nov 2015
8 answers
477 views

I have a RadGrid and a corresponding edit form, then I have a template column with a button like this:

<telerik:GridTemplateColumn UniqueName="EditRow" AllowFiltering="False"
    AllowSorting="False" FilterControlAltText="Filter EditRow column">
    <ItemTemplate>
        <asp:ImageButton ID="EditLink" runat="server" ImageUrl="~/IMAGES/Edit16.png" ToolTip="Edit" />
    </ItemTemplate>
    <HeaderStyle Width="32px" />
</telerik:GridTemplateColumn>

Then I bind a custom handler in the code behind:

ImageButton editLink = (ImageButton)e.Item.FindControl("EditLink");
editLink.CommandArgument = item.GetDataKeyValue("AncilliaryID").ToString() + "," + item.GetDataKeyValue("ID").ToString();
editLink.Command += new CommandEventHandler(EditCommand);

The grid has 10 pages of data in it, 50 rows per page, and this all works perfectly on the first nine pages.  However clicking the edit button on the 10th page leads to this error:

[ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index]
   System.Collections.ArrayList.get_Item(Int32 index) +10705936
   Telerik.Web.UI.GridEditableItem.GetDataKeyValue(String keyName) +48
   Telerik.Web.UI.RadGrid.DescribeProperties(IScriptDescriptor descriptor) +5760
   ...

This error occurs even if I comment out all the event binding code.  Something is happening in the RadGrid code for the last page of the grid only.  What sort of thing could be causing this?  I am assuming there is something basic I have overlooked in the properties or the binding of the grid that would only cause an issue on the last (non-full) page of the displayed grid but I have no idea how I can work out what that would be.

Kostadin
Telerik team
 answered on 30 Nov 2015
1 answer
188 views

Hello,

 

I am working with the rad search box, and my code on the view page looks like:

<telerik:RadSearchBox ID="rsbCode" runat="server"
                          EmptyMessage="Search Options" Skin="Office2010Silver"
                          Width="460" DropDownSettings-Height="300" 
                          DataSourceID="SqlDataSource1" 
                          DataTextField="Code" 
                          DataValueField="Code" >
    </telerik:RadSearchBox>

 The data source I am pulling from has a list of employees each with a code number. Each employee has a code number, but different employees can have the same code number. This causes an issues with the search box, as the filter will show multiple values. 

For example, if 3 different employees has the code number 2100. As I type '21' on the RadSearchBox, the 2100 will appear 3 times. How can I make the filter only show distinct values, such that 2100 will only appear once?

 

Thanks very much for your help

Nencho
Telerik team
 answered on 27 Nov 2015
3 answers
145 views

I have a grid in batch edit mode using batcheditcommand to process all updates.

How do I know there are not anymore changes to come if I edit multiple rows?

 

Gary

Viktor Tachev
Telerik team
 answered on 27 Nov 2015
7 answers
2.1K+ views
Hi,

Using v2009.3.1208.35, I'm trying to append a custom CSS class to each row of a grid depending on some databound condition. For example: appending either "active", "disabled" or "pending" depending on the "state" enum.

I tried the following code in the ItemDataBound event, but that replaces the CSS class instead of appending it.
switch (state) { 
   case StateType.Active: 
      e.Item.CssClass += " active"
      break
 
   case StateType.Disabled: 
      e.Item.CssClass += " disabled"
      break
 
   case StateType.Pending: 
      e.Item.CssClass += " pending"
      break

The rgRow and rgAltRow classes are lost from the rendered HTML result.

What I really want is this :
<tr id="..." class="rgRow active"
  <td>row 1 (active css class)</td> 
</tr> 
<tr id="..." class="rgAltRow active"
  <td>row 2 (active css class)</td> 
</tr> 
<tr id="..." class="rgRow disabled"
  <td>row 3 (disabled css class)</td> 
</tr> 
<tr id="..." class="rgAltRow pending"
  <td>row 4 (pending css class)</td> 
</tr> 

How can I achieve this result? It's NOT a custom skin, just a css class that will be added on top of the skin.

The only another similar thread I've found was this one, but the ApplyStylesOnClient properties mentioned is no longer supported it seems so I cannot try it.

Thanks for your help,

dstj.
Eyup
Telerik team
 answered on 27 Nov 2015
6 answers
891 views

I have a grid on the bottom of a page with an AjaxLoadingPanel.  In the grid edit form template, I have a RadComboBox and in the grid's ItemDataBound even, I fill the combo box from a service call with a list of users (and if editing a record, pre-select the user).

However, when I add a new record, the AjaxSettings fire and the grid refreshes and the add/edit template is displayed.  Except no data is bound to the combo box.  If I remove the AjaxSettings, the whole page is refreshed when I add a new item, and data IS bound to the combo box.

Is there a trick to using the combo box in an edit form template with the loading panel?

Maria Ilieva
Telerik team
 answered on 27 Nov 2015
1 answer
157 views

We are using telerik Q3 2015.We had implemented rad lightbox (responsive) in our application. The requirement is to have the image on one side of the popup and on the right side we need to have a table that can contain many rows.

The problem that i am facing is that no controls are rendering inside the rad lightbox. I Would like to know on the following .

1.  Is it possible to render image and controls inside rad light box(image on one side of the popup and on the right side we need to have a table that can contain many rows.) ?

2. why the controls even though put inside  <telerik:RadLightBoxItem> , are not rendering inside the popup

 Please see the code used:

<telerik:RadLightBox DataImageUrlField="ImageUrl" runat="server" ID="RadLightBoxImageDetails" Modal="true" Width="1000px" Height="200px">
        <ClientSettings>            
            <ClientEvents OnLoad="example.radLightBoxLoad" OnShowed="SetCenter()" />
        </ClientSettings>
        <Items>
            <telerik:RadLightBoxItem>
                <ItemTemplate>
                     <telerik:RadTextBox ID="RadTextBox1" runat="server" CssClass="demo">
                </telerik:RadTextBox>            
        </ItemTemplate>                
            </telerik:RadLightBoxItem>
        </Items>
    </telerik:RadLightBox>

 

Any help will be greatly appreciated. 

 

Kostadin
Telerik team
 answered on 27 Nov 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?