Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
155 views
I have a grid with a large number of columns.  I would like to customize the headercontextmenu to show/hide groups of columns rather than having to select individual columns in the default.  I haven't gotten very far, but the small code sample below will give an indication of what I'm trying to do.  If someone has tackled this before, I would appreciate it if you could point me in the right direction.


        void HeaderContextMenu_PreRender(object sender, EventArgs e)
        {
            RadContextMenu menu = RadGrid1.HeaderContextMenu;

            RadMenuItem showColumnGroup1 = new RadMenuItem();
            showColumnGroup1.Text = "Show Group 1";
            showColumnGroup1.Attributes["ColumnName"] = string.Empty;
            showColumnGroup1.Attributes["TableID"] = string.Empty;
            showColumnGroup1.PostBack = true;
            showColumnGroup1.Visible = false;
            menu.Items.Add(showColumnGroup1);

            RadMenuItem hideColumnGroup1 = new RadMenuItem();
            hideColumnGroup1.Text = "Hide Group 1";
            hideColumnGroup1.Attributes["ColumnName"] = string.Empty;
            hideColumnGroup1.Attributes["TableID"] = string.Empty;
            hideColumnGroup1.PostBack = true;
            menu.Items.Add(hideColumnGroup1);

            RadMenuItem showColumnGroup2 = new RadMenuItem();
            showColumnGroup2.Text = "Show Group 2";
            showColumnGroup2.Attributes["ColumnName"] = string.Empty;
            showColumnGroup2.Attributes["TableID"] = string.Empty;
            showColumnGroup2.PostBack = true;
            showColumnGroup2.Visible = false;
            menu.Items.Add(showColumnGroup2);

            RadMenuItem hideColumnGroup2 = new RadMenuItem();
            hideColumnGroup2.Text = "Hide Group 2";
            hideColumnGroup2.Attributes["ColumnName"] = string.Empty;
            hideColumnGroup2.Attributes["TableID"] = string.Empty;
            hideColumnGroup2.PostBack = true;
            menu.Items.Add(hideColumnGroup2);

            ...
Yavor
Telerik team
 answered on 25 Sep 2009
1 answer
54 views
Hello,
i am evaluating the RadEditorMOSS_5_5_1_trial. When i try to access a list from a different SiteCollection i receive the following error message: List does not exist ... The page you selected contains a list that does not exist. The List is accessible with the current account and if i switch back to a list which is in the current Site the control works as expected. So the control has problems when accessing lists which are not in the current site.

Is this behaviuor a bug or a wanted behaviour? For our scenario we need to access list from different SiteCollection in the farm.

with best regards
Meik Napierski

 
Stanimir
Telerik team
 answered on 25 Sep 2009
1 answer
210 views
I'm not even sure what to title this one, but I could use anyone's help in the community :)

I've written some custom controls that take advantage of the Telerik greatness. As such, my class library project references (what was at the time) the latest Telerik dlls. In this case, it's using Telerik.Web.UI 2009.1.311.35. When I compile my class library, I get a nice little dll. I have dropped that into a number of web projects I'm working on, and it's fine as long as the Telerik.Web.UI dll is in the web project's /bin directory along with it.

Recently, I've upgraded one of the web projects to the latest Telerik dll, since it uses the Telerik controls on it's own as well as my custom controls. Lo and behold, the class library is now freaking out that it can't find the 2009.1.311.35 dll version for it's own use. I can't have the two living side-by-side in the /bin directory, nor do I want to.

How do I get around this? I've tried getting the 2009.1.311 dll to compile into my custom class dll, so it isn't dependent on the correct dll existing along side it in the /bin directory of the web project. That didn't work correctly either. I can't figure out how to get my class library to not care about a particular version, so that it would use whatever Telerik version is in the web project's bin.

Anyone have any tips? What am I doing wrong!

Thanks so much, guys!
Veli
Telerik team
 answered on 25 Sep 2009
1 answer
67 views

I have an interesting / frustrating anomaly. 

 

My screen has a load on demand combo box on it.  When you select something from the combo box the RADGrid below is populated based on the item selected in the combo box.  One of the grid columns contains a textbox so the users can update the value.

 

All of that works without a problem.

 

The odd thing is when the grid first displays you have to click somewhere, anywhere on the screen outside of the grid before it will allow you to enter anything in any of the text boxes in the grid.  You can see the cursor is in the text box, but nothing you type shows up.  But if you click outside of the grid and then back in a text box in the grid you can type.

The problem does not present itself in Firefox, just Internet Explorer.

 

I’m rather hoping someone this is a common problem with a known resolution I haven’t been able to locate?

Veli
Telerik team
 answered on 25 Sep 2009
1 answer
100 views
I have a scenario where I have a tabstrip that contains multiple levels of tab hierarchy and I want to find a unique index across all tabs (not just the tabs on Level 0, Level 1, etc.).  Normal SelectedIndex, SelectedTab, IndexOf, etc. on the tabs returns only an index for that tab level not a unique tab index for all levels.

Do tabs have a unique index that can be accessed that is a unique tab index across all tabs in the tabstrip collection?  If not, how could I add one (I need it to work like a index, not the value of the tab).

Example:  Imagine in this scenario that there is 1 tabstip, 2 parent tabs.  One Parent tab has two children and another Parent tab has three children.  I would like the Child3 of Parent2 to have the highest tab index and be able to access that index value.  

Parent1                        Parent2
Child1    Child2            Child1    Child2    Child3

The index of Parent1 = 0 and Parent 2 = 1 when I check through normal Index methods.  The index of Parent1's Child1 is 0 and the indexif Parent2's Child1 is also 0.  I am assuming that parents are created before their children, so in that case is there some kind of wider scope index where the tabs have indexes that do not repeat with the following structure (or could be created).

Parent1(Index = 0)                                           Parent2 (Index= 3)
Child1(Index = 1)    Child2 (Index = 2)              Child1(Index = 4)    Child2(Index = 5)    Child3(index = 6)


Thank you for your help,
Atanas Korchev
Telerik team
 answered on 25 Sep 2009
2 answers
105 views
Just a thought, as I'm passing...

Rather than having to say:
RadTreeView1.Checkboxes = true; 
RadTreeView1.TriStateCheckBoxes = true 

and having the inherent danger of trying to enable tristate check boxes without first enabling checkboxs, wouldn't it be better to have an enum...
public enum RadTreeNodeCheckBoxMode {None, Bistate, TriState}; 

and simply get rid of the TriStateCheckBoxes property?

As I say, just an idle thought.

--
Stuart
Stuart Hemming
Top achievements
Rank 2
 answered on 25 Sep 2009
6 answers
330 views

Hi.  I have the following code using a RadGrid that contains three fields of GridDropDownList columns.  I want to control the width of the columns in edit mode (the edit DDLs are too wide if not), so I created a number of GridDropDownListColumnEditors and declaratively set the width of each.  The problem is that when I use the column editors, the grid renders correctly except for the first data row, in which the dropdownlist columns are not rendered.  This error does not occur with the BoundColumn fields (also under the control of a ColumnEditor).  When I put the first row into edit mode, then the dropdown list coulmns display.  When I close the editing (either cancel or accept), the text continues to display and does thereafter.  Only on initial loading of the grid and only on the first row do I see this problem.  And if I remove the references to the DropDownListColumnEditors, then all rows display correctly all the time (but then I still have the width problem).  Can you help?  Thanks!

Tom Stanley

    <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="sdsCRNAShifts" GridLines="None" Skin="Simple" 
        AutoGenerateColumns="False" AllowAutomaticUpdates="True" AllowAutomaticInserts="True" PageSize="128" Width="100%" AllowSorting="True" > 
        <MasterTableView DataSourceID="sdsCRNAShifts" CommandItemDisplay="TopAndBottom" DataKeyNames="shiftID" EditMode="InPlace" > 
            <Columns> 
                <telerik:GridCheckBoxColumn DataField="active" HeaderText="active" UniqueName="active" AllowFiltering="False" AllowSorting="False">  
                    <HeaderStyle Width="20px" /> 
                </telerik:GridCheckBoxColumn> 
                <telerik:GridDropDownColumn DataField="shiftType" DataSourceID="XmlDataSource1"  HeaderText="Type" 
                    ListValueField="ID" ListTextField="Text" UniqueName="shiftType" ColumnEditorID="GridDropDownListColumnEditor1" > 
                    <ItemStyle Width="60px" /> 
                </telerik:GridDropDownColumn> 
                <telerik:GridBoundColumn DataField="shiftName" HeaderText="Name" UniqueName="shiftName" ColumnEditorID="GridTextBoxColumnEditor1" > 
                    <HeaderStyle Width="120px" /> 
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="shiftDescr" HeaderText="Description" UniqueName="shiftDescr" ColumnEditorID="GridTextBoxColumnEditor2" > 
                    <HeaderStyle Width="200px" /> 
                </telerik:GridBoundColumn> 
                <telerik:GridDropDownColumn DataField="bOff" DataSourceID="sdsTimeText" HeaderText="BeginTime" ListTextField="timeText" 
                     ListValueField="numMins" UniqueName="bOff" ColumnEditorID="GridDropDownListColumnEditor2" > 
                    <HeaderStyle Width="100px" /> 
                </telerik:GridDropDownColumn> 
                <telerik:GridDropDownColumn DataField="eOff" DataSourceID="sdsTimeText" HeaderText="EndTime" ListTextField="timeText" 
                     ListValueField="numMins" UniqueName="eOff" ColumnEditorID="GridDropDownListColumnEditor2" > 
                    <HeaderStyle Width="100px" /> 
                </telerik:GridDropDownColumn> 
                <telerik:GridEditCommandColumn ButtonType="ImageButton">  
                    <HeaderStyle Width="50px" /> 
                </telerik:GridEditCommandColumn> 
            </Columns> 
       </MasterTableView> 
        <ClientSettings> 
            <Selecting AllowRowSelect="True" /> 
        </ClientSettings> 
    </telerik:RadGrid> 
    <telerik:GridDropDownListColumnEditor ID="GridDropDownListColumnEditor1" runat="server" DropDownStyle-Width="60px" /> 
    <telerik:GridDropDownListColumnEditor ID="GridDropDownListColumnEditor2" runat="server" DropDownStyle-Width="100px" /> 
    <telerik:GridTextBoxColumnEditor ID="GridTextBoxColumnEditor1" runat="server" TextBoxStyle-Width="120px" /> 
    <telerik:GridTextBoxColumnEditor ID="GridTextBoxColumnEditor2" runat="server" TextBoxStyle-Width="200px" /> 
  
 

Veselin Vasilev
Telerik team
 answered on 25 Sep 2009
3 answers
547 views

Hi all,

 

I'm using the web.sitemap as the source for the RadMenu and would like to also have a small icon (.gif/.jpg) to the menu items. I've seen examples of either all images or just with the sitemap.  Does anyone have an integrated example?  Telerik's Courseware showed a great potential use of it with a graphic icon next to the sub item but no code sample.

Thank you very much.

Atanas Korchev
Telerik team
 answered on 25 Sep 2009
3 answers
282 views
Hello,
i am evaluating the RadEditor control for ASP.NET AJAX with the last release. When I try to insert an template via the Template Manager, i receive an error message Access is denied. In Visual Studio i can see it happens in the function getResult : function() in the line return this._currentTemplateItem.contentWindow.document.body.innerHTML

the template is a normal HTML document whith a single word in the body element.

with best regards
Meik Napierski

 

 

Rumen
Telerik team
 answered on 25 Sep 2009
1 answer
109 views
Hi,

    We recently upgraded to the latest version of the rad editor and the opacity in the Image Editor is not avaliable for JPGs.  Is this by design?  It was availble in the previous release.

Thanks,

Dave
Rumen
Telerik team
 answered on 25 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?