Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
76 views
I have a piece of code that on save click it validates the users data input.
  If myErrorMsg.Length > 0 Then  
            'myErrorMsg.Insert(0, "Please fix the following errors: <br/>", 1)  
            'RadAjaxManager1.Alert(myErrorMsg.ToString)  
            ScriptManager.RegisterStartupScript(Page, GetType(Page), "RadAlertScript", "Sys.Application.add_load(function(){radalert('" & myErrorMsg.ToString & "',330,210,'Please fix the following errors: ');});", True)  
        End If 
This works fine.  If the data is not correct it will pop the RadAlert.  The issue is if the user does not leave the screen and selects another entry from the grid, it pops the Radalert with every update.

The pages uses RadAjaxManager , RadWindows manager, and acouple of RadGrids.  I only want the RadAlert to show when the save button is clicked and there is an error in the data collected.
Eric
Top achievements
Rank 1
 answered on 10 Apr 2009
1 answer
123 views
I have a question about a very simple issue. Despite searching the forum and the demo's I cannot find the solution...

I have a hierarchial grid. When the expand button of 1 row in level 1 is clicked, the next level appears. When another row in level 1 is clicked the next level also appears. So now 2 rows on level 1 are expanded

I would like to have the next behavior: When 1 row on level 1 is expanded and another expand button of a row on level 1 is clicked, the already expanded row collapses.

I hope I'm clear enough.

Pavlina
Telerik team
 answered on 10 Apr 2009
1 answer
226 views
Hi,
  I have a RadGrid(r) and I have a Panel(lower panel). This panel contains a asp-button. I have added a ajax setting with respect to grid and panel.
AjaxManager.AjaxSettings.AddAjaxSetting(r, lowerpanel);

When I click button I am trying to redirect to other page.
But on redirection it is throwing the following error.

Microsoft JScript runtime error: 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 '<!DOCTYPE HTML PUBLI'.


I have not set any ajax setting saying that lower panel is source of event, why should ajax manaer throw the error??

This is blocker for me... Please do let me know how to tackle the problem.

Pavlina
Telerik team
 answered on 10 Apr 2009
1 answer
148 views
I have a Word document that I am pasting into a RadEditor and then using the ExportToPDF method to create a PDF document. Everything looks good except the font in the PDF is Times New Roman.

Is there a setting I missed? Why is it ignoring the fonts I set in the RadEditor?
Rumen
Telerik team
 answered on 10 Apr 2009
2 answers
177 views
Hi All, I would like to inject Javacript code to manipulate HTML inside user control on server side RadGrid_EditCommand.  Based on category value of a row, I would need to change editable fields on the fly.  So if category is 1 then only show A, B field.  If it is 2 then show B, C on the edit form.



Many Thanks,


<EditFormSettings UserControlName="N.ascx" EditFormType="WebUserControl">                                     
</EditFormSettings>


    protected void RadGrid_EditCommand(object source, GridCommandEventArgs e)
    {
        // inject javascript here to manipulate HTML in usercontrol????
    }
aung maw
Top achievements
Rank 1
 answered on 10 Apr 2009
1 answer
97 views
I'm trying to create a chart with custom x-axis values. Right now, they are defaulting to 1, 2, 3, 4, 5...etc.
I need them to be a specific string value from the datatable. "P 2009, P 2010, P 2010, etc. etc."
There are several things that are dependent on the for loop below (which I left out) which is why I need to keep the for loop.
I cannot bind the series to the datatable. I know that would be much easier, but a lot of functionality is dependent on the for loop below. How may I add the X-axis values?

for
(int idx = 0; idx < dtDataTable.Rows.Count; idx++)

 

{

 

 

  int iValue = Convert.ToInt32(dtDataTable.Rows[idx][sSeries]);

 

 

  string sLabel = iValue.ToString("#,#", CultureInfo.InvariantCulture);

 

  csGLFunc.AddItem(iValue, sLabel);

}

 

this

 

.RadChart1.Series.Add(csGLFunc);

Any help would be very much appreciated.

Thank you.

Sincerely,

Jeff

 

Dessy
Telerik team
 answered on 10 Apr 2009
2 answers
196 views
And I'm a little lost on where to start to fix this issue.

Line: 4
Error: Sys.ScriptLoadFailedException: The script '/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ScriptManager1_HiddenField&amp;compress=1&amp;_TSM_CombinedScripts_=%3b' could not be loaded.


The IE debugger breaks here:
throw Sys._ScriptLoader._errorScriptLoadFailed(b.src,a)

b.src = "/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ScriptManager1_HiddenField&amp;compress=1&amp;_TSM_CombinedScripts_=%3b"

a = false

Any help would be hugely appreciated.
AZFLDave
Top achievements
Rank 1
 answered on 10 Apr 2009
1 answer
187 views
Hi

Is there a method to get the column index of clicked cell..
I have a client-side function

function OnRowSelected(sender, eventArgs)
{
   var 
value = eventArgs.getDataKeyValue("VEHICLE_ID");
   var colIndex = ??????;
} 


so what is the appropriate method to get column index of clicked cell?


Daniel
Telerik team
 answered on 10 Apr 2009
2 answers
141 views
I have an issue in FireFox and Chrome where when initially entering a page, the first PanelItem is expanded incorrectly.  This only occurs when I have an image floating to the right of the PanelBar.  Review the code and test in Firefox or Chrome. You will need to replace the image with an actual image to view this behavior.  IE displays correctly.  Next, remove the image and then the PanelBar exhibits the correct behavior.  Is there a workaround for this?

<div> 
<telerik:RadScriptManager ID="_scriptManager" runat="server" /> 
<img alt="" style="float: right; margin-left: 15px;" src="images/kids4.gif" /> 
<telerik:RadPanelBar Width="500px" ExpandMode="SingleExpandedItem" ID="_faqs" Runat="server" Skin="Office2007">  
<Items> 
    <telerik:RadPanelItem runat="server" Text="Quesiton 1?">  
        <Items> 
            <telerik:RadPanelItem runat="server" Text="Answer" /> 
        </Items> 
    </telerik:RadPanelItem> 
    <telerik:RadPanelItem runat="server" Text="q2?">  
        <Items> 
            <telerik:RadPanelItem runat="server" Text="answer." /> 
        </Items> 
    </telerik:RadPanelItem> 
    <telerik:RadPanelItem runat="server" Text="q3?">  
        <Items> 
            <telerik:RadPanelItem runat="server" Text="answer." /> 
        </Items> 
    </telerik:RadPanelItem>      
</Items> 
</telerik:RadPanelBar> 
</div> 
Paul
Telerik team
 answered on 10 Apr 2009
3 answers
152 views
I have a problem. I have a page that has multiple windows media players displaying videos on it. I have a button on the page that allows the user to send the videos to a library. I am using radprompt control to allow the user to enter a description of the video set. However, when the prompt displays, it shows up behind the videos. I have tried several settings on the RadWindowManager but none seem to help the problem.

How can I make the radprompt show up on top of the videos playing on the page?

Here is the html of one of the WMPs:

<object id="Player5" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" type="x-oleobject" width="210" height="150">
<param name="Name" value="Player5" />
<param name="URL" value="mms://127.0.0.1/test" />
<param name="SendPlayStateChangeEvents" value="true" />
<param name="autoStart"" value="true" />
<param name="uiMode"" value="none" />
<param name="WindowlessVideo" value="false"/>
<param name="ShowAudioControls"" value="false"/>
</object>

P.S. Setting WindowlessVideo to true is not an option.
Georgi Tunev
Telerik team
 answered on 10 Apr 2009
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?