Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
321 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
156 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
159 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
910 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
187 views
hi,
how can I allign the Prices right?

thanks
Eyup
Telerik team
 answered on 26 Feb 2013
6 answers
166 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
142 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
2 answers
186 views
Hello,

Is there a way to only show 24 x 1-hour slots on the RadScheduler in Timeline view?

Thanks.

--- Val
Bozhidar
Telerik team
 answered on 26 Feb 2013
1 answer
155 views
Hi,
I have a Radnumerictextbox and i want to enter values with 2 decimal places. Also how to access these values with decimal place in code behind?
Thank you,
Merlin.
Princy
Top achievements
Rank 2
 answered on 26 Feb 2013
2 answers
321 views
Hi,

I'm trying to use this:
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" SelectCommand="SELECT [ProductID], [ProductName], [ProductPrice], [PicName], [ModifiedDate] FROM [Products] WHERE ([UserID] = @UserID)">
<SelectParameters>
<asp:SessionParameter Name="UserID" SessionField="LoginID" Type="Int32" DefaultValue="1" />
</SelectParameters>
</asp:SqlDataSource>

My stored cookie name is: LoginID and the content is: UserGUID=c2a89926-868b-41a2-bad2-9a67fe9c140a&UserID=2

How can I get the UserID session value from my session?
Shinu
Top achievements
Rank 2
 answered on 26 Feb 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?