Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
115 views
Hi,

I have a RadGrid with 3 tier Hierarchies using Master and DetailTable setup.

     Master -> 1st Tier Detail Table -> 2nd Tier Detail Table

Each Tier has GridClientSelectColumn.

What I am trying to do is :
Step 1) Only the GridClientSelectColumn of MasterTableView is enabled after data-binding. 
Step 2 ) When the user check the checkbox to select the row in MasterTableView, the checkbox of the corresponding rows in 1st Tier Detail Table become enabled.  When the user select a row in 1st Tier Detail Table, the checkbox of the corresponding rows in 2nd Tier Detail Table become enabled.
Step 3) When uncheck(de-select) a row, all the checkboxs of underneath Detail Table would be clear and become disabled.

I already finish the Step 1.  Is this possible be implement the other steps by RadGrid Client-side APIs? and how?

Thanks



IT Services
Top achievements
Rank 1
 answered on 21 Feb 2011
3 answers
114 views
I have got SPRadGrid to work on SP Lists but when I open up the Designer and click data binding I only see about half of my SQL servers to choose from. The account I am using should have read access to more; is there a way to force a data binding through the web part? Thanks.
Tsvetoslav
Telerik team
 answered on 21 Feb 2011
3 answers
282 views
Hello,
We are using Telerik radEditor in IE( version 8). After setting a template to the editor, when we press "Save" button in application, extra blank lines get appended to the editor content. We tried removing them manually & save in the database. But the problem still persists.  The problem continues even when we switch from design mode to HTML mode of radeditor.This problem appears when we add template to the editor. However the problem not appears for every template but for perticular template.

The steps when we encountered the problem -
1) inserted a standard template to radeditor in design mode and removed the spaces manually.
2) then switched to html mode,we found extra <br> added at the end. We again switched to design mode, we found extra blank lines added.
3) We repeated above steps 3/4 times,but faced same problem.

Please Provide us the solution for the same.       

Regards,
Rahul K
Rumen
Telerik team
 answered on 21 Feb 2011
1 answer
203 views
Hi, I am new to using Telerik controls, I thought that using the controls would shorten my work, but so far doing one simple task is actually making it longer for me to complete what I am working on.  I have tried every possible way to get this to work, and searched just about every thread and have not found an answer that works. I am trying to get the new value on a field that has been updated by the user.  Each method I have tried only returns the old value.  I have tried placing the values in a Hashtable using the ExtractValues method, I have tried getting the value using the GridTextColumnEditor, etc.  Every example on here I have tried.  Please help.  I am using an instance of a LINQ datacontext, or more particular. I use a method that submits a query using an instance of a LINQ datacontext, the method returns the data as a Generic List, and I use this to set the datasource for the Grid. As shown in the code-behind below.  The data shows, sorts, pages, filters perfectly, but when I try to edit or update I start to get issues.  In my code behind, you will see that I tried both recommend ways and neither has worked for me.

Thanks in Advance

Markup Code:

<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="true" PageSize="10" AllowSorting="true" ShowGroupPanel="true" AutoGenerateColumns="False"
    AllowMultiRowSelection="true" CellPadding="0" AllowMultiRowEdit="true" OnNeedDataSource="RadGrid1_NeedDataSource" OnUpdateCommand="RadGrid1_UpdateCommand" AllowAutomaticUpdates="true">
    <MasterTableView DataKeyNames="Spot_IDX" GroupLoadMode="Client" EditMode="InPlace" CommandItemDisplay="Top" AllowAutomaticUpdates="true">
     <CommandItemTemplate>
        <telerik:RadToolbar ID="RadToolBar1" OnButtonClick="RadToolBar1_ButtonClick" runat="server">
            <Items>
                <telerik:RadToolBarButton Text="Edit" CommandName="EditAll" ImageUrl="~/App_Themes/Default/Images/Telerik/Edit.gif" Visible='<%# RadGrid1.EditIndexes.Count == 0 %>' runat="server"></telerik:RadToolBarButton>
                <telerik:RadToolBarButton Text="Update" CommandName="UpdateEdited" ImageUrl="~/App_Themes/Default/Images/Telerik/Update.gif" Visible='<%# RadGrid1.EditIndexes.Count > 0 %>'></telerik:RadToolBarButton>
                <telerik:RadToolBarButton Text="Cancel Editing" CommandName="CancelAll" ImageUrl="~/App_Themes/Default/Images/Telerik/Cancel.gif" Visible='<%# RadGrid1.EditIndexes.Count > 0%>'></telerik:RadToolBarButton>
                <telerik:RadToolBarButton Text="Refresh Spot List" CommandName="RebindGrid" ImageUrl="~/App_Themes/Default/Images/Telerik/Refresh.gif"></telerik:RadToolBarButton>
                 
  
            </Items>
              
  
                 
        </telerik:RadToolbar>
          
     </CommandItemTemplate>
    <Columns>
         <telerik:GridClientSelectColumn UniqueName="TagCheckboxSelectColumn" HeaderText="Tag" HeaderStyle-Width="45"/>
  
<telerik:GridBoundColumn UniqueName="House ID"
                        SortExpression="HouseID" HeaderText="House ID" DataField="HouseID" HeaderStyle-Width="190" ColumnEditorID="1">
         </telerik:GridBoundColumn>
  
 </Columns>
      
    </MasterTableView>
    <ClientSettings AllowDragToGroup="true" AllowGroupExpandCollapse="true" DataBinding-EnableCaching="true" AllowColumnsReorder="true" >
    <Selecting AllowRowSelect="true"/>
    <Scrolling UseStaticHeaders="True" AllowScroll="true"/>
    <Resizing AllowResizeToFit="true"  AllowColumnResize="true"/>       
    <ClientEvents OnRowDblClick="RowDblClick" />
  
    </ClientSettings>
      
    </telerik:RadGrid>

Code-Behind (C#)
Public partial class Inbox : System.Web.UI.Page 
SpotDataAccess spotAccess = new SpotDataAccess();
        protected void Page_Load(object sender, EventArgs e)
        {
              RadGrid1.DataSource = spotAccess.ReturnAllSpots();
             RadGrid1.DataBind();
        }
  
protected void RadGrid1_UpdateCommand(object source, GridCommandEventArgs e)
        {
                      Hashtable newValues = new Hashtable();
               ((GridEditableItem)e.Item).ExtractValues(newValues); 
                          
                   GridEditableItem editedItem = e.Item as GridEditableItem;
                GridEditManager editMan = editedItem.EditManager;
  
                foreach (GridColumn column in e.Item.OwnerTableView.RenderColumns)
                {
                    if (column is IGridEditableColumn)
                    {
                        IGridEditableColumn editableCol = (column as IGridEditableColumn);
                        if (editableCol.IsEditable)
                        {
                            IGridColumnEditor editor = editMan.GetColumnEditor(editableCol);
  
                            string editorType = editor.ToString();
                            string editorText = "unknown";
                            object editorValue = null;
  
                            if (editor is GridTextColumnEditor)
                            {
                                editorText = (editor as GridTextColumnEditor).Text;
                                editorValue = (editor as GridTextColumnEditor).Text;
                            }
                        }
                    }
                }
         }
  
         protected void RadGrid1_NeedDataSource(object source, GridNeedDataSourceEventArgs e)
        {
            this.RadGrid1.DataSource = spotAccess.ReturnAllSpots();
        }
Greg
Top achievements
Rank 1
 answered on 21 Feb 2011
1 answer
104 views
I added a following html in my rad editor in firefox :
<span class="headerlink"><font size="2" face="arial, sans-serif"  [3_fontcolor]>Abhi Bansal</font></span>

after change the edition mode  it converts to

<span class="headerlink"><font [3_fontcolor]="" face="arial, sans-serif" size="2">Abhi</font></span>

Cute Editor is the tool we are weaning people off of, but in Cute-Editor-using-Firefox it leaves all the HTML alone….keeps it as-is. That's what mode we are looking for…is there a mode that will NOT touch any of the HTML that is loaded….or is there only a specific set of environments where this will work; such as IE Windows, Safari Mac, etc. etc.). Lastly, do they know of a way to turn off the Firefox Rich Text Editing Engine…or is it required for RadEditor to work in Firefox?
Rumen
Telerik team
 answered on 21 Feb 2011
3 answers
123 views
I added a following html in my rad editor in firefox :
<span class="headerlink"><font size="2" face="arial, sans-serif"  [3_fontcolor]>Abhi Bansal</font></span>

after change the edition mode  it converts to

<span class="headerlink"><font [3_fontcolor]="" face="arial, sans-serif" size="2">Anhi</font></span>

This happens only in firefox.

Thanks
Abhinandan Bansal
Rumen
Telerik team
 answered on 21 Feb 2011
1 answer
217 views
We are using the RadEditor on a control.  If I change the font size to anything over 4 in the editor and begin typing, the letters are cut off at the top and bottom.  Is there a setting I need to set to fix this?  Here is the declaration for the RadEditor:

<telerik:RadEditor ID="tbNote" runat="server" Width="502px" 
    TextMode="MultiLine" Wrap="True" EditModes="Design" Height="250px" 
    Style="border: 1px solid navy;">
    <Tools>
        <telerik:EditorToolGroup Tag="BasicFunctions">
            <telerik:EditorTool Name="Cut" />
            <telerik:EditorTool Name="Copy" />
            <telerik:EditorTool Name="Paste" />
            <telerik:EditorSeparator />
            <telerik:EditorTool Name="Bold" />
            <telerik:EditorTool Name="Italic" />
            <telerik:EditorTool Name="Underline" />
            <telerik:EditorTool Name="StrikeThrough" />
            <telerik:EditorSeparator />
            <telerik:EditorTool Name="FindAndReplace" />
            <telerik:EditorTool Name="Print" />                        
            <telerik:EditorTool Name="AjaxSpellCheck" />
            <telerik:EditorSeparator />
            <telerik:EditorTool Name="Undo" />
            <telerik:EditorTool Name="Redo" />
            <telerik:EditorSeparator />
            <telerik:EditorTool Name="Outdent" />
            <telerik:EditorTool Name="Indent" />
            <telerik:EditorTool Name="InsertOrderedList" />
            <telerik:EditorTool Name="InsertUnorderedList" />
        </telerik:EditorToolGroup>
        <telerik:EditorToolGroup Tag="FontTools">
            <telerik:EditorTool Name="FontName" />
            <telerik:EditorTool Name="FontSize" />
            <telerik:EditorSeparator />
            <telerik:EditorTool Name="JustifyLeft" />
            <telerik:EditorTool Name="JustifyCenter" />
            <telerik:EditorTool Name="JustifyRight" />
            <telerik:EditorTool Name="JustifyFull" />
        </telerik:EditorToolGroup>
    </Tools>
    <Content>
    </Content>
</telerik:RadEditor>


Thank you,
Lindsay
Rumen
Telerik team
 answered on 21 Feb 2011
2 answers
80 views
I'm having a problem with the Slider when using R2L languages. The slider is being displayed on top of th Page x of y of the RadGrid.

Issue occurs only on FireFox/Chrome/Safari. Works fine with IE.

<PagerStyle Mode="slider" Wrap="true"></PagerStyle>

Your earliest reply is appreciated.

Thanks,
Andrew
Andrew
Top achievements
Rank 1
 answered on 21 Feb 2011
1 answer
99 views
Hi,
 I have 2 issues below I mention, please I hope you give solution asap to me. I'm using Q22010 version of RadControls.

1.    In Radeditor editable mode, I enter some data/ insert link button (see first attachment), then click on Update button in radeditor. the data can be saved. but display font size  as too small (see second attachment).  

2.  In RadEditor bottom I want to only symbols like Pencil symbol,<>, preview symbol only how to set ? Plese see third attachment.
 

  Advance In Thanks
Mr.Perfect
Rumen
Telerik team
 answered on 21 Feb 2011
4 answers
141 views
Hi All,

Like Silverlight Control is there a way to change input method of DateTimePicker to Month... I want my Calander to show only name of months and years
Sebastian
Telerik team
 answered on 21 Feb 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?