Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
153 views
Hi
    I have used Rad Ajax controls Q2 2008 version.
    I have used RadCombobox. On first RadCombobox depend on selected value we are developed functioanlity to show ethere anothere ComboBox or Texbox. Some times it work fine but some times it will give following error. wheneve error will come that time combobox selection is not working or combox do not give any responce.

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; AskTB5.4)
Timestamp: Wed, 28 Oct 2009 12:44:17 UTC

Message: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
Details: Error parsing near 'Administration_Selec'.
Line: 4723
Char: 21
Code: 0
URI: http://test.com:8080/applicationname/ScriptResource.axd?d=-Jgv8ZgSJ3CG7LC-_W3T-i8dO-NBSfGpnshh3hHdbdXPEShm0iLzJ08uDYlLty_UpQB5ZqNuuf0iFmEt0QhErrFU7-CBVDN1TgEVjlDayQg1&t=ffffffffa8e04a08

 

//////////////////Or some times following error/////////////////////////////////////////////////////////////////////////////////////////

Message: Sys.ScriptLoadFailedException: The script 'http://devweb.ihi.com:8080/AdHocQueryTool/ScriptResource.axd?d=6ogW2h6cbt5jB0bxuSFD2y6YXBObbV_hlKI5N2sDkPQ1JWWHXuyOWOe_qu8xQRr-0&t=ffffffffee471d78' failed to load. Check for:
 Inaccessible path.
 Script errors. (IE) Enable 'Display a notification about every script error' under advanced settings.
 Missing call to Sys.Application.notifyScriptLoaded().
Line: 1266
Char: 13
Code: 0
URI: http://test.com:8080/applicationname/ScriptResource.axd?d=-Jgv8ZgSJ3CG7LC-_W3T-i8dO-NBSfGpnshh3hHdbdXPEShm0iLzJ08uDYlLty_Ug3CD7xGk8j12QpbYiFo4jZAat0BxiTe1yTlTB_8kHd_tFPaHrfquPu1O1B-EYp880&t=ffffffffa8e04a08


Please give your reply.

Thanks 

    
Vesko
Top achievements
Rank 2
 answered on 03 Nov 2009
5 answers
145 views
After exporting in excel, cell appears without grid in excel file? I need to show it. Is it possible?
Petri
Top achievements
Rank 1
 answered on 03 Nov 2009
1 answer
117 views

Granted this is using the Q1 2009 skins and I've not yet had the chance to test it in the Q3 beta, but I thought I'd mention it.

In FF3.5 if you have a page with a PanelBar on it and you increase the text size using ctrl+ then things happen as you might expect that they would, that is, the text in the PanelBar gets bugger.

However, try the same thing in IE8 and as everything on the page becomes larger, the text on the Panelbar appears to become smaller.I'm fairly sure that this is just an illusion caused by everything else getting bigger, but still...

FYI, I've attached 2 images, ss1.gif is the default setting, ss2.gif is the page after pressing ctrl+ a few times.

Paul
Telerik team
 answered on 03 Nov 2009
1 answer
117 views
Hello,

is there a way to keep Row Sorting while having Column Reorder on drag and drop mode?
Thing is that, the header is no more clickable when AllowColumnsReorder is true.

Thank you.
REgards.
Princy
Top achievements
Rank 2
 answered on 03 Nov 2009
1 answer
220 views
Hi
directly to the problem
** i started a new asp web site dragged a script manager then dragged a radcalender it is not showing in design mode and give error 
("Could not load file or assembly '"Telerik.Web.UI\, Version\=2009.2.7.1.35 \,Culture\=neutral\, PublicKeyToken\=121fae78165ba3d4 "' or one of its dependencies. The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047) C:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\WebSites\WebSite3\web.config ")
 
**dragged a radgrid it is not showing in design mode and gives a warning 
{" System.IO.FilenotfoundExceptoin  Could not load file or assembly '"Telerik.Web.UI\, Version\=2009.2.7.1.35 \,Culture\=neutral\, PublicKeyToken\=121fae78165ba3d4 "' )
But it works when i bind it in source mode

** dragged a Radeditor it is shown in design mode and works perfect 

when daggering any telerik component it adds a register tab in the aspx file but not in web.config file there is no entry in the web.config for telerik no assembly to httphandlers 
adding the assembly to the web.config did not solve the problem 

1- what is the difference between the three controls 
2- how to solve the assemble problem 

using telerik Q2 2009 -VS2008 - WinXP
did not upgrade from previous version
thank you

   

Maher Khalil
Top achievements
Rank 1
 answered on 03 Nov 2009
6 answers
221 views
HI.
We have a number of buttons on the page that trigger the show of the Tooltip and the OnAjaxUpdate event server side.
This has worked perfect for a year now using this code.

    protected void OnModalUpdate(object sender, ToolTipUpdateEventArgs e) {
      ControlInfo controlInfo = getControlInfo(e.Value);
      loadActivityControl(true, e.UpdatePanel, controlInfo);
    }

But now we have gotten a new request from our users that they want to be able to go to another control from within one of the controls that reside in the UpdatePanel provided by the tooltip manager. I can not add more button id's to the

TargetControls collection so i need to change the content of the updatepanel in another way. I tried this in my event that will trigger new content to be loaded into the updatepanel.. the member modalManager is the ToolTipManager (We use the tooltip as a popup (Modal) window)

    private void LoadModalControl(object sender, LoadModalControlEventArgs e)
    {
      modalManager.UpdatePanel.ContentTemplateContainer.Controls.Clear();
      loadActivityControl(true, modalManager.UpdatePanel, e.ControlInfo);
      modalManager.UpdatePanel.Update();
    }

This works as far as the correct control loads and everything looks good, but if i do a postback now i get this error
"Microsoft JScript runtime error: Sys.InvalidOperationException: Could not find UpdatePanel with ID 'ctl00_MainContent_ctl03_updatePanel'. If it is being updated dynamically then it must be inside another UpdatePanel"

Best regards, Anders
Svetlina Anati
Telerik team
 answered on 03 Nov 2009
2 answers
310 views
I have a RadTextBox control on a page where the user must enter a new value unique to the database contents (such as with a new user "Screen Name").  I have put a a button on the page next to the RadTextBox that opens a RadWindow so the user can "try" different values until they get a value that is unique (view attached graphic file RadWindow1).  When the user finds a unique value, they can click on a "submit" button to post the value to the RadTextBox on the parent page.

This is all working just fine -- except the displayed value in the RadTextBox on the parent window never shows the updated/changed value.  The RadTextBox does actually contain the new value, it just is never displayed.

For example...the user keys "Bill" into the RadTextBox, then clicks on the "Check" button to display the RadWindow to test the value against the database. Let's suppose "Bill" has to be changed to "Bill123" to get a unique value.  The user would then click on the "Submit" button in the RadWindow to close the window and store the "Bill123" value in the RadTextBox known as "Screen Name".

The javascript being executed when the RadWindow is closed is shown in the graphic file "radwindow2" below.

I have found another forum entry that exactly describes this problem at http://forums.asp.net/p/1440589/3261260.aspx .  Apparently, this is somewhat of a known problem with the RadWndow and the RadTextBox when used in this scenario.

Is there any way to get the RadTextBox to display the newly updated value?  If I click the mouse in the Screen Name field after it has been updated, the new value will "magically" display (just as described in the forum link specified above).

Thanks in advance if anyone can tell me how to correct this behavior!

Lynn

P.S. - I apologize for the somewhat confusing variable/field names used in the javascript code.  I have been using your demo of the RadWindow control -- "Returning Values from a Dialog" as a starting point and then modifying in "baby steps" until getting what I need.
So the variable names are a combination of those from the demo and from my web page.

Lynn
Top achievements
Rank 2
 answered on 03 Nov 2009
1 answer
140 views
Hi

I saw this sample that shows how to make the RadTextBox accept only valid e-mail addresses
http://www.telerik.com/help/aspnet/input/input_radtextboxemailmask.html


Do you have a similar sample to use the RadTextBox to accept only valid web address?

Thanks
Dimo
Telerik team
 answered on 03 Nov 2009
6 answers
314 views
I am trying to use the CommandItem to add a new record to my grid. But when I process the "RadGrid2_ItemCommand" event in my code-behind, the textbox I entered a value into does not contain the text.

My procees is this: I click the "add new record" link and the insert template displays where I can type in my field data. I click insert and it goes to the Radgrid2_itemcommand event. But the Text property of the textbox is empty.

Thoughts?

Here is the radgrid (simplified)...

      <telerik:RadGrid ID="RadGrid2" runat="server" PageSize="20" AllowPaging="True" AllowSorting="True"
         GridLines="None" AllowFilteringByColumn="True" AutoGenerateColumns="false" OnItemDataBound="RadGrid2_ItemDataBound"
         OnItemCommand="RadGrid2_ItemCommand">
         <ClientSettings>
            <Selecting AllowRowSelect="True" />
         </ClientSettings>
         <MasterTableView DataKeyNames="Id" CommandItemDisplay="Top">
            <Columns>
               <telerik:GridBoundColumn DataField="ProposalName" DataType="system.string" HeaderText="Proposal Id"
                  ReadOnly="True" SortExpression="ProposalName" UniqueName="ProposalName">
               </telerik:GridBoundColumn>
            </Columns>
            <EditFormSettings EditFormType="Template">
               <FormTemplate>
                  <table id="Table1" cellspacing="1" cellpadding="1" width="250" border="0">
                     <tr>
                        <td>
                           Proposal Id:
                        </td>
                        <td>
                           <asp:TextBox ID="TextBoxInsertedProposalName" Text='<%# Bind( "ProposalName" ) %>'
                              runat="server" />
                        </td>
                     </tr>
                     <tr>
                        <td align="right" colspan="2">
                           <asp:Button ID="Button1" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'
                              runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'>
                           </asp:Button>&nbsp;
                           <asp:Button ID="Button2" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel">
                           </asp:Button>
                        </td>
                     </tr>
                  </table>
               </FormTemplate>
            </EditFormSettings>
         </MasterTableView>
      </telerik:RadGrid>

Here is my code-behind...

    protected void RadGrid2_ItemCommand(object source, GridCommandEventArgs e)
    {

        if (e.CommandName == RadGrid.PerformInsertCommandName) // after the user clicks "insert"
        {
            GridEditableItem editedItem = e.Item.OwnerTableView.GetInsertItem();

            string insertedProposalName = (editedItem.FindControl("TextBoxInsertedProposalName") as TextBox).Text;
            // this should have the value ABCD but instead has the value string.empty

            Hashtable newValues = new Hashtable();
            foreach (DictionaryEntry entry in newValues)
            {
                string key = entry.Key.ToString();

                if (key == "ProposalName")
                {
                    string value = entry.Value.ToString();

                    Debug.Print(key + " = " + value);
                    break;
                }
            }
        }
    }

Johny
Top achievements
Rank 1
 answered on 03 Nov 2009
1 answer
117 views
Hi,

I'm using version 2009.2.1007.35 of the radcontrols at the moment. I have a RadScheduler component in my page.
Moving an appointment results in a piece of javascript running, which uses a call to a webmethod to see if the appointment can be moved. Because I don't want the appointment to "jump around on the screen", I don't cancel the event.
When the call to the webmethod returns, it might return a value indicating that the move was invalid or not allowed. In that case, I have to move the appointment back to its original time (begin and end), but also to its original resource.

To do this I have this piece of code:
var curResource = telerikAppointment.get_resources().getResourceByType("Employee"); 
curResource.set_key(oldEmployeeID); 
curResource.set_text(oldEmployeeName); 
telerikAppointment.set_start(oldStartTime); 
telerikAppointment.set_end(oldEndTime); 
radScheduler.updateAppointment(globalData.telerikAppointment, false); 

But now the problem:

When this code has run, the resource in the scheduler itself is also overwritten. I will try to explain this: Say I move an appointment from resource 1 to 2, but it is invalid, so I move it back to 1 using the code as above. Afterwards, everything I move to 2 will have e.get_targetSlot().get_resource().get_key() = 1 in a handler for the OnClientAppointmentMoveEnd event, while that should be 2. So it seems the set_key and set_text on the resource of the appointment has also overwritten the resource of the scheduler itself.

This might be intended (probable the resources of the appointment ARE the resources known in the Scheduler), so I'm not sure if this is a bug. But in any case, I'm looking for a way to move an appointment from one resource to another in clientside javascript, without messing things up

Any help would be greatly appreciated!
Datamex
Top achievements
Rank 2
 answered on 03 Nov 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?