Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
110 views
I have 2 image libraries that I would like to be able to insert images into the Editor from.

I have written 2 custom FileBrowserContentProviders.

I can get the existing ImageManager toolbar button to work with the  custom ContentProviders.

I would like to add a 2nd toolbar button to access the other image library. I would like it to use the same FileBrowser dialog and return the same img information (alt text, longdesc, etc).

I have looked at the examples for adding custom dialogs, but would like to use the existing FileBrowser dialogs.

I have also looked at the RadDialogOpener, and was able to open the FileBrowser dialog from a button.

Any help is appreciated. Thanks.
Eric
Eric Fernando
Top achievements
Rank 1
 answered on 20 Nov 2009
1 answer
96 views

Hello All,

I want to bind the data dynamically to the RadGrid control [Columns would be known at the run time only] .

The Data Source for the RadGridView is a Generic List Collection of “OperatingCondition”.

                                    public class OperatingCondition

    {

        public OperatingCondition(int stage)

        {

            this.Actual  = new string[stage];

            this.Theoritical = new string[stage];

        } 

        public string OpCondtition  { get; set;} 

        public string[] Actual { get ;  set; } 

        public string[] Theoritical{ get;  set;}          

    } 

Actual and Theoritical coulmns has to created based on the number of stages. Eg: If the stage is 3, then grid should show the 3 Actual and Theoritical values as columns in the grid and each Actual and Theoritical column headers should be grouped to show the stage number.
Please suggest how to bind this datasource to the grid.

Iana Tsolova
Telerik team
 answered on 20 Nov 2009
2 answers
190 views
I need a good workaround for an Issue I found with the radgrid.

When I press enter while focus is anywhere on my page (in another control or wherever) focus is automatically transferred to the insertCommand button in the grid header which causes the popup editor to show up.

Here is how I declare the grid in markup:

<asp:UpdatePanel ID="upnlGrid4" runat="server" > 
    <ContentTemplate> 
        <telerik:RadGrid ID="gvFirmInfo" runat="server" Width="550px"
            <MasterTableView EditMode="PopUp" CommandItemDisplay="Top" CommandItemSettings-AddNewRecordText="Add Location"  
                         ShowHeadersWhenNoRecords="true" ShowHeader="false"  
                         NoMasterRecordsText="information is not available. <br/> Please click 'Add Location' to add the contact information for each location" 
                         AlternatingItemStyle-BackColor="White" AlternatingItemStyle-BorderStyle="Solid"  
                         AlternatingItemStyle-BorderWidth="1px" AlternatingItemStyle-BorderColor="#C9C4D1" 
                         ItemStyle-BackColor="#E0E0E0" ItemStyle-BorderColor="#FFFFFF" ItemStyle-BorderStyle="Solid" 
                         ItemStyle-BorderWidth="0px" BorderColor="#C9C4D1" BorderWidth="1px" BorderStyle="Solid" GridLines="None"
                           
                <EditFormSettings InsertCaption="Add Location" CaptionDataField="" PopUpSettings-Modal="true"/> 
                <Columns> 
                    <telerik:GridBoundColumn DataField="rowId" HeaderText="Row ID" UniqueName="rowId" 
                        Visible="False" EditFormColumnIndex="-1"
                    </telerik:GridBoundColumn> 
                                                                                                                                        
                                        
                    <telerik:GridTemplateColumn UniqueName="CheckBoxTemplateColumn"
                        <ItemTemplate> 
                            <asp:CheckBox id="ChkDelete" AutoPostBack="false" runat="server"></asp:CheckBox> 
                            <asp:Label runat="server" Text="Delete Location"></asp:Label> 
                        </ItemTemplate> 
                    </telerik:GridTemplateColumn> 
                     
                    <telerik:GridButtonColumn CommandName="Edit" Text="Edit" UniqueName="columnEdit" ItemStyle-Width="35px"
                    </telerik:GridButtonColumn>                    
                </Columns>                      
                                                                                                                                                          
            </MasterTableView> 
        </telerik:RadGrid> 
    </ContentTemplate>  
</asp:UpdatePanel> 


My grids are dynamic and are built using advanced binding like so:

Protected Sub gvFirmInfo_NeedDataSource(ByVal source As ObjectByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles gvFirmInfo.NeedDataSource 
        Dim sqlString As String = "" 
        Dim sqlparam(2) As SqlParameter 
        Dim ds As New DataSet 
        Dim dr As SqlDataReader = Nothing 
 
        Try 
            Conn = New SqlConnection(ConfigurationManager.ConnectionStrings("****").ConnectionString) 
            Conn.Open() 
 
            SetParam(sqlparam(0), "@recId", Data.SqlDbType.Int, 4, m_rec_id) 
            SetParam(sqlparam(1), "@recType", Data.SqlDbType.Char, 2, m_rec_type) 
 
            sqlString = "select...***" 
 
            ds = SqlHelper.ExecuteDataset(Conn, Data.CommandType.Text, sqlString, sqlparam) 
            gvFirmInfo.DataSource = ds 
 
        Catch ex As Exception 
            '***** 
        End Try 


The problem occurs in IE 8 as well as Firefox 3.015

What do you all recommend for working around this issue?

Cheers!
Drew
Top achievements
Rank 2
 answered on 20 Nov 2009
2 answers
248 views
Hi,
I am using ExportToExcel in RadGrid, inside "ExcelMLExportStylesCreated" , "ExcelMLExportRowCreated" events I change my data format (Font Style, InteriorStyle, ......) but the only thing I could not do is How I can set borders to my cells !!? .. Will you please help me to figure out how.

Thanks
Ban
Mark Galbreath
Top achievements
Rank 2
 answered on 20 Nov 2009
3 answers
151 views
Hi,

I am having issues with paging style.
Here is the code:

<cc1:AdesaGrid ID="grdAnnouncements" runat="server" OnNeedDataSource="grdAnnouncements_NeedDataSource" 
            AllowPaging="True"  PagerStyle-Mode="NextPrevAndNumeric"  PagerStyle-Position="Bottom" ShowFooter="True" AllowMultiRowEdit="True" OnItemDataBound="grdAnnouncements_ItemDataBound" 
            OnPreRender="grdAnnouncements_PreRender" OnItemCommand="grdAnnouncements_ItemCommand" 
            OnItemCreated="grdAnnouncements_ItemCreated" AutoGenerateColumns="False" CssClass="headercenter" 
            EnableEmbeddedSkins="False" GridLines="None" Skin="TelerikDataGridB" Width="920px"
            <HeaderContextMenu EnableEmbeddedSkins="False"
            </HeaderContextMenu> 
            <MasterTableView DataKeyNames="MVDAID" EditMode="InPlace" CommandItemDisplay="Bottom"
                <NoRecordsTemplate> 
                    <div> 
                        There are no records to display</div> 
                </NoRecordsTemplate> 
                <Columns> 
                    <telerik:GridBoundColumn DataField="MVDAID" HeaderText="MVDAID" ReadOnly="True" UniqueName="MVDAID" 
                        Visible="False"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Name" HeaderText="Announcement" UniqueName="Name" ReadOnly="true"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Amount" HeaderText="Amount" UniqueName="Amount" 
                        ReadOnly="true"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Date" DataFormatString="{0:d}" DataType="System.DateTime" HeaderText="Date" UniqueName="Date" ReadOnly="true"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Comment" HeaderText="Comment" UniqueName="Comment" 
                        ReadOnly="true"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="RepairDescription" DataType="System.String" HeaderText="Repair Description" 
                        UniqueName="RepairDescription" ReadOnly="true"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Province" DataType="System.String" HeaderText="Province" UniqueName="Province" 
                        ReadOnly="true"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="LastKnownDate" DataFormatString="{0:d}" DataType="System.DateTime" HeaderText="TKU Date" UniqueName="LastKnownDate" 
                        ReadOnly="true"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="LastKnownAmount" HeaderText="TKU" 
                        UniqueName="LastKnownAmount" ReadOnly="true"
                    </telerik:GridBoundColumn>                    
                    <telerik:GridBoundColumn DataField="Source" HeaderText="Source" ReadOnly="true" UniqueName="Source"
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="User" HeaderText="User" ReadOnly="True" UniqueName="User"
                    </telerik:GridBoundColumn> 
                     <telerik:GridCheckBoxColumn DataField="Active" DataType="System.Boolean" HeaderText="Active" 
                        UniqueName="Active"
                    </telerik:GridCheckBoxColumn> 
                    <telerik:GridEditCommandColumn UniqueName="EditCommandColumn" /> 
                </Columns>                 
                <CommandItemTemplate> 
                    <asp:Button runat="server" ID="Save" Text="Save" CommandName="Save"  CausesValidation="false" /></CommandItemTemplate
            </MasterTableView> 
        </cc1:AdesaGrid> 

Please see the attached snapshot of the page.

Any help is appreciated.

Thanks


Pavlina
Telerik team
 answered on 20 Nov 2009
1 answer
99 views
I use custom stylesheets for most of the Telerik AJAX controls I use in a Web application I'm working on for a client, including a stylesheet for the Telerik grid control. I recently decided I needed a second stylesheet with some changes to reduce padding in the grid and some border adjustments and I discovered that creating the second custom stylesheet actually changed the appearance of other unrelated Telerik controls - specifically, I noticed that on a different page that contains ListBox controls with transfer behavior, the ListBoxes lost their borders, transfer buttons, and drag-n-drop stylings. To prove that it was indeed the new stylesheet that was causing the issue, I simply deleted the style sheet and the ListBoxes rendered normally. I also tried putting the stylesheet back into my project but commenting out all of it's style definitions and it still seemed to cause a conflict with the ListBox styles.

Is this a known issue? Shouldn't I be able to have multiple stylesheets for individual Telerik controls?
Dimo
Telerik team
 answered on 20 Nov 2009
4 answers
105 views
I am maintaining inherited code on an existing web site.  On the client side event of some controls, we have code like this:


function CustComboBoxDropDownOpeningHandler(sender, args) 
      .... [code]... 
      if (event.type == "propertychange") 
             args.set_cancel(true); 
      ..... [code].... 


Firefox does not give global access to the event object - it must be passed as a parameter.  For this reason, Firefox will not work for these controls as it is implemented above.  Is there a way to access the event object through the control?  Or is there a different signature we can give to the method to allow access the event object?  How can we know the type of event that caused this method to fire?

Thanks for your help!
jkrebsbach
Top achievements
Rank 1
 answered on 20 Nov 2009
1 answer
238 views
Is there an easy way to rebind a radtabstrip that is using a sql data source? I am showing tabs that has a record count as the tab text. When I drag and drop records from one grid to another I need to refresh the tabstrip tabs. i am using ajaxified grids. Thanks for any help you can give.
Peter
Telerik team
 answered on 20 Nov 2009
1 answer
217 views
q2 2009

VS 2008

Hiya,

I've got a menu that successfully displays the imageUrl

However, when I select a particular menuItem, I want the menu item to display a different image, to denote the fact that the menu has been selected...
SelectedImageUrl="~/IMG/imgHome.gif"      

I know for a fact that this image can be found for the menuItem, because, if I assign it to “imageUrl”, then it works.

 

Any ideas, I’d have thought that this would have been fairly simple.

 

Thanks,

 

yogi

Yana
Telerik team
 answered on 20 Nov 2009
6 answers
122 views

If, in Opera, you create a new event on the Scheduler demo page and the invoke a calendar popup and click on the "title & navigation popup zone" the resulting window is hidden behind the calendar itself (see attached screen shot).

-- 

Stuart

Stuart Hemming
Top achievements
Rank 2
 answered on 20 Nov 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?