Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
216 views
Hi,
     I have to make a column invisible in a childgrid based on some conditions. Some thing like i have 3 columns and i have to show/hide these columns depending on some conditions. I tried to do it under DetailTableDataBind method, but in vain. My code is something like this:
DetailTableDataBind Method
begin
                If<Condition is true>
                 Hide these columns i.e.    e.DetailTableView.GetColumnSafe("ColumnName").visible=false;
               else
                Hide these columns
end.
By default all these columns are visible and AutogenerateColumns is set to false. I also took a variable and assigned a value in DetailTableDataBind event and used it under columnCreating, columnCreated events just to make sure that it does n't work. Can somebody help me in this issue.
Emad
Top achievements
Rank 1
 answered on 04 Jan 2012
1 answer
87 views
My company just recently bought the teleriks control. I've been asked to change the style of the telerik's control to match our current style. We currently are not planning on replacing everything with the telerik's control. We have the ajax controls by the way. For the combo box, we do not use any kind of style, it currently use the default style that is offered by the browser or the OS. Is there anyway that I can turn the telerik's control skinning off so that it will use the default style that's offered by the browser so that the style of the old control will match the new one?

Thanks in advance.
Princy
Top achievements
Rank 2
 answered on 04 Jan 2012
1 answer
99 views
I update my telerik version from 2011 Q2 to Q3 after that when try to use a control its not showing me the available skins except Default skin. Can you Guys look in to this

thank you
Princy
Top achievements
Rank 2
 answered on 04 Jan 2012
1 answer
255 views
I am using a RadTreeview (ASP.NET Ajax version 2011.2.915.40) and I want the hyperlink 'hand' icon to not show when a node is hovered. I have successfuly implemented the style below:

 .RadTreeView .rtHover .rtIn
        {
           background: none !important;
           border: none !important;
           padding: 4px 3px 3px !important;
           background-image: none !important;
        }

and this removes the highlight color when nodes are hovered.

I really need to find a way to allow the mousepointer to remain the default arrow when the control is hovered. I've noticed that the hand appears as soon as the mouse enters the TreeView control - even if a node is not being hovered.

How can I do this?
Princy
Top achievements
Rank 2
 answered on 04 Jan 2012
1 answer
74 views
In the code samples here:
http://www.telerik.com/support/kb/aspnet-ajax/scheduler/setting-special-days-or-time-slots-in-radscheduler.aspx
There is a call to $telerik.$(...)

It doesn't seem to be documented in the telerik class:
http://www.telerik.com/help/aspnet-ajax/telerik-static-client-library.html

Any insight?
Princy
Top achievements
Rank 2
 answered on 04 Jan 2012
1 answer
130 views
Hi,

I have a grid that consists of customer details which is populated from a database. One of the customer attributes is the Sort Code. I would like to be able to bind the values of this to the appropriate textboxes when editing a customer. In the database, this item is stored as a single 6 digit code, however, as is convention, the user enters the code in 3, 2 digit text boxes. Usually one uses the

Text='<%# Bind("blah"%>'
 technique, however in this instance this is not possible as there are 3 separate textboxes. When would be the best point to assign the values through codebehind? At the editcommand event (though afaik edit form items are not accessible from here)? Any help would be greatly appreciated.

Cheers,
Christian
Princy
Top achievements
Rank 2
 answered on 04 Jan 2012
0 answers
103 views
Any clue why the callout looks messed up here:  http://www.fronseetechnology.com/EnergyControlAdmin/Reports/EnergyCalculator.aspx

Go to the first text box in the first row of the Radgrid, remove the text and then tab, it will fire the requiredfield.  But notice the callout is messed up.  Any help here?  Thanks.
Joe
Top achievements
Rank 1
 asked on 04 Jan 2012
1 answer
159 views
I've got a basic radgrid like the following That starts out where some of the items are expanded and some are not
When the radbutton clicks, everything resets to expanded= false
I can easily reopen everything but I don't know how to capture when somebody collapses one of the categories before the radbutton click.
I am not seeing one here clientside api  Or is there some serverside event I can force to happen? I don't see a link to serverside api on the demo page.

thanks

<
telerik:RadGrid
    ID="RadGrid1" runat="server"  ShowHeader="false"
    AutoGenerateColumns="false"   
    OnDetailTableDataBind="RadGrid1_DetailTableDataBind"
    OnNeedDataSource="RadGrid1_NeedDataSource"
    GridLines="None"
    ShowStatusBar="true"  Width="300px"
    OnPreRender="RadGrid1_PreRender">
             
 
    <MasterTableView DataKeyNames="CategoryID"  AutoGenerateColumns="true" >
        <DetailTables>
            <telerik:GridTableView Name="Filters"  AutoGenerateColumns="true">
                    <ItemTemplate>
                        <telerik:RadButton Text='<%# Eval("FilterName") %>' runat="server" CategoryID='<%# Eval("CategoryID") %>' FilterID='<%# Eval("FilterID") %>' OnClick="Im_Clicked"  />
                     
                        .....'<%# Eval("CategoryID")%>'
                    </ItemTemplate>
            </telerik:GridTableView>
        </DetailTables>
 
 
        <Columns>
            <telerik:GridBoundColumn DataField="CategoryName" />
        </Columns>
    </MasterTableView>          
             
</telerik:RadGrid>
Steven
Top achievements
Rank 1
 answered on 04 Jan 2012
4 answers
213 views
Hi Folks,

I've come across a problem with the RadGrid where after rebinding, the child columns of an auto-generated hierarchy grid do not update with the new column specifications from the data bind (because the columns are changing in the pivoted data).

Below is the definition of the RadGrid. As you can see the columns are not defined and instead generated automatically on binding (given that they are not known until after having been bound, and does also change depending on the pivot grouping query)

<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="ObjectDataSource1" OnColumnCreated="RadGrid1_ColumnCreated" OnItemCreated="RadGrid1_ItemCreated" OnItemDataBound="RadGrid1_ItemDataBound">
    <MasterTableView HierarchyDefaultExpanded="false" HierarchyLoadMode="Client" AllowSorting="false" DataKeyNames="TypeId, ParentTypeId" Width="100%">
        <SelfHierarchySettings ParentKeyName="ParentTypeId" KeyName="TypeId" />
    </MasterTableView>
    <ClientSettings AllowExpandCollapse="true" />
</telerik:RadGrid>

As an example, if the grid is initially bound using pivoted data grouped by year (say 2009, 2010 and 2011 columns - as well as TypeId, ParentTypeId and a row description field) then a rebind occurs where the new pivoted data is grouped by month, the mastertable autogeneratedcolumns will be correct (say Jan09, Feb09... Dec11 etc) however each of the nested view columns will contain the original year grouped columns (2009, 2010, 2011 etc).

I've spent days searching for anyone with a similar problem but can't find anything. Is there anyway to force the nested views to rebind when the grid/mastertableview rebinds? Or is there any way to flush the existing autogenerated nested view columns so they will be regenerated during the rebind?

The problem that this rebinding issue creates is such that if the pivot query is continued to be grouped by year but the period changes (such that say 2009 is no longer returned in the result dataset), the table header will update correctly, however the expanded nested view will not be aligned as it leaves space as if 2009 is still there. In the generated HTML the extra <td> can be seen in the row. This is even more obvious when multiple years are removed. I have 'got around' the first problem by simply iterating over the nested view columns and hiding any child columns that should no longer be shown. However, if the grouping period for the pivot query is changed (to by the month instead of year) as previously stated, the auto-generated nested view columns remain with the original year column definitions and as such NO data is shown in the grid given that the columns no longer have anything to match to when binding.

Please let me know if you need any additional information.

Cheers,

Andrew
ANDREW
Top achievements
Rank 1
 answered on 04 Jan 2012
1 answer
130 views
Is it possible (maybe with pre-render) to change the default view to "group by" (column of choice).

Hope that makes sense. Thanks!

mike
Michael
Top achievements
Rank 1
 answered on 03 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
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
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?