Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
288 views
Hi All,

I am using the RadGrid and have added a GridBinaryImageColumn. The ROW gets bigger when an image is in the record (rows where there are NO image data, are lean, this is just because I defined width and height manually in order to see if something is happening once there is an image in the database).

However, although there is a larger space in the column I cannot see any picture. The database table itself has an image field. I tried to read binary date through writing a memory stream to a bitmap and this worked fine.

Working with the BinaryImageColumn doesnt show any picture. Please find below the code.

I have set HeaderText and DataField to the name of the database table field, which is 'Signature'.

I have set DataType to System.Byte

  <Columns>
        <telerik:GridBoundColumn DataField="OrderNumber" DataType="System.Int32"
            HeaderText="OrderNumber" SortExpression="OrderNumber"
            UniqueName="OrderNumber">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="ParcelNumber" HeaderText="ParcelNumber"
            SortExpression="Parcelnumber" UniqueName="ParcelNumber">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="DeliveryTime"
            DataType="System.DateTime" HeaderText="DeliveryTime"
            SortExpression="DeliveryTime" UniqueName="DeliveryTime">
        </telerik:GridBoundColumn>
        <telerik:GridBinaryImageColumn AlternateText="" DataField="Signature"
            HeaderText="Signature" ImageAlign="Left" ImageHeight="100px"
            ImageWidth="200px" UniqueName="Signature">
        </telerik:GridBinaryImageColumn>
        <telerik:GridCheckBoxColumn DataField="Retoure" DataType="System.Boolean"
            HeaderText="Retoure" SortExpression="Retoure" UniqueName="Retoure">
        </telerik:GridCheckBoxColumn>
    </Columns>
sunita ahire
Top achievements
Rank 1
 answered on 19 May 2010
3 answers
232 views
Hi there,

Happy new year for all!!!
How to use a radiobutton inside gridTemplateColumn as editcommand button?
When you check a radiobutton, the corresponding row should get changed to edit mode.

Thanks in advance,

Toby
Shinu
Top achievements
Rank 2
 answered on 19 May 2010
14 answers
554 views

I have followed the example here to the letter:

http://www.telerik.com/help/aspnet-ajax/radgrid-filter-template.html

I have used the code-behind method since I am not using an EntityDataSource. However, it just doesn't work. After selecting a different item from the combobox it goes through the code to set the filter but then the combobox just gets reset to it's original value and nothing is filtered.

Here is my grid:

<telerik:RadGrid ID="RadGridEmployeeTransactions" runat="server"   
    AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True"   
    AutoGenerateColumns="False" GridLines="None" ShowGroupPanel="False" Width="620px" 
    EnableLinqExpressions="false">  
    <HeaderContextMenu> 
        <CollapseAnimation Duration="200" Type="OutQuint" /> 
    </HeaderContextMenu> 
    <PagerSTyle AlwaysVisible="true" Mode="NextPrevNumericAndAdvanced" /> 
    <MasterTableView> 
        <Columns> 
            <telerik:GridBoundColumn DataField="TransactionID" Groupable="False"   
                HeaderText="ID" ReadOnly="True" SortExpression="TransactionID"   
                UniqueName="TransactionID" 
                FilterControlWidth="50px">  
                <HeaderStyle HorizontalAlign="Center" Width="70px" /> 
                <ItemStyle HorizontalAlign="Center" Width="70px" />                                          
            </telerik:gridboundcolumn> 
            <telerik:GridBoundColumn DataField="DateSubmitted" Groupable="True"   
                HeaderText="Date Submitted" ReadOnly="True" SortExpression="DateSubmitted"   
                UniqueName="DateSubmitted" GroupByExpression="DateSubmitted" > 
                <HeaderStyle HorizontalAlign="Left" Width="130px" /> 
                <ItemStyle HorizontalAlign="Left" Width="130px" /> 
                <FilterTemplate> 
                    <telerik:RadComboBox ID="RadComboboxDateSubmittedFilter" 
                        runat="server" AutoPostBack="true" OnSelectedIndexChanged="RadComboboxDateSubmittedFilter_SelectedIndexChanged">  
                        <Items> 
                            <telerik:RadComboBoxItem Value="2009" Text="2009" /> 
                            <telerik:RadComboBoxItem Value="2008" Text="2008" /> 
                        </Items> 
                    </telerik:RadComboBox> 
                </FilterTemplate> 
            </telerik:gridboundcolumn> 
            <telerik:GridBoundColumn DataField="Tooltip" Groupable="True"   
                HeaderText="Transaction Type" ReadOnly="True" SortExpression="Tooltip"   
                UniqueName="Tooltip" GroupByExpression="Tooltip"   
                FilterControlWidth="200px">  
                <HeaderStyle HorizontalAlign="Left" Width="250px" /> 
                <ItemStyle HorizontalAlign="Left" Width="250px" /> 
            </telerik:gridboundcolumn> 
            <telerik:GridBoundColumn DataField="Status" Groupable="True"   
                HeaderText="Transaction Type" ReadOnly="True" SortExpression="Status"   
                UniqueName="Status" GroupByExpression="Status"   
                FilterControlWidth="100px">  
                <HeaderStyle HorizontalAlign="Left" Width="150px" /> 
                <ItemStyle HorizontalAlign="Left" Width="150px" /> 
            </telerik:gridboundcolumn> 
        </Columns> 
    </MasterTableView> 
    <ClientSettings AllowDragToGroup="True">  
    </ClientSettings> 
    <FilterMenu> 
        <CollapseAnimation Duration="200" Type="OutQuint" /> 
    </FilterMenu> 
</telerik:RadGrid> 

And here is the event handler:

    Public Sub RadComboboxDateSubmittedFilter_SelectedIndexChanged(ByVal sender As ObjectByVal e As RadComboBoxSelectedIndexChangedEventArgs)  
 
        Dim lBeginDate As String = "1/1/" & e.Value + " 12:00:00 AM" 
        Dim lEndDate As String = "12/31/" & e.Value  + " 11:59:59 PM" 
 
        Dim lFilterExpression As String = String.Format(CultureInfo.CurrentCulture, "([DateSubmitted] BETWEEN '{0}' AND '{1}'", lBeginDate, lEndDate)  
 
        RadGridEmployeeTransactions.MasterTableView.FilterExpression = lFilterExpression   
        RadGridEmployeeTransactions.MasterTableView.Rebind()  
 
    End Sub 

What gives? It seems like the filtering is a great feature but once you start getting into a complicated design (multiple master pages, user controls etc. all of the functionality is broken. I wouldn't even be trying to use the FilterTemplate if the normal filters worked on this page but they don't. No filteroptions are even displayed upon clicking the filter image.

Filtering on this grid is needed and I do not want to have to re-write my query so that I can pass in all of the filter criteria and then do all the filtering manually, that kind of defeats the purpose of using your controls.

Any help to get this resolved is greatly appreciated.

Thanks!
newbie
Top achievements
Rank 1
 answered on 18 May 2010
1 answer
97 views
I have some hidden columns and some external comboboxes that controls the filter mechanism in the grid.
I filter using the hidden columns (I don't want to show these columns in the grid).
If I set allowfilteringbyColumn = "true" then the filter row shows up. I don't want to show the filter row but still aloowcolumnfiltering on my grid. Without that feature the grid loses its filterexpression and I find it hard and messy to apply multple filters.

Can you show me how to hide the filter row. I use multiple instances of grid throughout my application, so I don't want to change the grid css.

Thanks,
Daniel
Telerik team
 answered on 18 May 2010
2 answers
178 views
I created a simple page with a button inside a RadAjaxPanel and several labels inside their own RadAjaxPanels.  I set the update mode on each RadAjaxPanel to Always using the AjaxSettingCreating event.  The button click event sets the text property of each label to the current DateTime.  In theory, when I click the button, every label should update to the current DateTime.  However, none of the labels update. 

I also put two ASP.NET UpdatePanels on the page with labels in them and their update modes set to Always.  They do update correctly, but not the RadAjaxPanels.

What am I missing?
Fred Wesson
Top achievements
Rank 1
 answered on 18 May 2010
1 answer
74 views
Hello,

I'm trying to change the "Grid / Using Server-side API" demo to have the drop-down list pull data from a different data table or data source.

To illustrate the scenario, here is a theoretical example:

1. Lets say I have a stored proc called SP1 returning a list of customers who bought cars. The proc returns customer_id, customer_name and car_make_id.
2. Lets say I have another stored proc called SP2 that returns a list of the car makes (make_id and make_name).
3. Lets say I'm implementing a structure very similar to the "Grid / Using Server-side API" demo.

How could I arrange the bindings if I want the grid to show customer data based on the data from SP1 displaying a customer name (just a textbox - easy stuff) and a car make (a drop-down list with a list of all makes returned by SP2, with the customer's car make selected)?

To clarify the situation a little bit:

The demo is located here: http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/extractvalues/defaultcs.aspx
It has a drop-down box that is bound to the same datasource as everything else and therefore would not display a distinct list of items... or car makes in the example I've made up above. Instead it would just show a non-unique list of all make IDs associated with the customers so far (and would not show makes that exist in the Make database table, but haven't been yet associated with the customers).


Any help would be truly appreciated.

Thank you!
Vassili King
Top achievements
Rank 1
 answered on 18 May 2010
2 answers
80 views
Guys i know there is probably a solution to this somewhere on forums / demos.. but i couldnt find this for the life of me! and its bugging!....

If a user has their IE window minized opens up a RadWindow that is bigger than the current avalible space the header bar goes to the top of the window... is there a way to add "padding" as such so that the top bar will always appear like 40 px from the top of the window..??

for an example of what i mean see the attached images... the initial state is openparentsmall when the radWindow is opened. and then openparentlarge is the same window being open and then we maximize the IE window.
Kevin
Top achievements
Rank 2
 answered on 18 May 2010
2 answers
121 views
I have a situation where the user triggers a tooltip by mousing over an element and then clicks the same element to go to a new page. It seems that in the moment while the tooltip has been requested and then the page abandoned (via the click) the tooltipmanager fires and Alert stating:
RadToolTipManager response error:
Exception=The server method 'GetpersonToolTipContent' failed

I'd really like for this to fail silently. Is there a way to silence failure alert messages from the ToolTipManager?
Patrick McDavid
Top achievements
Rank 1
 answered on 18 May 2010
1 answer
64 views
Hello!
Ok I am evaluating the Rad toolkit and I have my own existing VB2008 / 3.5 web app and would like to incorporate the RadCalendar control (among others) into it. I don't see any documentation on how to setup the tools in my own app...I"m assuming part of the process is to copy over the contents of the Bin35 folder to the bin folder in my app, but from there I'm stuck. If someone could hold my hand on this first walk-through and layout the process like I'm a 10 year old (sorry any 10 year olds out there!) would be greatly appreciated...

Thanks.
Mark
Mark Crouch
Top achievements
Rank 1
 answered on 18 May 2010
2 answers
114 views

I'm using an older version of the RadGrid control - r.a.d.controlsQ3 2006 - v2.0.50727 and I'm trying to use OnitemDataBound to create some hyper links in my columns when my grid is loading. But I don't seem to have access to the GridDataItem and I'm unsure what namespace to import to get the code below to compile. Is there a different way to go about this with the older version of the grid control I'm using?  

protected void gridDataFeed_ItemDataBound(object sender, Telerik.WebControls.GridItemEventArgs e)
        {
             if (e.Item is Telerik.WebControls.GridDataItem)
            {
                GridDataItem dataItem = e.Item as GridDataItem;

                //CODE wil be implemented here to update the item 
            }
        }         

Any help would be greatly appreciated.
Thanks
Todd

Todd
Top achievements
Rank 1
 answered on 18 May 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?