Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
180 views
Hi!

I have an Editor on my page. This editor is set to be disabled in pageload, so that the content is displayed with no toolbars, no frames or anything; just the text. However, I have a button that is supposed to set the editor to enabled so that the text can be edited. When I click this button, the editor is enabled, showing the toolbars etc, but the editor is empty (the original text is removed), I can't write in it, and the buttons in the toolbar isn't working.

Is there another way to do this, other than using enabled/disabled?

Cheers,
Erlend Haukland
Rumen
Telerik team
 answered on 03 Dec 2008
1 answer
150 views
Is it possible to create a calculated column which takes the substring of the first 15 characters of a string field? I want to only put the first 15 characters of a field int he column, and then have a hover tooltip that will show the whole field. Is this possible?

Thanks,
Laura
Yavor
Telerik team
 answered on 03 Dec 2008
0 answers
114 views
I'm placing the treeview inside  "asp:WizardStep" and I keep getting "Object reference not set to an instance of an object.".
In one post I found trick to add the tree in panel and add the tree and the events to the panel in "Page_Init".
<asp:Wizard ID="Wizard1" runat="server">
                <WizardSteps>
                    <asp:WizardStep runat="server" Title="Step 1">
                        <asp:Panel ID="Panel1" runat="server">
                        </asp:Panel>
                    </asp:WizardStep>
            </asp:Wizard>

This trick work only if the ExpandMode of the nodes is "ServerSide" but not if the ExpandMode is "ServerSideCallBack"

You can read an old discussion at
http://64.233.183.132/search?q=cache:AkaVFLOkCRwJ:www.telerik.com/community/forums/thread/b311D-mdbcm.aspx.aspx+RadTreeView+asp:WizardStep&hl=iw&gl=il&strip=1
yonibit
Top achievements
Rank 1
 asked on 03 Dec 2008
9 answers
369 views
Hello,

I am supervising a long database insert process with a RadProgessManager and a custom RadProgressArea.
4000 records to insert with long test operations.
I want to give the user the oportunity to cancel the whole import process and I added a Cancel button in my progresstemplate, just copying the documentation:
                    <li class="ruActions">
                       <input class="ruButton ruCancel" id="CancelButton" runat="server" type="button" value="Cancel" />
                    </li>

in my codebehind, I added necessary code to break my import loop with code like this
                    if (!Response.IsClientConnected)
                    {
                        CurrentOperation    =   string.Format("Traitement du fichier {0} interrompu.",strFile);
                        break;
                    }

When I click on the cancel button, the page is display in the state before pressing my Import button, the Progress Area diseappear.
This looks good, but in the code behind, it seems that my code never reach the test ' if (!Response.IsClientConnected)'. Where has gone this process: mystery for me.

Then I decided to try another file in the same debug session, pressing import button with a shorter file (4 records).
The process reach its end, but here, surprise, it continues on the previous cencelled operation.
Miracle would say some of us!
As I don't believe in transcendental triggers, I am requesting some help here.

How to be sue that cancel button has cancelled the server process ?
Moreover, I would appreciate to e able to log on he server that the process has been cancelled ?

Thanks for help.
CS


Veselin Vasilev
Telerik team
 answered on 03 Dec 2008
4 answers
173 views
Hi,

I just upgraded to latest version (q3 2008 sp1) and the modal window i have in my app doesn't get semi transparent background any longer. It shows small grayish fields but not all over the background that it did in the q2 version.

In IE this works fine , the problem is just in Firefox.

I saw that there was some kind of fix on this matter in this release might be that fix that is causing Firefox to "fail" the background.

So my question is , can this be fixed or should I downgrade?

BR
Andreas
Andreas
Top achievements
Rank 1
 answered on 03 Dec 2008
3 answers
173 views
Hi,

Is it possible to download the new skins introduced throught the Q3 version of RadControls? The skins are Forest and SkyBlue.
I want to download skins seperately.

Thanks,
Pradeep Y
Dimo
Telerik team
 answered on 03 Dec 2008
1 answer
161 views
Hello everyone,

I bind my radgrid with an object.
I set the grid in the code-behind (Columns + options of the grid in the Page_Load in an "if(!isPostBack)").
if (!IsPostBack) 
            { 
                RecordKeepingGrid.ShowGroupPanel = true
                RecordKeepingGrid.GroupingEnabled = true
                RecordKeepingGrid.AllowPaging = true
                RecordKeepingGrid.AllowSorting = true
                RecordKeepingGrid.AllowFilteringByColumn = true
                RecordKeepingGrid.AutoGenerateColumns = false
                RecordKeepingGrid.PagerStyle.Mode = GridPagerMode.NumericPages; 
                RecordKeepingGrid.PageSize = 20; 
 
                GridBoundColumn boundColumn2 = new GridBoundColumn(); 
                RecordKeepingGrid.MasterTableView.Columns.Add(boundColumn2); 
                boundColumn2.UniqueName = "FieldNameRK"
                boundColumn2.DataField = "Field.Name"
                boundColumn2.HeaderText = "Field Name"
                boundColumn2.AllowFiltering = true
                boundColumn2.AllowSorting = true
                boundColumn2.AutoPostBackOnFilter = true
                boundColumn2.Groupable = true
                boundColumn2.Reorderable = true
 
                GridBoundColumn boundColumn = new GridBoundColumn(); 
                RecordKeepingGrid.MasterTableView.Columns.Add(boundColumn); 
                boundColumn.UniqueName = "StartDateRK"
                boundColumn.DataField = "startDate"
                boundColumn.HeaderText = "Start Date"
                boundColumn.DataType = Type.GetType("System.DateTime"); 
                boundColumn.AllowFiltering = true
                boundColumn.AllowSorting = true
                boundColumn.AutoPostBackOnFilter = true
                boundColumn.Groupable = true
                boundColumn.Reorderable = true
 
                GridBoundColumn boundColumn3 = new GridBoundColumn(); 
                RecordKeepingGrid.MasterTableView.Columns.Add(boundColumn3); 
                boundColumn3.UniqueName = "TypeOperationRK"
                boundColumn3.DataField = "operation.typeOperation.name"
                boundColumn3.HeaderText = "Operation Type"
                boundColumn3.AllowFiltering = true
                boundColumn3.AllowSorting = true
                boundColumn3.AutoPostBackOnFilter = true
                boundColumn3.Groupable = true
                boundColumn3.Reorderable = true
 
                GridBoundColumn boundColumn4 = new GridBoundColumn(); 
                RecordKeepingGrid.MasterTableView.Columns.Add(boundColumn4); 
                boundColumn4.UniqueName = "OperationNameRK"
                boundColumn4.DataField = "operation.name"
                boundColumn4.HeaderText = "Operation Name"
                boundColumn4.AllowFiltering = true
                boundColumn4.AllowSorting = true
                boundColumn4.AutoPostBackOnFilter = true
                boundColumn4.Groupable = true
                boundColumn4.Reorderable = true
 
                GridBoundColumn boundColumn5 = new GridBoundColumn(); 
                RecordKeepingGrid.MasterTableView.Columns.Add(boundColumn5); 
                boundColumn5.UniqueName = "AreaRK"
                boundColumn5.DataField = "area"
                boundColumn5.HeaderText = "Area"
                boundColumn5.AllowFiltering = true
                boundColumn5.AllowSorting = true
                boundColumn5.AutoPostBackOnFilter = true
                boundColumn5.Groupable = true
                boundColumn5.Reorderable = true
            } 

And this is my method to bind my grid (I hide some private code):
long[] fieldsSelected = [..........].getFields(); 
 
            [.............................] 
            List<OR[....]> lstRk = new List<OR[....]>(); 
             
            if (fieldsSelected.Length != 0) 
            { 
                foreach (long id in fieldsSelected) 
                { 
                    foreach (OR[....] ork in rs.getR[....]ByIdField(id)) 
                    { 
                        lstRk.Add(ork); 
                    } 
                } 
                MyGrid.DataSource = lstRk; 
                MyGrid.DataBind(); 
            } 
 
            MyGrid.DataBind(); 
I call this method in the Page_Load and when the fieldsSelected variable change (to update the grid).

When I group my data and I want to collapse them or sorting the group item, I've got a Javascript Error :
Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: Invalid postback or callback argument.  Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page.  For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them.  If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation. 

I try to put the EnableEventValidation at true but nothing change. If I put it at false, there's no error but nothing happened.

Do you have a solution to my problem.

Thanx.
Yavor
Telerik team
 answered on 03 Dec 2008
3 answers
347 views
I am using a RadDateTimePicker on my pages. When the user presses the calendar  button to popup the calendar it always defaults to the current month. Is there a way to set the default date when it pops up without actually selecting a date in the control? Also when selecting a date in the calendar it sets the time to 12:00am, is there anyway to change the default for that? Thanks much!

...Scott

 

Sebastian
Telerik team
 answered on 03 Dec 2008
3 answers
115 views
Added the Flash Manager to RADEditors toolsfile. Flash Manager shows up in RADEditor and seems to work, but the layout is not good. For example the text on the "Insert" and "Cancel" buttons is missing.
RADEditor version 5.2.0
Browser: ie7  (and looks even worse with Firefox 3)

Any suggestion for a solution?

BR, Marcus

Stanimir
Telerik team
 answered on 03 Dec 2008
3 answers
371 views
Hi
It seems like ValidationSettings.ValidationGroup does not take affect at client side.
To reproduce error please add the following lines in demo Examples\DataEditing\Validation\DefaultCS.aspx just after RadGrid:

        <asp:TextBox ID="tbValidation" runat="server"/>
        <asp:RequiredFieldValidator runat="server" ID="rfvValidation"
           ControlToValidate="tbValidation" ErrorMessage="Field is required!">
        </asp:RequiredFieldValidator>

then run example, set validation drop down to "FormValidationGroup" ant try to add new record (rfvValidation will not allow).
Looks like RadGrid performs validation only at server side.
Yavor
Telerik team
 answered on 03 Dec 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?