Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
152 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
115 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
386 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
176 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
183 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
163 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
356 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
122 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
386 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
1 answer
127 views

I have the follwing grid which contains 1500 rows. if I try to sort on a column, it takes over twenty seconds. Is there any way to speed up the sorting?

 <telerik:RadGrid ID="rgAdvSearch" runat="server"
                                     AllowSorting="True" AutoGenerateColumns="False" GridLines="None"
                                     Skin="WebBlue" Width="100%" AllowMultiRowSelection="True">
                                               
                             <SelectedItemStyle BackColor="#99CCFF" />
                       
                             <ClientSettings>
                                 <Selecting AllowRowSelect="True" />
                                 <ClientEvents OnRowDblClick="Row_Select" OnRowClick="Row_Single_Click"  />
                                 <Scrolling AllowScroll="True" />
                             </ClientSettings>
                            
                             <MasterTableView PageSize="30" EnableViewState="true"
                                              ClientDataKeyNames="type, start_time, end_time, nature_cct, status_ss, ref_no, intrp_no, match_lid"
                                              Width="98%">
                                 <RowIndicatorColumn>
                                     <HeaderStyle Width="20px"></HeaderStyle>
                                 </RowIndicatorColumn>
                                 <ExpandCollapseColumn>
                                     <HeaderStyle Width="20px"></HeaderStyle>
                                 </ExpandCollapseColumn>
                                 <Columns>
                                     <telerik:GridCheckBoxColumn CurrentFilterFunction="NoFilter"
                                                                DataField="match_lid" FilterListOptions="VaryByDataType"
                                                                ForceExtractValue="None" HeaderText="Match LID"
                                                                UniqueName="match_lid1">
                                                     <ItemStyle Width="1px" />
                                                     <FooterStyle Width="1px" />
                                                     <HeaderStyle Height="1px" Width="70px" />
                                     </telerik:GridCheckBoxColumn>
                                     <telerik:GridBoundColumn DataField="type" HeaderText="Type" UniqueName="type">
                                     </telerik:GridBoundColumn>
                                     <telerik:GridBoundColumn DataField="start_time" DataType="System.DateTime"
                                                              HeaderText="Start Time" UniqueName="start_time" DataFormatString="{0:dd/MM/yyyy HH:mm:ss}">
                                     </telerik:GridBoundColumn>
                                     <telerik:GridBoundColumn DataField="end_time" DataType="System.DateTime"
                                                              HeaderText="End Time" UniqueName="end_time" DataFormatString="{0:dd/MM/yyyy HH:mm:ss}">
                                     </telerik:GridBoundColumn>
                                     <telerik:GridBoundColumn DataField="nature_cct" HeaderText="Nature / Cct No."
                                                              UniqueName="nature_cct">
                                     </telerik:GridBoundColumn>
                                     <telerik:GridBoundColumn DataField="status_ss"
                                                              HeaderText="Status / Substation /  Description" UniqueName="status_ss">
                                     </telerik:GridBoundColumn>
                                     <telerik:GridBoundColumn DataField="ref_no" HeaderText="Ref. No."
                                         UniqueName="ref_no" Aggregate="Count">
                                     </telerik:GridBoundColumn>
                                     <telerik:GridBoundColumn DataField="intrp_no" UniqueName="intrp_no" Visible = "false">
                                     </telerik:GridBoundColumn>
                                     <telerik:GridBoundColumn DataField="match_lid" UniqueName="match_lid" Visible = "false">
                                     </telerik:GridBoundColumn>
                                 </Columns>
                                 <PagerStyle Mode="NextPrevNumericAndAdvanced" />
                                 <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False"
                                               Font-Strikeout="False" Font-Underline="False" ForeColor="Black" Wrap="True" />          
                             </MasterTableView>

                             <FilterMenu EnableTheming="True" Skin="WebBlue">
                                 <CollapseAnimation Duration="200" Type="OutQuint" />
                             </FilterMenu>

                   </telerik:RadGrid>             

Shinu
Top achievements
Rank 2
 answered on 03 Dec 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?