Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
115 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
221 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
174 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
90 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
190 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
177 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
138 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
143 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
1 answer
63 views
Hello all,
I upgraded my RadControls for ASPNET AJAX to Q1 2009 (2009.1.402.35) today an I am getting the following exception:

System.Web.HttpException: This is an invalid webresource request. at System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

After digging into this, there seems to be a problem with using the VISTA skin with the combo box on a user control that is loaded onto the page.  I have tried all the other skins (Black, Default, Forest, Hay, etc) and the only skin that throws the exception is Vista. 

Here is the combobox definition:
     <telerik:RadComboBox ID="ddlSavedFilters" runat="server" Height="190px" Width="420px" MarkFirstMatch="true" Skin="Vista"
                                EnableLoadOnDemand="true" HighlightTemplatedItems="true" Enabled="False"
                                OnSelectedIndexChanged="ddlSavedFilters_SelectedIndexChanged"
                                AutoPostBack="True" AppendDataBoundItems="True">
                                <HeaderTemplate>
                                    <ul>
                                     <li class="col1">Filter Name</li>
                                     <li class="col2">Date Added</li>
                                     <li class="col3">Filter</li>
                                    </ul>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <ul>
                                     <li class="col1"><%# DataBinder.Eval(Container.DataItem, "DataViewFilterName")%></li>
                                     <li class="col2"><%# DataBinder.Eval(Container.DataItem, "DateAdded", "{0:MM/dd/yy}") %></li>
                                     <li class="col3"><%# DataBinder.Eval(Container.DataItem, "DataViewFilterDescription")%></li>
                                    </ul>
                                </ItemTemplate>
                            </telerik:RadComboBox>

For now, my workaround is to use the Office2007 skin, but I would really like to be able to use the Vista skin.

Thanks,
Bryan
Simon
Telerik team
 answered on 10 Apr 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
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
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?