Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
165 views

In the code-behind in the grid_ItemDataBound event I have this code to hide a particular GridGroupHeaderItem.  Now I want to show it later in the client-side based on some condition.  I can't figure out how to do this please help.

 

if

 

(e.Item is GridGroupHeaderItem)

 

{

 

GridGroupHeaderItem groupHeaderItem = (GridGroupHeaderItem)e.Item;

 

 

DataRowView groupDataRow = (DataRowView)e.Item.DataItem;

 

 

if (String.IsNullOrEmpty(groupDataRow["TRCategoryLabel"].ToString()))

 

{

 

groupHeaderItem.Display =

false;

 

}

 

else

 

{

 

if (groupDataRow["TRCategoryLabel"].ToString() == "OnCall Time Worked")

 

groupHeaderItem.Display =

false;

 

 

else

 

groupHeaderItem.DataCell.Text =

"<b>" + groupDataRow["TRCategoryLabel"].ToString() + "</b>";

 

}

Thanks,
Bernard

bern
Top achievements
Rank 1
 answered on 09 Jul 2009
4 answers
317 views
Hi there,

I just implemented a RadMenu control and have noticed an issue w/ how it is rendering in all browsers other than IE. Is there a known issue where IE7 would be the only browser correctly rendering the submenus?

As it stands now the submenus get clipped halfway through the second item in each case. I've tried changing the heights of the items, the flyout direction, the position offset - nothing is preventing the clipping in all browsers other than IE. Those include FF3, Opera 9.x, Safari 3.x, and Chrome.

I'd send screenshots but I see no "attach file" button.

I've dropped in the code from the aspx file in the event its something silly in the settings I'm missing.

<telerik:RadMenu ID="MainMindPivotRadMenu" runat="server" Skin="Black" Width="75%">
                  <Items>
                    <telerik:RadMenuItem runat="server" NavigateUrl="~/home.aspx" Text="Home">
                      <GroupSettings Flow="Horizontal" />
                    </telerik:RadMenuItem>
                    <telerik:RadMenuItem runat="server" NavigateUrl="~/solutions.aspx" Text="Solutions">
                      <Items>
                        <telerik:RadMenuItem runat="server" Text="SharePoint">
                        </telerik:RadMenuItem>
                        <telerik:RadMenuItem runat="server" Text="Drupal">
                        </telerik:RadMenuItem>
                        <telerik:RadMenuItem runat="server" Text="ASP.NET">
                        </telerik:RadMenuItem>
                      </Items>
                    </telerik:RadMenuItem>
                    <telerik:RadMenuItem runat="server" NavigateUrl="~/about.aspx" Text="About">
                    </telerik:RadMenuItem>
                    <telerik:RadMenuItem runat="server" NavigateUrl="~/contact.aspx" Text="Contact">
                    </telerik:RadMenuItem>
                  </Items>
                </telerik:RadMenu>

Thanks
Jeffrey Sanford
Top achievements
Rank 2
 answered on 09 Jul 2009
2 answers
103 views
Hi,

I am wondering, what would happen if a search engine or a non-javascript enabled browser visits a page with using this control? 

Will it gracefully fall back to a method that the browser can still use? 


thanks,


Richard
Richard
Top achievements
Rank 1
 answered on 09 Jul 2009
1 answer
63 views
I am looking for a tutorial for something I saw in the radgrid section.  Does anybody know how I can pull this kind of project off?  See link below:

http://demos.telerik.com/aspnet-ajax/input/examples/radinputmanager/dynamicinputfiltersettings/defaultcs.aspx?product=input
Daniel
Telerik team
 answered on 09 Jul 2009
3 answers
148 views
When i do an export of my datagrid to csv my boolean values that are in the grid do not display on the report - they are blank.  In Excel the values show up as capitalized TRUE or FALSE, but in csv nothing.

I am not doing anything different in the export - simply the MyGrid.MasterTableView.ExportToCSV()

How can I fix this?
Daniel
Telerik team
 answered on 09 Jul 2009
7 answers
169 views
We are eveluatiing RadGrid using IE6, IE7 and IE8. It seems ok with IE6 but there are some issues with IE7 and IE8.

1. In IE7, the popup edit form was not shown properly (EditMode="PopUp")
2. In IE8, The grid layout is a kind of messy

Any known issues there?

Thanks!

 

 


Daniel
Telerik team
 answered on 09 Jul 2009
2 answers
102 views
I have the below GridTemplateColumn bound from a sql data source.  I need help developing an empty Item template or I need a way to check to see if there is a value in MSDSLocation. Any thoughts on this would be appreciated.
 
<telerik:GridTemplateColumn HeaderText="MSDS" DataField="MSDSLocation"> 
    <ItemTemplate> 
        <a href='<%# Eval("MSDSLocation") %>' target="_blank"> 
            <img src="/images/icons/msds-icon.gif" alt='<%# Eval("Name") +" MSDS" %>' style="border: none; width: 40px;" />
        </a> 
    </ItemTemplate>
</telerik:GridTemplateColumn>

Edwin Burns
Top achievements
Rank 1
 answered on 09 Jul 2009
2 answers
158 views
Hi

I'm using q3 2008 and the web blue skin for the rad grid. Please could you tell me how i would stop the text from wrapping in the grid rows. I would it to be trucated (with an elipsis if possible) if the text is too long. I'm a programmer and not a designer and I'm assuming this will be a trivial question for someone who knows what they are doing :)

thanks
andieje
Top achievements
Rank 1
 answered on 09 Jul 2009
3 answers
142 views
Hello all,

I've the following scenario:
i have a user options page. the options are in a data base table, and i have a connecting table between users and the options.
the page gets the user id, and loads all possible options from which the user should select.
the options are bound to a RadGrid, and i have a select column (CheckBox) where the selection is made.
problem is i want to select the option the user currently have on page load (or RadGrid databound).
is there a fast way i can give the grid the keys of the items i would like to select, or i need to check all items?

Good ideas are welcome...
Roy

Georgi Krustev
Telerik team
 answered on 09 Jul 2009
1 answer
104 views
I am unable to get the Grid Hierarchy with Template to work.

I have a grid with a detail table. The master and detail rows show up perfectly well.

At a third level down, I introduced a tab strip and multi-pages very similar to the example, http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/nestedviewtemplate/defaultcs.aspx

Neither the grid at the  third hierarchial level nor the graph show that are contained within the template show the data. From having stepped  through the code it appears the data controllers are working and returning data.

I have tinkered with several items and gone over the code with a fine-toothed comb. I switched  out the ObjectDataSource for binding in the code-behind via the DetailTableDataBind event. Still no soup.

Anybody else experience this?
Pavlina
Telerik team
 answered on 09 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?