Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
83 views
In safari web browser  upload controls looks like differ from IE & Mozilla i want display that control all browser same
Atul
Top achievements
Rank 1
 asked on 15 Apr 2009
5 answers
576 views
Hello

how can i access a RadGrid in code behind when I only know the ID of the RadGrid?

thanks

Christian
Shinu
Top achievements
Rank 2
 answered on 15 Apr 2009
4 answers
153 views


Hello everyone,

My page have a div that contains 3 dockzones, right, middle and center.
When I drag one of the docks from a zone to beyond the left one all the docks will disappear and the user will have to refresh the page to get all the docks back.

Please note that I'm just using the code-behind for this, not using the client0side API.


Best Regards,
A.mass
Top achievements
Rank 1
 answered on 15 Apr 2009
0 answers
141 views
Hi,

We have implemented localization for tooltip in our web application; But we are able to see localize tooltip text only in Mozilla browser, Rest of the browser like Internet Explorer, Safari and Chrome are displaying some rectangular boxes as tooltip text.

Please suggest us how can we implement localization for  tooltip property of menu control for IE, Safari and Chrome browsers.

Regards
Amit
Taran
Top achievements
Rank 1
 asked on 15 Apr 2009
4 answers
271 views
Hello,

I have a grid, which is dynamically build, in the first index, should there be a checkbox, for a multiselect.
When i go to the next page in the grid, i have lost my 'checks'.
Now i want to write each one in the page i am working with in a session, however how can i read the value of the row?

under here is my code:

protected void gridOverzichtLijst_NeedDataSource(object source, GridNeedDataSourceEventArgs e)  
    {  
        try 
        {  
            IEntityCollection coll = GetSearchColl();  
            gridOverzichtLijst.MasterTableView.DataKeyNames = new string[] { _idFieldName };  
 
            //first clean the colums.  
            gridOverzichtLijst.Columns.Clear();  
 
            GridTemplateColumn kolom = new GridTemplateColumn();  
            kolom.UniqueName = "CheckBoxTemplateColumn";  
            kolom.HeaderStyle.Width = 30;  
            kolom.ItemTemplate = new MyTemplate("cbRapport");  
            gridOverzichtLijst.Columns.Add(kolom);  
              
            GridSortExpression expression = new GridSortExpression();  
            expression.FieldName = SortField;  
            expression.SortOrder = GridSortOrder.Ascending;  
            if (!SortAscending)  
                expression.SortOrder = GridSortOrder.Descending;  
 
            gridOverzichtLijst.DataSource = coll;  
            gridOverzichtLijst.MasterTableView.SortExpressions.AddSortExpression(expression);  
        }  
        catch (Exception ex)  
        {  
            ErrorHandler.GetErrorHandler().WriteCriticalError("wucMasterLijst""gridOverzichtLijst_NeedDataSource", ex.Message);  
        }  
    }  
 
public class MyTemplate : ITemplate  
{  
    protected CheckBox CheckBox1;  
    private string colname;  
    private System.Web.UI.Control cont;  
    public MyTemplate(string cName)  
    {  
        colname = cName;  
    }  
 
    public void InstantiateIn(System.Web.UI.Control container)  
    {  
        CheckBox1 = new CheckBox();  
        CheckBox1.ID = "CheckBox1";  
        CheckBox1.Enabled = true;  
        CheckBox1.AutoPostBack = true;  
        CheckBox1.CheckedChanged += new EventHandler(CheckBox1_CheckedChanged);  
        container.Controls.Add(CheckBox1);  
    }  
 
    void CheckBox1_CheckedChanged(object sender, EventArgs e)  
    {  
        //here should be, at least i think, the code to put the value in a list to remember.  
    }  
 
}  

When you need more, let me know.

Thanks for help in advance.

Peter
paul de Blaauw
Top achievements
Rank 1
 answered on 15 Apr 2009
1 answer
81 views
Hi,
I am having problems with regards to making the Edit work . All the edit Links points to the first record in the grid.
I am using  an objectdatasource as the datasource for the radgrid. I have followed the examples  in the following post:

Automatic operations with ObjectDataSource control


Please Advise, regards Emran

<telerik:RadGrid ID="MailQueueGrid" runat="server" AllowPaging="True"
        AllowSorting="True" AllowAutomaticDeletes="true"  AllowAutomaticUpdates="true"
        AutoGenerateColumns="False" AutoGenerateDeleteColumn="True"
        AutoGenerateEditColumn="True" DataSourceID="MailQueueDataSource"
        GridLines="None"  PageSize="20"  Width="800px"
        AllowFilteringByColumn="True" DataKeyNames="iQueueId" >
        <HeaderContextMenu EnableTheming="True">
            <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
        </HeaderContextMenu>
        <PagerStyle Mode="NumericPages" />

    <MasterTableView DataSourceID="MailQueueDataSource"
        AllowMultiColumnSorting="True" DataKeyNames="iQueueId"
        EditMode="PopUp" >
        <RowIndicatorColumn>
             <HeaderStyle Width="20px"></HeaderStyle>
        </RowIndicatorColumn>

        <ExpandCollapseColumn>
            <HeaderStyle Width="20px"></HeaderStyle>
        </ExpandCollapseColumn>
        
        <Columns>
            <telerik:GridBoundColumn DataField="iQueueId" HeaderText="ID"
                UniqueName="iQueueId" DataType="System.Int32" SortExpression="iQueueId"><HeaderStyle Width="5%"></HeaderStyle>
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="sMailTo" HeaderText="To"
                UniqueName="sMailTo"><HeaderStyle Width="10%"></HeaderStyle>
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="sMailBCC" HeaderText="BCC"
                UniqueName="sMailBCC"><HeaderStyle Width="10%"></HeaderStyle>
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="sMailFrom" HeaderText="From"
                UniqueName="sMailFrom"><HeaderStyle Width="10%"></HeaderStyle>
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="iFailed" HeaderText="Failed"
                UniqueName="iFailed"><HeaderStyle Width="5%"></HeaderStyle>
            </telerik:GridBoundColumn>
        </Columns>
             
        <EditFormSettings EditFormType="Template" PopUpSettings-Width="700px">
        
            <FormTemplate>
             <asp:DetailsView ID="TemplateDetailsView" DataKeyNames="iQueueId"
                runat="server" AutoGenerateRows="False"
                DataSourceID="MailQueueDataSource"
                CellPadding="4"
                GridLines="None">
                <Fields>             

                 <asp:TemplateField HeaderText="ID" SortExpression="ID">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server" Columns="5" Text='<%# Bind( "iQueueId" ) %>'></asp:TextBox>                 
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%# Bind("iQueueId") %>'></asp:Label>
                        </ItemTemplate>             
                 </asp:TemplateField>
                
                 <asp:TemplateField HeaderText="To" SortExpression="To">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox2" runat="server" Columns="50" Text='<%# Bind( "sMailTo" ) %>'></asp:TextBox>                 
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label2" runat="server" Text='<%# Bind("sMailTo") %>'></asp:Label>
                        </ItemTemplate>             
                 </asp:TemplateField>
                
                  <asp:TemplateField HeaderText="BCC" SortExpression="BCC">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox3" runat="server" Columns="50" Text='<%# Bind( "sMailBCC" ) %>'></asp:TextBox>                 
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label3" runat="server" Text='<%# Bind("sMailBCC") %>'></asp:Label>
                        </ItemTemplate>             
                 </asp:TemplateField>
                
                
                <asp:TemplateField HeaderText="From" SortExpression="From">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox4" runat="server" Columns="50" Text='<%# Bind( "sMailFrom" ) %>'></asp:TextBox>                 
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label4" runat="server" Text='<%# Bind("sMailFrom") %>'></asp:Label>
                        </ItemTemplate>             
                 </asp:TemplateField>
                
                <asp:TemplateField HeaderText="Failed" SortExpression="Failed">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox5" runat="server" Columns="5" Text='<%# Bind( "iFailed" ) %>'></asp:TextBox>                 
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label5" runat="server" Text='<%# Bind("iFailed") %>'></asp:Label>
                        </ItemTemplate>             
                 </asp:TemplateField>
                
     
                <asp:TemplateField HeaderText="Subject" SortExpression="Subject">
                        <EditItemTemplate>
                           <asp:TextBox ID="TextBox6" runat="server" TextMode="MultiLine" Rows="1" Columns="100" Text='<%# Bind( "sSubject" ) %>'></asp:TextBox>            
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label7" runat="server" Text='<%# Bind("sSubject") %>'></asp:Label>
                        </ItemTemplate>             
                 </asp:TemplateField>

                <asp:TemplateField HeaderText="Body" SortExpression="Body">
                        <EditItemTemplate>
                             <telerik:RadEditor ID="RadEditor2" runat="server" EditModes="All" Height="500"
                                    ToolsFile="~/Content/BasicTools.xml" ToolbarMode="Default"
                                    Width="100%" Content='<%# Bind("sBody") %>'>
                                    <Content></Content>
                             </telerik:RadEditor>              
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label8" runat="server" Text='<%# Bind("sBody") %>'></asp:Label>
                        </ItemTemplate>             
                 </asp:TemplateField>
                             
                <asp:CommandField ShowEditButton="True" />
                <asp:CommandField ShowInsertButton="True" />
            </Fields>
        </asp:DetailsView>                    
     </FormTemplate>

        <PopUpSettings Width="700px"></PopUpSettings>
     </EditFormSettings>
                    
    </MasterTableView>
</telerik:RadGrid>    
    
    <asp:ObjectDataSource ID="MailQueueDataSource" runat="server"   
        SelectMethod="LoadQueue" TypeName="BusinessLib.DAL.MessageAdapter"
        DeleteMethod="DeleteItemQueue"  UpdateMethod="Queue">
        <DeleteParameters>
            <asp:Parameter Name="iQueueId" Type="Int32" />
        </DeleteParameters>
        <UpdateParameters>
            <asp:Parameter Name="iQueueId" Type="Int32" />
            <asp:Parameter Name="sMailTo" Type="String" />
            <asp:Parameter Name="sMailBCC" Type="String" />
            <asp:Parameter Name="sMailFrom" Type="String" />
            <asp:Parameter Name="sSubject" Type="String" />
            <asp:Parameter Name="sBody" Type="String" />
            <asp:Parameter Name="iFailed" Type="Int32" />
        </UpdateParameters>
    </asp:ObjectDataSource>
Georgi Krustev
Telerik team
 answered on 15 Apr 2009
7 answers
201 views
I have just installed the latest release of RadControls with RadGrid from April 2, and tested again, and still have the same problem.

The Vista skin NextPrevAndNumeric pager is working in so far as it's possible to change pages from first to last as long as I do not change the page size. But if I try to change the page size from the default of 10 to either option of 20 or 50 nothing happens.

I turned off AJAX by setting EnableAJAX to false in the RadAjaxManager and tried regular postbacks to see if that would make a difference but it did not.

Any suggestions? Thanks.

Pavlina
Telerik team
 answered on 15 Apr 2009
5 answers
96 views
Hi,

I have deployed version 4.5.4.0 of RadEditor Lite.  The RadEditor appears on blog and wiki pages, however content is not saved after editing.

This seems to happen with Firefox 2 and 3 but does not happen with IE 8.

Anyone have any ideas as to what could be wrong?

Thanks,
Fraser
Fraser
Top achievements
Rank 1
 answered on 15 Apr 2009
1 answer
65 views
How can I make the grid to show like a gallery of images? I have a grid with an image in a column, but displaying an image per row looks weird, i want it to show like a gallery, with multiple images in a row.
Shinu
Top achievements
Rank 2
 answered on 15 Apr 2009
2 answers
145 views
Hi,
Please how can I hide the CommanditemTemplate border ? I try to set the border width to "0px" in CommanditemStyle and try to make it White color but all that worthless .. so is there any way to do it so my CommandItemTemplate look like it is separate from the Grid

Thank you

Ban
Ban
Top achievements
Rank 1
 answered on 15 Apr 2009
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?