Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
110 views
i want something like this
store
  1
      department
        employee
   2
      deparment

how do i do that on the serverside. Based on what the admin suggested i should have default.aspx page only has the placeholder. and on the default.aspx.vb we have something like dim radgird as RadGrid = new RadGrid and how do we add mastertableview, datakeyname and how do we add detailtableview to have the hierarchy display generates on the server side. please help thank you.
Shinu
Top achievements
Rank 2
 answered on 30 Oct 2008
2 answers
104 views
I have a simple grouped grid to which I have added the following code:

protected void personalRadGrid_ColumnCreated(object sender, GridColumnCreatedEventArgs e)
    {
        if (e.Column is GridGroupSplitterColumn)
        {
            e.Column.Visible = false;
        }
    }

The grid also has a select column with check boxes.
But now, when I click on a group header in the check box column (no check boxes in the group rows), the row still collapses.

I've tried setting the AllowExpandCollapse and AllowGroupExpandCollapse in ClientSettings to false in the OnPreRender event of the page, but those don't seem to do anything.

How can I effectively prevent the user to collapse the grid while hiding the collapse/expand column?
This seems like a pretty common functionality that a lot of people struggle with.

Thanks,

Rod
Rod
Top achievements
Rank 1
 answered on 29 Oct 2008
1 answer
228 views
Hopefully this is easier than I am making it.
 
I have a page with a MultipageView.  I am employing the lazy loading method described elsewhere on the forum.  So that the pageview of each tab is created programmatically in the PageViewCreated event.

Inside of each tab I have a grid.  Which is bound to an object, but also contains a checkbox column which is checkable, and not bound to anything.  In the past I have used a GridTemplateColumn to create this scenario. 

I read up on implementing the ITemplate interface, and came up with a very simple ItemTemplate to use.

public class CheckboxItemTemplate : ITemplate
{
    public string CheckBoxID;
    public CheckBox _checkbox;

    public CheckboxItemTemplate(string checkboxID)
    {
        this._checkbox = new CheckBox();
        this.CheckBoxID = checkboxID;
        this._checkbox.ID = this.CheckBoxID;
    }
    
    public void InstantiateIn(System.Web.UI.Control container)
    {
        this._checkbox.AutoPostBack = false;
        container.Controls.Add(this._checkbox);
    }
}
 
When I implement this as I described, by building a grid programmatically in the PageViewCreated event, and assigning this item template to a GridTemplateColumn I get my grid with all the columns I would expect, but my CheckBoxItemTemplate Column only has 1 row that is as large as all the rows in the other columns of my grid, inside this one giant cell is a single checkbox control.

Note, I do notice that I am supposed to assign my custom item template to a grid in the Page_Init event.  Because this is not possible in my case (since the grid doesn't exist until the RadPageView control is created to place it on).  I was hoping that the PageViewCreated event would work out the same, because it does fire before Page_Load.  but this does not appear to be the case.

Any suggestions?  I would love to use a GridCheckBoxColumn instead, but I can't seem to get it to render not read only.  Nothing else in my grid should be editable, and the checkboxes are not databound.

I'm going to explore some other methods to achieve the same effect, but nothing I have come up with to try seems very promising at this point.

Thanks for your time.
Matthew
Top achievements
Rank 1
 answered on 29 Oct 2008
1 answer
106 views
I have a text area where I only want to show three tools - unlink, link and document manager.  I create a custom toolsfile.xml and use that in ToolsFile attribute of the control.  I also set the display to Default instead of ShowOnFocus. 

With Firefox and Safari, only ShowOnFocus will show the toolbar correctly.  If I used default, the tools are not shown.  (Using Firebug, I saw that the area for the tools are too small...)  With IE, neither ShowOnFocus nor Default will show any of the tools correctly.

We have RadEditor for MOSS 5.0.1.0 running.  I have screenshots captured but I can't see how I can upload them here.  Please contact me if you need the screenshots.  Thanks.

In ASPX page:
    <div id="divRelatedInfo" class="cmpwrapper">
        <div class="cmpheader"></div>
        <div class="cmpcontentbg">
            <div class="cmpcontent">
                <img id="Img1" runat="server" src="relatedInfo.gif">" alt="Related Icon" />
                <span class="cmptitle">Related Info</span><br/>
                <hr/>                
                <span id="RelatedInfoContent"><radE:RadHtmlField ToolsFile="~/_wpresources/RadEditorSharePoint/5.0.1.0__1f131a624888eeed/Resources/ToolsFileRelatedInfo.xml" id="_migidRelatedInfo"  FieldName="Related_Info" runat="server" AllowImages="False" DisplayWidth="150px" /></span>
            </div>
        </div>
        <div class="cmpfooter"></div>
    </div>

ConfigFile.Xml
<configuration>
  <property name="AllowThumbGeneration">True</property>
  <property name="ConvertToXhtml">True</property>
  <property name="EnableDocking">True</property>
  <property name="ShowHtmlMode">True</property>
  <property name="ShowPreviewMode">False</property>
  <property name="StripAbsoluteAnchorPaths">False</property>
  <property name="StripAbsoluteImagesPaths">False</property>
  <property name="ToolbarMode">ShowOnFocus</property> Changed to Default too...
  <property name="ToolsWidth">800px</property>
  <property name="Skin">Default2006</property>
  <property name="ImagesPaths"><item>/SiteCollectionDocuments</item></property>
</configuration>

CustomToolsFile.Xml
<root>
    <tools>
        <tool name="MOSSLinkManager" shortcut="CTRL+K" />
        <tool name="Unlink" shortcut="CTRL+SHIFT+K" />
        <tool name="DocumentManager"  />
    </tools>
    <contextMenus>
        <contextMenu forElement="*">
            <tool name="Cut"/>
            <tool name="Copy"/>
            <tool name="Paste"/>
        </contextMenu>
    </contextMenus>
</root>

Peterson
Top achievements
Rank 1
 answered on 29 Oct 2008
1 answer
142 views

Hi,

 

In the RadEditor tool bar I tried removing few buttons which are not required to me.

 

I succeeded in removing those buttons but the tool strips which contained the removed button is getting displayed even after removing all buttons that belong to that tool strip.

 

Please let me know what are all the names of the tool strips which are available in the toolbar and let me know how to remove it and realign.

 

Regards,

Senthil Kumar M

 

 

 

Rumen
Telerik team
 answered on 29 Oct 2008
5 answers
331 views
Anyone care to tell me what I am missing?  I tried everything I could find and still cannot get the empty grid to show with my no records template.  I just get a small line where headers should be.  Everything displays fine when data is in grid.

        <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource1">  
            <MasterTableView DataSourceID="SqlDataSource1" ShowHeadersWhenNoRecords="true">  
                <NoRecordsTemplate> 
                    No positions are currently listed, please check back at a later time.  
                </NoRecordsTemplate> 
            <RowIndicatorColumn> 
                <HeaderStyle Width="20px"></HeaderStyle> 
            </RowIndicatorColumn> 
            <ExpandCollapseColumn> 
                <HeaderStyle Width="20px"></HeaderStyle> 
            </ExpandCollapseColumn> 
            <Columns> 
                <telerik:GridBoundColumn DataField="employment_id"   
                    HeaderText="..." UniqueName="column">  
                </telerik:GridBoundColumn> 
            </Columns> 
            </MasterTableView> 
            <FilterMenu EnableTheming="True">  
                <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
            </FilterMenu> 
        </telerik:RadGrid> 
Dave
Top achievements
Rank 1
 answered on 29 Oct 2008
5 answers
1.1K+ views
Hi every body.

I don't find how to determine if a column with a specific UniqueName exists in a ItemDataBound. My example here:

TableCell oCellStatus = null
try 
   oCellStatus = oGridDataItem["StatusColumn"]; 
catch 
   oCellStatus = null
if (oCellStatus != null) 
   Image oImageStatus = new Image(); 
   oImageStatus.ImageUrl = String.Format("~/App_Themes/{0}/Images/{1}", this.Page.Theme, "Status-" + oCellStatus.Text + ".png"); 
   oCellStatus.Controls.Add(oImageStatus); 


You see that I use a try catch to determine if a specific column exists in my GridDataItem. I don't find a Exists(UniqueName) or collections to loop all columns. Is there a solution to this specific question ?
Missing User
 answered on 29 Oct 2008
3 answers
107 views
Hi all,
i have a textbox and button. i wish when button click will show a dialog view a root bitmap folder if i select a file dialog return pathfile and assign to textbox?
who can help me!
thanks, ^-^
Sacha Rice
Top achievements
Rank 1
 answered on 29 Oct 2008
2 answers
152 views
Hi,

I have user control which contains a radTabStrip and a few radGrids in it. the edit mode of the grids are in-place. I deployed this user contol to share-point via smart part with ajax. When the page is first rendered to the browser (Internet Explorer 7.0 ) the edit icons are rendered but invisible.  

Then I open a new tab from the browser and navigate to some page no matter which page it is. After that  I return the first tab of the browser which contains the user control. The invisible icons are now become visible

I click the edit button but now the cancel and ok buttons are invisible. I do the same thing and pass the next tab of internet explorer and navigate to some page again. Turn back to the first tab of internet explorer. The invisible cancel and ok buttons are now visible.

I tested my user control with firefox and this weird situation does not happen. everything runs as expected.

Anybody has an idea? Is there a known bug Internet Explorer 7.0 related with this issue. Any work-around?

Thanks in Advance
Sinan Uysal
Aydın Kara
Top achievements
Rank 1
 answered on 29 Oct 2008
1 answer
124 views
Greetings,

I began writing a nice description of my problem when I realized that the same problem exists in the example on your site here - http://demos.telerik.com/ASPNET/Prometheus/Dock/Examples/DynamicDocks/DefaultCS.aspx. To reproduce, simply add a dock or two quickly with the add button, then click the postback button.You need to click the add button before the first page refresh in order to see the issue.

I believe the issue is simply that the javascript doesn't have time to move the new dock from the update panel to the dock zone. Is there a solution? This is something could happen quite easily if the dock takes a second or two to load (i.e. a grid or chart with a lot of data) and the user becomes impatient and clicks again.

Thanks in advance for your input!
Obi-Wan Kenobi
Top achievements
Rank 1
 answered on 29 Oct 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?