Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
95 views
your example code works fine in i.e but does not work in non i.e like Safari 5.0, Firefox

The probelm is in the following function,  document.getElementById(buttonID) not being supported by Safari or Firefox browser

because document.getElementById(buttonID) does not return object.

What would be the work around for it in Safari?

 

 

 

function

SpellCheckClosed(sender, args) {

 

if

(IsChecked) {

 

 

 

//trigger submit from the update/insert button in the grid

 

 

 

//the id of the update or insert button is extracted from a hidden field

 

  

 

 

var buttonID = document.getElementById('<%=HiddenField1.ClientID %>'

).value;

 

  

document.getElementById(buttonID).click();  /// not being supported by non i.e like Safari and firefox

 IsChecked = 

false ;

 

 

  

}

 

}

Thanks

 

 

Rumen
Telerik team
 answered on 25 Apr 2011
1 answer
99 views
Hi team,
My radgrid has its auto genereate column set to true. And I have a serial number column in it.
I want to hide filter for serial number column only and want rest of columns to retain filters. Please help in acheiving this features.
I am attaching gridview for your reference.
<telerik:RadGrid ID="gvPreview" AutoGenerateColumns="true" AllowPaging="True" PageSize="10"
                             runat="server" GridLines="vertical" Width="99%" AllowSorting="true" OnPreRender="gvPreview_PreRender"
                            Font-Bold="true" EnableViewState="true"
                             EnableTheming="false" Height="380px" AllowFilteringByColumn="true" OnPageIndexChanged="gvPreview_PageIndexChanged"
                             OnNeedDataSource="gvPreview_NeedDataSource" OnPageSizeChanged="gvPreview_PageSizeChanged">
                             <ExportSettings HideStructureColumns="true" IgnorePaging="true" OpenInNewWindow="true"
                                 ExportOnlyData="true">
                             </ExportSettings>
                             <GroupingSettings CaseSensitive="false" />
                           <ItemStyle CssClass="grid-content-Maintext" HorizontalAlign="Left" ForeColor="Black"
                     VerticalAlign="Middle" BackColor="#f4fdff"></ItemStyle>
                 <AlternatingItemStyle CssClass="grid-content-Alttext" HorizontalAlign="Left" ForeColor="Black"
                     VerticalAlign="Top" BackColor="White" />
                 <HeaderStyle CssClass="background_dbf7ff lineHeight_25px" Font-Bold="True"
                     HorizontalAlign="Left" Wrap="true" ForeColor="Black" VerticalAlign="Middle"
                     BackColor="#f4fdff"  Font-Names="Arial" Font-Size="11px" />
                 <PagerStyle CssClass="background_dbf7ff lineHeight_25px" />
                 <SelectedItemStyle CssClass="background_dbf7ff lineHeight_25px" />
                 <GroupHeaderItemStyle CssClass="background_dbf7ff lineHeight_25px" />
                 <ActiveItemStyle CssClass="background_dbf7ff lineHeight_25px" />
                 <CommandItemStyle CssClass="background_dbf7ff lineHeight_25px" />
                 <SortingSettings EnableSkinSortStyles="False" />
                 <FilterItemStyle BackColor="#DBF7FF"  BorderStyle="Solid" />
                 <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true" />  
 
 
 
                             <MasterTableView Width="100%" CommandItemDisplay="Top" CommandItemStyle-HorizontalAlign="Right">
                                 <PagerStyle Mode="NextPrevAndNumeric" />
                                 <CommandItemSettings ShowExportToExcelButton="true" ShowAddNewRecordButton="false"
                                     ShowRefreshButton="false" />
                             </MasterTableView>
                             <ClientSettings AllowDragToGroup="true" AllowColumnsReorder="true" ReorderColumnsOnClient="true"
                                 ColumnsReorderMethod="Reorder">
                                  
                                 <Animation AllowColumnReorderAnimation="true" AllowColumnRevertAnimation="true" />
                                 <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True">
                                 </Scrolling>
                             </ClientSettings>
                             <PagerStyle AlwaysVisible="true"></PagerStyle>
                         </telerik:RadGrid>


Thanks,
Abhishek
Pavlina
Telerik team
 answered on 25 Apr 2011
1 answer
97 views
Using the tabstrip, I'm wondering whether clicking on a different tab can cause postback?

The datasource is our site map.

The reason is on one tab if the user has partially entered something we want to save this into session variable and load it on the new page.

Ideally clicking any tab would cause a postback, i would save their data, determine where they want to go, possibly do more validation and then redirect to the new tab/page.

thx
Cori
Top achievements
Rank 2
 answered on 25 Apr 2011
1 answer
110 views
I'm trying to generate images at run time and display them in the header row.  I'm trying to do this programatically in the code behind.  I can only seem to display text in the header row.  Both the number of rows and the number of columns are determined at run time. Is there a way I can insert binary image data directly into the header?
Vasil
Telerik team
 answered on 25 Apr 2011
1 answer
98 views

I have a RadGrid, very similar in structure to this one:

http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/comboingrid/defaultcs.aspx?product=combobox

With the grid above, if you click on Edit you can see the status bar showing loading and the grid is always visible.

However, on my RadGrid whenever I click on Add, Edit or Update (when in edit mode) the grid disappears momentarily and then re-appears. The functions are all correct, it goes in and out of edit mode correctly and saves to the database where appropriate, it is just a bit disconcerting for the user that the grid disappears between functions.

Any advice would be greatly appreciated!

Vasil
Telerik team
 answered on 25 Apr 2011
11 answers
583 views
I have Rad Grid with template column(and an image inside), and i want that the width of this column be constant(in pixels).
I add this code-
protected void rgBase_PreRender(object sender, EventArgs e)
     {
         foreach (GridColumn col in rgBase.MasterTableView.RenderColumns)
         {
             if (col.UniqueName == "img_add")
             {
                 col.ItemStyle.Width = Unit.Pixel(20);
                 col.HeaderStyle.Width = Unit.Pixel(20);
             }
 
         }
     }

And it`s show fine on first page load, i also have grid width="100%", and when i resizing window my column "img_add" changing width,  i want that it`s width will be constant and on resizing window. How can i do this?

Andrey
Pavlina
Telerik team
 answered on 25 Apr 2011
3 answers
59 views
Hi,

I'm using a radcombobox within a edititemtemplate and I would like to get the selected item on the client side but no matter which technique I use I always recieve "Object expected error" or "Microsoft JScript runtime error: radcombobox1 is undefined". I'm new
to rad controls I've spent all day on this , I must be doing something wrong. Can you help?

Thanks,
Shinu
Top achievements
Rank 2
 answered on 25 Apr 2011
5 answers
101 views
I have link buttons at

 

 

 

 

<CommandItemTemplate>

 

 

 

 

 

 

 

 

<table width="35%">

 

 

 

 

 

 

 

 

<tr>

 

 

 

 

 

 

 

 

<td><asp:LinkButton ID="ButtonEditAll" runat="server" Text="Edit All"

 

 

 

CommandName="EditAll" /></td>

 

 

 

 

 

 

 

 

<td><asp:LinkButton ID="ButtonUpdateAll" runat="server" Text="Update All"

 

 

 

CommandName="UpdateAll" /></td>

 

 

 

 

 

 

 

 

<td>

 

 

 

 

 

 

 

 

<asp:LinkButton ID="DownloadPDF" runat="server" Text="Download"

 

 

 

CommandName="ExportToPdf" /></td>

 

 

 

 

 

 

 

 

</tr>

 

 

 

 

 

 

 

 

</table>

 

 

 

 

 

 

 

 

</CommandItemTemplate>

 

 

 

 

and I waht to check spelling after clicking this button. But I don't know how to get these buttons client ids.  Please give me a help.

Thanks

Mira
Telerik team
 answered on 25 Apr 2011
1 answer
69 views

hi,

i want to use images from web in my rad editor. Currently Rad editor provides image manager functionality which allows us to use images from local system only. i want to know is there any method by which i can use web images (by giving web URL of images). Due to business requirement i can't use HTML mode of the RAD Editor, so can't inject images through HTML.

Please suggest a solution.

Raghav

Rumen
Telerik team
 answered on 25 Apr 2011
2 answers
51 views
Hi -

Im new to telerik controls.
Im working with the Grid control and have a question regarding master/detail.

There is a black arrow > in each master record line when running the Grid.
Clicking on master records with no details in database displays the "no record" message.
If there was a detail record in the database, it would have been displayed. Working ok.

But is is possible to hide the > arrow on master records that dont have any detail records present?

Second, Hiow do I enable images to replace "edit" and "Delete" text. ?

Please advice.

kind r

Bjørn.
Bjørn-Tore
Top achievements
Rank 1
 answered on 25 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?