Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
83 views
hi,

i want to open a popup when user click on radMenuItem.
this is possible or not.
Shinu
Top achievements
Rank 2
 answered on 10 Jul 2008
1 answer
152 views

I’m in the process of converting our web application from RadControls for ASP.NET to the new RadControls for ASP.NET AJAX. The application has been configured to use ASP.NET AJAX and things seem to be working fine. Although, I have encountered a scenario that does not seem to work with the new AJAX controls but had worked previously.

Basically, there is a page with a grid control that allows editing using a user control. The user control contains a RadWindow control and some javascript to open the RadWindow.

There is a button on the user control that is used to execute the script to open the RadWindow using an AJAX request (ResponseScripts.Add(...)). When the grid is in edit mode and the button is clicked to open the RadWindow, the following JavaScript error is thrown:

“Microsoft JScript runtime error: Object expected”

It seems like the RadWindow control and the javascript within the user control are ignored when the user control is rendered on the page. The javascript within the usercontrol is wrapped within a “RadCodeBlock” tag. Viewing the source for the page shows that the javascript is missing. 

Any help in resolving the above issue would be greatly appreciated. 


Thanks in advance,

Tony

 

Rosen
Telerik team
 answered on 10 Jul 2008
1 answer
116 views
Hello,

I am working on a hierarchical grid and each level uses a different data table.
I am aware of the fact that telerik has self-referencing hierarchical model of radGrid but somehow that doesn't solve my purpose.

I would like experts to review my design and comment upon the efficiency and improvement if needed.



    RadGrid RadGrid2 = new RadGrid();


  protected void Page_Load(object sender, EventArgs e)
{
       GenerateGrid(dtUserData);
}


  private void GenerateGrid(DataTable dtUserData)
    {
          //define RadGrid2 properties. Grid is dynamically generated on the server side and then thrown inside a placeholder right at the end.

RadGrid2.DataSource = myTable;

 RadGrid2.MasterTableView.DataKeyNames = new string[] { "Community", "Locality" };

        GridBoundColumn boundColumn;
        boundColumn = new GridBoundColumn();
        boundColumn.DataField = "Community";   
        RadGrid2.MasterTableView.Columns.Add(boundColumn);

       //set Community as Groupby Expression for the grid

      // now define the first child table of the master table as follows

        GridTableView tableViewDS = new GridTableView(RadGrid2);

        tableViewDS.Name = "tableViewDS";
        tableViewDS.DataSource = myTable1;

        tableViewDS.Width = Unit.Percentage(100);

        tableViewDS.DataKeyNames = new string[] { "Community", "Locality", "Authority" };

          // Set relations between the parent and the child here

        // make a child tableview of tableViewDS now in the same manner tableViewDS is created.

}

**************************************************
****************************************************

Now the problem is that the whole grid is created on each post back.

There is something called
RadGrid2.MasterTableView.HierarchyLoadMode = GridChildLoadMode.Client;
But this won't fetch values for my data tables on post back. Datatable values are available at the server side only I guess. Don't know how to do the whole thing on client side.
I have 5 such levels in my grid i.e one single hierarchy runs down from level 1 to 5.

Is there any way to make my code efficient.

Also, is there a way to create each level dynamically on ItemDatabound or something.

Please suggest how should I improve my hierarchical grid.

Thanks and regards,
Harpreet
       



Baatezu
Top achievements
Rank 2
 answered on 10 Jul 2008
2 answers
78 views
Hi all,

We are starting on a new project and we are looking on the tools and the platform that we are going to work on. The Client requirement is this.

The Admin will use the ImageManager and upload an Image to the said path. But the requirement is that the Admin wants to see image preview of the images in the current selected folder.

For ex: 
In this
http://www.telerik.com/DEMOS/ASPNET/Prometheus/Editor/Examples/FileManagers/DefaultCS.aspx example when we click on the ImageManager and select the Marketing folder, we need to see the preview of all the images in the folder.

Is this possible ?
BalaVikram
Top achievements
Rank 2
 answered on 10 Jul 2008
3 answers
236 views
Hi,

what I would like to do is to add or remove the edit column on postback. I tried setting the AutoGenerateEditColumn property in code without success.

Anyone a suggestion?

Thanks in advance

Andreas
Princy
Top achievements
Rank 2
 answered on 10 Jul 2008
1 answer
76 views
Hey Guys,

We are currently using the 2006 Q1 version of Rad Controls. Seeing our web application is extremely massive, we can't just go out and do a swap of the rad controls.

is it possible to run the promethius version along-side of the Q1 2006 controls (on the same page as well as the same project)?
Georgi Tunev
Telerik team
 answered on 10 Jul 2008
1 answer
175 views
I want to limit the entered time value to a min-max range fro the datetimepicker, so that if a user enters 7:03 am it will be corrected to 9:00am for example.

Is this achievable in client side JS code?
Daniel
Telerik team
 answered on 10 Jul 2008
3 answers
119 views
Would it be possible to get the source code to the radeditor used in the forum. I am very interested in how the code paste window works, including the way the code is formatted within the radwindow and then passed to the radeditor.

Kind Regards
Rumen
Telerik team
 answered on 10 Jul 2008
2 answers
146 views
We are using the rad controls inside of sharepoint.  We've done a lot of skinning of individual RadControls.  We've created our own non embedded skins for each of the controls.

With our custom LV skins, we've set this key in the web.config, and it has worked with all the other controls.

<

add key="Telerik.Skin" value="LV" />

The rad editor has presented some problems.  It is skinned and working,but if we click on the table editor and then the table wizard, it pops open a rad window that throws an exception about the SpinBoxColumns being unable to find the embedded skin LV.

Looking at the TableDesign.ascx, it seems that control is loading other Telerik controls that don't have EnableEmbeddedSkins set to false.  I set about trying to change the dialogs so I could set the Enable EmbeddedSkins to false so it stop throwing the exception.

I've tried using code behind or declaratively setting the ExternalDialogsPath and it never seems to use the modified dialog ascx files.

In the OnLoad event we set the properties of the Rad Editor.

// Code Snippet
this
.EnableEmbeddedSkins = false;
this.CssFiles.Add("/_layouts/LearningVillage/Styles/RadControls/EditorContentArea.css");
this.DialogHandlerUrl = SPContext.Current.Site.Url + ((SPContext.Current.Site.Url.EndsWith("/", StringComparison.InvariantCulture)) ? "" : "/") + "_layouts/LearningVillage/Telerik.Web.UI.DialogHandler.aspx";
this.ExternalDialogsPath = SPContext.Current.Site.Url + ((SPContext.Current.Site.Url.EndsWith("/", StringComparison.InvariantCulture)) ? "" : "/") + "_layouts/LearningVillage/EditorDialogs/";
this.Tools.Clear();

//End Code Snippet, below this we set which EditorTools are added to the toolbar.

It seems that setting the ExternalDialogsPath has no effect with the Rad Editor does not effect where the dialogs are being loaded from.

Any suggestions?

Lini
Telerik team
 answered on 10 Jul 2008
3 answers
228 views
Hi,

I have some hidden inputs whose values are updated dynamically with javascript (I am developing an ajax cropping tool). When I use a normal postback, the values are updated, however when I use RadAjax they are not. I have put the inputs in a RadAjaxPanel and wired up the button to this panel, but the values are just coming through empty.

<telerik:radajaxpanel id="ajaxPanelInputs" runat="server">  
<input type="hidden" runat="server" id="x" /> 
<input type="hidden" runat="server" id="y" /> 
</telerik:radajaxpanel> 

I can confirm that the inputs are being updated inside the panel via javascript. Any ideas?
Missing User
 answered on 10 Jul 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?