Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
964 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
214 views
hi,
how can I allign the Prices right?

thanks
Eyup
Telerik team
 answered on 26 Feb 2013
6 answers
191 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
175 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<string, int> pageViewTuple in CurrentPageViewIdCollection) { CreateNewPageView(pageViewTuple.Key, pageViewTuple.Value); }  
 
            // Re-create dock layouts  
            foreach (KeyValuePair<string, int> dockLayoutTuple in CurrentDockLayoutIdCollection) { CreateNewDockLayout(dockLayoutTuple.Key, dockLayoutTuple.Value); }  
 
            // Re-create dock zones  
            foreach (KeyValuePair<string, string> 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
199 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
178 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
345 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
114 answers
6.6K+ views
I know that the Rad Controls are built ontop of ASPNet Ajax controls.  However, I downloaded the a new version of the Ajax toolkit and I get the following JS error:
 AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. Ensure the correct version of the scripts are referenced. If you are using an ASP.NET ScriptManager, switch to the AjaxScriptManager in System.Web.Ajax.dll, or use the ToolkitScriptManager in AjaxControlToolkit.dll.

What version of ASP.NET Ajax is RadControls using?  Thanks,

-Hector
Radoslav
Telerik team
 answered on 26 Feb 2013
1 answer
94 views
I want to display an ASPX page in a PageView which I am currently doing with the ContenURL.
Page displays fine but I don't want to open that page in a new window on tab click. Is there any way to disable that?
Should I be doing this another way?
Nencho
Telerik team
 answered on 26 Feb 2013
3 answers
130 views
I am curious if there is a possibility of converting content posted using Radeditor in a wss3 environment to the standard content editor web part. For instance in preperation for migration to foundation 2010. so that the site retains the posted content but leverages the out of box editor in the new environment.
Rumen
Telerik team
 answered on 26 Feb 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?