Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
209 views
Hello,
            I want to know that about Radeditor, Can we save the value of Form Control's Value in database.

For Example- I have took the Text Box in RadEditor and fill some text in text box, And when i have take the html of this RadEditor it's look like as -

<span><input style="width: 100px; height: 22px;" type="text"></span> But i need the Value of this text box -

<span><input style="width: 100px; height: 22px;" type="text" value="RAJKS"></span> Please let me know is it possible because i have save same string in database.
Rumen
Telerik team
 answered on 26 Feb 2013
4 answers
205 views
I have a RadGrid that uses a SqlDataSource and the column are auto-generated by the data source. Each column represents a date between a selectable date range. The grid works fine except if I want to use GridGroupByExpression. If that is enabled, I get an message stating (for example):

Column '2013-02-19' does not belong to table .

I'm not performing a postback and I don't have anything being called during Page Load or Init. The fields that are aggregated are whole integers.The columns displayed would be something like, 2013-02-19, 2013-02-20, 2013-20-21... again, this works fine if I don't use the grid group by expression and I can group manually... I'm trying to have the grouping by default.

Below is my ASPX:
<telerik:RadGrid ID="RG_SLASummary" runat="server" CellSpacing="0" DataSourceID="SDS_SLASummary" GridLines="None" ShowGroupPanel="True" style="margin:10px" ShowFooter="True" Height="750" OnColumnCreated="RG_SLASummary_ColumnCreated">
    <ClientSettings AllowColumnsReorder="True" AllowDragToGroup="True" ReorderColumnsOnClient="True">
        <Selecting AllowRowSelect="True" />
        <Scrolling AllowScroll="True" UseStaticHeaders="True" />
    </ClientSettings>
    <AlternatingItemStyle Width="100px" />
    <GroupHeaderItemStyle Width="100px" />
    <GroupingSettings RetainGroupFootersVisibility="true" />
    <MasterTableView DataSourceID="SDS_SLASummary" ShowGroupFooter="true">
        <GroupByExpressions>
            <telerik:GridGroupByExpression>
                <SelectFields>
                    <telerik:GridGroupByField FieldName="Region" FieldAlias="Region" />
                    <telerik:GridGroupByField FieldName="Status" FieldAlias="Status" />
                    <telerik:GridGroupByField FieldName="Scheduler" FieldAlias="Scheduler" />
                </SelectFields>
                <GroupByFields>
                    <telerik:GridGroupByField FieldName="Region" />
                    <telerik:GridGroupByField FieldName="Status" />
                    <telerik:GridGroupByField FieldName="Scheduler"  />
                </GroupByFields>
            </telerik:GridGroupByExpression>
        </GroupByExpressions>
        <SortExpressions>
            <telerik:GridSortExpression FieldName="Region" SortOrder="Ascending" />
            <telerik:GridSortExpression FieldName="Status" SortOrder="Ascending" />
            <telerik:GridSortExpression FieldName="Scheduler" SortOrder="Ascending" />
        </SortExpressions>
        <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
        <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
            <HeaderStyle Width="20px"/>
        </RowIndicatorColumn>
        <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
            <HeaderStyle Width="20px"/>
            <ItemStyle Width="20px" />
        </ExpandCollapseColumn>
        <EditFormSettings>
            <EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
        </EditFormSettings>
    </MasterTableView>
    <EditItemStyle Width="100px" />
    <FilterItemStyle Width="100px" />
    <ActiveItemStyle Width="100px" />
    <ItemStyle Width="100px" />
    <SelectedItemStyle Width="100px" />
    <FilterMenu EnableImageSprites="False"></FilterMenu>
</telerik:RadGrid>
 
<asp:SqlDataSource ID="SDS_SLASummary" runat="server" ConnectionString="<%$ ConnectionStrings:CWFMO %>" SelectCommand="ESP_SchedulerSLASummary" SelectCommandType="StoredProcedure">
    <SelectParameters>
        <asp:ControlParameter ControlID="RDP_StartDate" DbType="Date" Name="startdate" PropertyName="SelectedDate" />
        <asp:ControlParameter ControlID="RDP_EndDate" DbType="Date" Name="enddate" PropertyName="SelectedDate" />
    </SelectParameters>
</asp:SqlDataSource>

Below is my code behind:
protected void RG_SLASummary_ColumnCreated(object sender, GridColumnCreatedEventArgs e)
        {
            if (e.Column is GridNumericColumn)
            {
                GridNumericColumn gridNumericColumn = (GridNumericColumn)e.Column;
                gridNumericColumn.Aggregate = GridAggregateFunction.Sum;
            }
        }


Maria Ilieva
Telerik team
 answered on 26 Feb 2013
1 answer
75 views
Hello,

I have an application that loads UserControls dynamically; using LoadControl("~/...")

In the usercontrol I bind the AutoCompleteBox to a IList (List(Of Long, String))
I have done this in the load and the Init.
When I run it, the AutoComplete is not working... (Probably because the datasource is reset every time?)
I do see a list, and can select something, but the logical first item is not selected, always the first.
The demo however does show this to be a solution (binding in load)

Any idea how I can bind it correct?

Erik
Bozhidar
Telerik team
 answered on 26 Feb 2013
3 answers
329 views
I have a grid which currently uses ExcelML for exporting. I make changes to some of the column header texts in the grid's ItemCreated event. I also include some html break line code in some grid column headers (in the grid declaration) so that these headers will display on two lines.

1) I notice that my changes made in the grid Itemcreated even don't get exported.

2) I would also like to scrub the column headers and replace the <br/> tagas I have with a space or some other character that won't look bad in Excel.

Is it possible to do either of these things using ExcelML, or is there somee other export option that would make these possible?
Kostadin
Telerik team
 answered on 26 Feb 2013
9 answers
158 views
One of our customers has reported a problem with the editor that is also reproducible on the Telerik editor demo page.

The problem occurs in IE but cannot be reproduced in FF or Chrome.

To reproduce, do the following using IE(9):

Switch the editor to HTML mode and replace the existing text with the following:

<a href="http://www.google.com"><img src="../../Img/editor.jpg" /></a>

Switch back to Design mode, click the image that appears in the editor, and hit the delete button on the keyboard.

Switch back to HTML view.

In Firefox, the editor is empty; In IE, the editor retains the following empty link:

<a href="http://www.google.com"></a>


Can you tell me how to achieve the Firefox behavior in IE?

Thanks,
Rumen
Telerik team
 answered on 26 Feb 2013
1 answer
168 views
Hi!

Have af few questions about the possibilities in the AutoCompleteBox:

1. Is it possible to get a tooltip to appear with mouse over on an token, with information about the token chosen?
2. Is it possible to be able to clik a token to get more info on that token?

I have not been able to find documentation about this on your site, that is why I'm asking this question in the forum.

/Thomas
Bozhidar
Telerik team
 answered on 26 Feb 2013
5 answers
923 views

Hi,

i'm using latest version of telerik.web.dll. we have used rad grid control in many of our pages. we have used GridClientSelect Column for the selection of rows. suppose i have parent page and child page. my child page contains radgrid( with GridclinetSelect Column).
i select some rows from child page and click the save button. my selected records are populated in my parent page. now i again open the child page. we want to show the user which rows the user has selected previously. but i'm not able to select the checkboxes from server side. is there anyother way so that i can display the selected rows again when i open the child page by displaying the selected checkboxes. i want to show the selected rows based on my datakey values.

please suggest some solution.

Thanks
Sweta
Shinu
Top achievements
Rank 2
 answered on 26 Feb 2013
3 answers
203 views
hi,
how can I allign the Prices right?

thanks
Eyup
Telerik team
 answered on 26 Feb 2013
6 answers
173 views
Hi,

Is there any way to show the default IE context menu when the user right clicks in the editor? I don't want a custom context menu, just the default context menu. The client has a rather rich IE context menu with customizations from add-ons and in the radeditor the menu is not shown. I have tried disabling the editor context menus but still nothing shows.

Thank you.

Michael
Rumen
Telerik team
 answered on 26 Feb 2013
3 answers
145 views
Hello All,

I am trying to create a "form layout designer" using RadTabStrip, RadPageView, RadDocks, as follows:

  1. A user can dynamically add tabs to the tab strip
  2. At the same time that a tab strip is added, I automatically add a page view "behind the scenes" so that there is a 1:1 correspondence with the tabs
  3. Inside each page view I automatically add a RadDockLayout
  4. A user can then dynamically add RadDockZones inside each layout (I am managing the placement and width via a combination of CSS and properties)
  5. Finally, users are free to select from a number of RadDocks, which then contain the form content, which they can then move freely between dock zones

I have gotten items 1-4 working fine - the positioning of dock zones remains stable and predictable between post-backs. However, I am having trouble getting #5 to work reliably. Among the symptoms I see:

  • Only 1 dock appears after repeatedly adding docks to dock zones
  • After postback, even the 1 dock disappears

Some details: as emphasized by the vast majority of documentation, it is best to create/re-create everything in Page_Init. Thus, I have:

        protected void Page_Init(object sender, EventArgs e)  
        {  
            // Re-create tabs (from persistence store) on the first page visit only  
            if (!Page.IsPostBack)  
            {  
                for (int i = 0; i < CurrentTabCollection.Count; i++) { }  
            }  
 
            // Re-create page views  
            foreach (KeyValuePair<stringint> pageViewTuple in CurrentPageViewIdCollection) { CreateNewPageView(pageViewTuple.Key, pageViewTuple.Value); }  
 
            // Re-create dock layouts  
            foreach (KeyValuePair<stringint> dockLayoutTuple in CurrentDockLayoutIdCollection) { CreateNewDockLayout(dockLayoutTuple.Key, dockLayoutTuple.Value); }  
 
            // Re-create dock zones  
            foreach (KeyValuePair<stringstring> dockZoneTuple in CurrentDockZoneIdCollection) { CreateNewRadDockZone(dockZoneTuple.Key, dockZoneTuple.Value); }  
 
            // Re-create docks  
            for (int i = 0; i < CurrentDockStateCollection.Count; i++)  
            {  
                RadDock dock = CreateRadDockFromState(CurrentDockStateCollection[i]);  
 
                CreateSaveStateTrigger(dock);  
            }  
        } 

Ignore the code about re-creating the tab collection - I'll use that later when I serialize/de-serialize to the database. Using reference code from Telerik, I have attached handlers for the SaveDockLayout and LoadDockLayout, like so:
        private void CreateNewDockLayout(string dockLayoutId, int parentTabIndex)  
        {  
            var newDockLayout = new RadDockLayout { ID = dockLayoutId };  
 
            newDockLayout.SaveDockLayout += FormSectionsRadDockLayout_SaveDockLayout; // Assign dock layout save handler  
            newDockLayout.LoadDockLayout += FormSectionsRadDockLayout_LoadDockLayout; // Assign dock layout load handler  
 
            FormSectionsRadMultiPage.PageViews[parentTabIndex].Controls.Add(newDockLayout);  
        } 

And finally, inside the handlers:
        protected void FormSectionsRadDockLayout_SaveDockLayout(object sender, DockLayoutEventArgs e)  
        {  
            // Save the dock state in session  
            CurrentDockStateCollection = ((RadDockLayout)sender).GetRegisteredDocksState();  
        }  
 
        protected void FormSectionsRadDockLayout_LoadDockLayout(object sender, DockLayoutEventArgs e)  
        {  
            // Populate event args with state information; the RadDockLayout control will automatically move the docks according to this information  
            foreach (DockState state in CurrentDockStateCollection)  
            {  
                e.Positions[state.UniqueName] = state.DockZoneID;  
                e.Indices[state.UniqueName] = state.Index;  
            }  
        } 

I also have all the related code to "create dock from state", "save state trigger", and so on. It seems that these are getting called correctly, but still I get the symptoms described above!

Any ideas on what I'm missing here?

Allen
Slav
Telerik team
 answered on 26 Feb 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?