Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
160 views
Hi

As I can add css to my page with EnableEmbeddedBaseStylesheet and EnableEmbeddedSkins disabled. 
i did this in my page have this:

<telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server">
     <StyleSheets>
     <telerik:StyleSheetReference  Path="../Vista/FormDecorator.Vista.css"/>
     <telerik:StyleSheetReference Path="../Vista/ToolTip.Vista.css" />
     </StyleSheets>
  </telerik:RadStyleSheetManager>

and my web.config have this:

<add key="Telerik.Web.UI.StyleSheetFolders" value="~/Vista"/>
<add key="Telerik.EnableEmbeddedSkins" value="false" />
<add key="Telerik.EnableEmbeddedBaseStylesheet" value="false" />

and nothing that could be happening or that I need to add
thank you very much beforehand 
Kate
Telerik team
 answered on 28 May 2012
2 answers
69 views
Hi there.

Could someone please give me a pointer as to how to display the column filters only if the number of rows INITIALLY returned by a grid is greater than x?

I say "initially" for a reason. Let's say x above is 20. If the grid initially returns 30 rows the filters will appear. But if I filter the grid so that only  5 rows come back based on my filter expression then the grid needs to know this is 5 out of 30 rows so it still needs to show the filters. I.e. It's the 30 that is important here, not the 5.

I'm assuming I will use the onDataBound event. But I dont know how to get the number of rows returned. And I assume there is a "total" variable I can tap into that is the number of rows regardless of any filter applied?

Thanks in advance.

Chris
Chris
Top achievements
Rank 1
 answered on 28 May 2012
8 answers
391 views
Hello,
    I am attempting to implement batch updating using controls that are located within the EditItemTemplate of a GridTemplate Column.  I am currently using a OnPreRender event to set all datagrid columns to edit mode.  The idea is the user should then be able to select values in a radcombobox and check box located in a GridTemplate column for each entry in the grid.  After the users has made their edits to multiple rows in the grid they should be able to hit a single button to process all updates.  I am attempting to use an approach similar to what is described in this article however I have been having difficulties with my OnItemCommand event as I have been unable to retrieve the values the radcombo box and check box in my EditItemTemplate have been set to.  
    Below is what I am attempting to do currently.  Also I would like to remove the "update" and "cancel" links from the EditItemTemplate rather then set the text of the link to nothing in a OnItemCreated event as I am doing currently.  Thanks in advance for helping out a Telerik beginner.

<

 

telerik:RadGrid ID="gridTestGrid" runat="server" AllowMultiRowEdit="True"

 

OnNeedDataSource

 

="gridTestGrid_DataSource"

 

OnItemDataBound

 

="gridTestGrid_ItemDataBound" OnPreRender="gridTestGrid_PreRender" OnItemCreated="gridTestGrid_ItemCreated" OnItemCommand="gridTestGrid_ItemCommand"

 

AutoGenerateColumns

 

="False" GridLines="Horizontal">

 

<

 

MasterTableView AutoGenerateColumns="False" CommandItemDisplay="TopAndBottom" DataKeyNames="TestGridID">

 

<

 

CommandItemTemplate>

 

<

 

asp:Button ID="btnUpdate" runat="server" Text="Update Changes" />&nbsp;&nbsp;

 

</

 

CommandItemTemplate>

 

<

 

RowIndicatorColumn>

 

<

 

HeaderStyle Width="20px"></HeaderStyle>

 

</

 

RowIndicatorColumn>

 

<

 

ExpandCollapseColumn>

 

<

 

HeaderStyle Width="20px"></HeaderStyle>

 

</

 

ExpandCollapseColumn>

 

<

 

Columns>

 

......Some Other Columns .....

<

 

telerik:GridTemplateColumn HeaderText="Facility" Visible="false"

 

UniqueName

 

="rcbColumn">

 

<

 

ItemTemplate>

 

</

 

ItemTemplate>

 

<

 

EditItemTemplate>

 

<

 

telerik:RadComboBox ID="rcbFacility" runat="server" AllowCustomText="true" MarkFirstMatch="true" Width="300px" AppendDataBoundItems="true"></telerik:RadComboBox> &nbsp&nbsp&nbsp Send to IT?: <asp:CheckBox ID="ckBox" runat="server" Checked="false" />

 

</

 

EditItemTemplate>

 

</

 

telerik:GridTemplateColumn>

 

</

 

Columns>

 

</

 

MasterTableView>

 

protected

 

void gridTestGrid_ItemCreated(object source, Telerik.Web.UI.GridItemEventArgs e)

 

{

if

 

(e.Item is GridEditableItem && e.Item.IsInEditMode)

 

{

LinkButton

 

updateButton = (LinkButton)e.Item.FindControl("UpdateButton");

 

updateButton.Text =

"";

 

LinkButton

 

cancelButton = (LinkButton)e.Item.FindControl("CancelButton");

 

cancelButton.Text =

"";

 

}

}

protected

 

void gridTestGrid_PreRender(object source, EventArgs e)

 

{

foreach

 

(GridDataItem item in gridTestGrid.Items)

 

{

item.Edit =

true;

 

gridTestGrid.Rebind();

}

}

protected

 

void gridTestGrid_ItemCommand(object source, GridCommandEventArgs e)

 

{

Hashtable

 

newValues = new Hashtable();

 

foreach

 

(GridEditableItem editedItem in gridTestGrid.Items)

 

{

e.Item.OwnerTableView.ExtractValuesFromItem(newValues, editedItem);

RadComboBox

 

combo = ((RadComboBox)editedItem["rcbColumn"].FindControl("rcbFacility"));

 

if

 

(combo != null)

 

{

string

 

selected = combo.SelectedItem.ToString();

 

}

}

}

Shinu
Top achievements
Rank 2
 answered on 28 May 2012
0 answers
122 views
hi all,
   I have rad grid in my page. The page is designed with Rad splitter and rad pane. I enabled paging for the grid. Now my requirement is that the grid should be 100% height so that my pager should always display at the bottom of the page. For this i tried the following options

Option 1: Set height property of the grid to 100%
   This option perfectly worked in the IE 8. But this is not worked in the Firefox

Option 2: Created on css class for the grid and apply the css class. The following is the css class

        .grid
        {
            height:auto !important;
            height:100%;
            min-height:250px;
        }
But this not helped

Option 3: Created css class for  the pager and applied. The following is the css class
        .pagerPosition
        {
            position:absolute;
            bottom:10px;
            text-align:right;
 
        }
This helps some what like the pager moved to the bottom but some spacing difference in different browser.

Can anyone helps to work around for the problem?
Akhil Raj
Top achievements
Rank 1
 asked on 28 May 2012
2 answers
522 views
Hi,

I have a Radgrid with filters. it won't filter low case charactors even if I used Contains context filter. But If typed Upper case and low case charactors as exactly same as the data value then it filters data properly. I am really appreciated if someone can tell me how can I remove upper case filters and set Contains filter as default. Thank you.

Pri
PINCO
Top achievements
Rank 1
 answered on 28 May 2012
2 answers
122 views
i have a gridhtmleditorcolumn in a grid. when entering edit mode on an insert, the size of the editor is much larger than i desire. however, i see no properties of the column which would allow me to control it. is it possible to set specific sizes for this control in the edit form?
tony
Top achievements
Rank 1
 answered on 27 May 2012
4 answers
369 views
Hello,

I am trying to build a Radgrid based on this example:
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/editondblclick/defaultcs.aspx

It works fine when I set EditMode to PopUp or  EditForms, but when I try to set it to InPlace I get the following error after a double click on a row:

Specified argument was out of the range of valid values.
Parameter name: index

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: index

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[ArgumentOutOfRangeException: Specified argument was out of the range of valid values. Parameter name: index] System.Web.UI.ControlCollection.get_Item(Int32 index) +8673582 Telerik.Web.UI.GridTextBoxColumnEditor.LoadControlsFromContainer() +67 Telerik.Web.UI.GridColumnEditorBase.InitializeFromControl(Control containerControl) +50 Telerik.Web.UI.GridDataItem.InitializeEditorInCell(IGridEditableColumn column) +157 Telerik.Web.UI.GridEditManager.GetColumnEditor(IGridEditableColumn column) +175 Telerik.Web.UI.GridBoundColumn.FillValues(IDictionary newValues, GridEditableItem editableItem) +82 Telerik.Web.UI.GridEditableItem.ExtractValues(IDictionary newValues) +164 Telerik.Web.UI.GridTableView.ExtractValuesFromItem(IDictionary newValues, GridEditableItem editedItem) +116 Telerik.Web.UI.GridItemBuilder.CreateItems(GridGroupingContext group) +1117 Telerik.Web.UI.GridTableView.CreateItems(IEnumerator enumerator, GridColumn[] columns, ControlCollection controls) +187 Telerik.Web.UI.GridTableView.CreateControlHierarchy(Boolean useDataSource) +1573 Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) +768 System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +57 System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +114 System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +31 System.Web.UI.WebControls.DataBoundControl.PerformSelect() +142 Telerik.Web.UI.GridTableView.PerformSelect() +38 System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73 Telerik.Web.UI.GridTableView.DataBind() +354 Telerik.Web.UI.GridTableView.Rebind() +98 Telerik.Web.UI.GridCommandEventArgs.ExecuteCommand(Object source) +395 Telerik.Web.UI.RadGrid.OnBubbleEvent(Object source, EventArgs e) +191 System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37 Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e) +137 Telerik.Web.UI.GridItem.FireCommandEvent(String commandName, Object commandArgument) +80 Telerik.Web.UI.RadGrid.RaisePostBackEvent(String eventArgument) +4806 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565 



When I debug the page after a double click I can see the DataSource is correctly set in the NeedDataSource event, all rows are properly handled in the ItemCreated and ItemDataBound events the same way they are when I use an other EditMode. But after this I get the above error only in EditMode=InPlace.

Does anyone know what could be the problem?
Marin
Telerik team
 answered on 27 May 2012
0 answers
129 views
Dear  Mr,
I found strenge Issue I can not solve it
I put raddatepicker inside editform in Radgrid, as Popup
when I click to open popup calender , I found the page go to TOP  and I saw the address changed to
http://ashraf-pc2:50/Buildings/Unitmaintenance.aspx#
can you till me what is the proplem ?

Ashraf
Ashraf
Top achievements
Rank 1
 asked on 27 May 2012
0 answers
294 views
I have a trial version ASP.NET AJAX  befor and now i am used a full version but i had this error now :

Impossible de charger le fichier ou l'assembly 'Telerik.OpenAccess, Version=2011.3.1129.2, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342' ou une de ses dépendances. Le fichier spécifié est introuvable.

Description : Une exception non gérée s'est produite au moment de l'exécution de la requête Web actuelle. Contrôlez la trace de la pile pour plus d'informations sur l'erreur et son origine dans le code. 

Détails de l'exception: System.IO.FileNotFoundException: Impossible de charger le fichier ou l'assembly 'Telerik.OpenAccess, Version=2011.3.1129.2, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342' ou une de ses dépendances. Le fichier spécifié est introuvable.

Erreur source: 

Ligne 25 :          </telerik:RadStyleSheetManager>
Ligne 26 : 
Ligne 27 :          <telerik:RadScriptManager ID="RadScriptManager1" runat="server" 
Ligne 28 :              EnableViewState="False">
Ligne 29 :          </telerik:RadScriptManager>
 
So what should I do Please  ?
Berrabah
Top achievements
Rank 1
 asked on 27 May 2012
0 answers
97 views
Hi. I'm trying to decide the best way to implement a particular aspect of a site and would appreciate any veiws, comments or guidance.
The site is entirely data driven and part of that is that there are pages where each page has an id, title and some content. I've got other sections of the site (and also the master page) where I want to display the clickable name of pages (so the user sees the title and either with a url or command argument/value I can then get the user to the required page). That's really simple. My question arises because server performance is a key issue.

I could use a menu and, for example, have headings News, Products, Services, Help and each heading then contains multiple menuItems with each being the title and id of a relevant page. I could use a tool tip particularly where I can, for example, have an image representing a subject (such as News) and the tool tip then contains a repeater with simple hyperlinks or linkbuttons. I could have a user control that could display an image header (News) and then a set of links but this would take up screen realestate so it would be nice if the user control expanded on mouse over/hover or click (like a menu item expands to reveal a submenu).

I'm not completely sure how to achieve the last thing (getting my own control to expand in much the same way as a menu) but for everything else I know what to do and how to do it. What I don't know is how "light" the options are and which cause the most load on the server.

One further issue. I would have to populate the content dynamically from code behind - ie the frontend page is not a static predefined page but is constructed based on user input/preferences.... Thus "News" isn't a static list of news pages but a list created in server code.

Just to complicate matters further, there is the whole question whether to build some of the content on demand - ie its only if the user hovers over News that the list of news pages for that user is generated and displayed.

Thanks
Paul
Top achievements
Rank 1
 asked on 26 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?