Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
39 views
FileExplorer: Chrome: When closing the fileExplorer's window, audio file is still being played

Description:

1. In chrome, choose audio file and open it, the audio file will start playing
2. close the window (clicking on the X mark), while the audio is being played.

This only happens in chrome, because in Explorer the windows media player is being open in a different window.

How can i solve it?
Dobromir
Telerik team
 answered on 01 May 2013
4 answers
291 views
This is a simple example of something I am investigating for use in mail merges.

Telerik suggests using CSS style sheets to stylize the contents of the RadEditor and it works great as expected - in the browser. The issue I am running into is happening when trying to perform a mail merge using the data captured in the RadEditor. The only data captured in the RadEditor is the HTML and obviously doesn't include any styles (Code Snippet 1).

Captured Data 1:
<ol>   
    <li>Item 1</li>   
    <li>Item 2   
        <ol>       
            <li>Sub item a</li>       
            <li>Sub item b       
                <ol>           
                    <li>1</li>           
                    <li>2</li>           
                    <li>3           
                        <ol>               
                            <li>11</li>           
                        </ol>           
                    </li>       
                </ol>       
            </li>   
        </ol>   
    </li>
</ol>

My question is: Is there any setting I can change for the RadEditor to honor the styles for the ordered list displayed in Code Snippet 2 so that the inline styles are saved with the rest of the content?
If there is no setting I can change, how can I go about forcing the injection of these inline styles when the user is entering data into the RadEditor?

Code Snippet 2:
<ol style="list-style-type: decimal;">   
    <li>Item 1</li>   
    <li>Item 2   
        <ol style="list-style-type: lower-alpha;">       
            <li>Sub item a</li>       
            <li>Sub item b       
                <ol style="list-style-type: lower-roman;">           
                    <li>1</li>           
                    <li>2</li>           
                    <li>3           
                        <ol style="list-style-type: lower-roman;">               
                            <li>11</li>           
                        </ol>           
                    </li>       
                </ol>       
            </li>   
        </ol>   
    </li>
</ol>

Thanks,

Kenny

kenny@kennywalter.com
http://kennywalter.com/
Kenneth
Top achievements
Rank 1
 answered on 01 May 2013
2 answers
1.1K+ views
How do you set the Z-Index of a RadWindow or what is the Z-Index so that it is behind another element.?

Michael
Michael
Top achievements
Rank 1
 answered on 01 May 2013
5 answers
134 views
Hello Telerik team,

I have been struggling with one issue, how to declaratively localize PagerTextFormat through App_GlobalResources custom file. I have created Application.resx file from which I want to add text to PagerTextFormat.

Here is the current definition inside of MasterTableView, which works normally:
<PagerStyle Mode="NextPrevAndNumeric" PagerTextFormat="{4}Celkový počet záznamov: <b>{5}</b>" />
In English it means: Total records: 18

Now, I want to make it multilingual, so I tried to replace text with variable from my .resx file, something like this:
<PagerStyle Mode="NextPrevAndNumeric" ShowPagerText="true" PagerTextFormat="{4}<%$ Resources: Application, String1 %>{5}" />

The problem is that Radgrid doesn't show my text from variable String1, instead of full text, it shows just number 18.

Please help me to solve this issue. I don't want to use codebehind solution...

Thank you.

Best regards

Vasssek
Eyup
Telerik team
 answered on 01 May 2013
1 answer
124 views
hi all,

som im trying to do a grid view with hierarchical details, but having problems if i connect directlyu to DB no prob using sqldatasource, trhe problem begins when i do with a objectadatasource, i have exeptions and i doesnt work whant can i be doing wrong?
Martin
Telerik team
 answered on 01 May 2013
1 answer
82 views
Hi
After checking nodes I need to update a Grid. I do this by handeling the EntryAdded and EntryRemoved events. After handling those events, I call Rebind() on the grid. The problem is that when I am using "CheckChildNodes", the Rebind on the grid only fires the first time EntryAdded event is handled. After that, Rebind() is ignored.
How can I trigger the Rebind() event after all entries are added to the DropDownTree? All my code is serverside.

- Thorgeir
Peter Filipov
Telerik team
 answered on 01 May 2013
1 answer
153 views
Hi,

I have created a RadCombo control and binded some values to it. I want to add filter to that combobox and applied the filter value using Filter="Contains" property as seen in the code below. When I expect the values to be filtered, it does not. Please find the screenshot attached. 

btw, I have referenced the script resource assembly i.e. axd file in the web.config (included) and is there anything wrong in that file. 
Am I missing anything ? 

  
<form id="form1" runat="server">
   <div>
        
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1">
          
    </telerik:RadScriptManager>
    <table>
       <tr>
           <td><telerik:RadComboBox ID="RadComboBox1" runat="server" Width="186px"  AutoPostBack="true"  EnableLoadOnDemand = "true" Filter="Contains" OnSelectedIndexChanged="RadComboBox1_SelectedIndexChanged" Label="Country:" /></td>
           <td><telerik:RadComboBox ID="RadComboBox2" runat="server" Width="186px" AllowCustomText="true" Filter="Contains" Label="Province:" OnSelectedIndexChanged="RadComboBox2_SelectedIndexChanged" /></td>
       </tr>
        <tr>
           <td>Country : <asp:Label ID="lblCountry" runat="server" Text=""></asp:Label> </td>
           <td>Province :<asp:Label ID="lblProvince" runat="server" Text=""></asp:Label></td>
       </tr>
    </table>
     <asp:XmlDataSource runat="server" id="XmlDataSource1" XPath="Countries"
           DataFile="~/App_Data/CountryRegionMapping.xml"/>
   </div>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadComboBox1" >
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadComboBox2" />
                </UpdatedControls>
            </telerik:AjaxSetting>           
        </AjaxSettings>        
       </telerik:RadAjaxManager>
       <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />
   </form>
<configuration>
    <system.web>
        <compilation debug="true" targetFramework="4.0" />
      <httpHandlers>
        <remove verb="*" path="*.asmx" />
        <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        <add verb="GET,HEAD" path="ScriptResource.axd" validate="false" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
      </httpHandlers>
      <httpModules>
        <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      </httpModules>
    </system.web>
    
   
</configuration>
Plamen
Telerik team
 answered on 01 May 2013
2 answers
765 views
How and where can you check a RadComboBox for a value? I am getting an error because I am trying to set the selected value of my RCB to a value in my grid that I use databinder to get at. If the value is not in the original dataset I bound to my RCB it errors out. What I want to do is when I open my custom edit form that has this RCB in it, check to see if the value from the grid exists in the available items of the RCB. I cannot add it as it is no longer a valid option but my client keeps it for historical records. I am calling the following code in the pageLoad method but it is not working as it seems as if the RCB data items are not available here.

    myDDL.DataTextField = ds.Tables[0].Columns["DATA"].ToString();
    myDDL.DataValueField = ds.Tables[0].Columns[0].ToString();
    myDDL.DataSource = ds.Tables[0];
 
    var myValue = String.Empty;
    var ddlValue = DataBinder.Eval(DataItem, "DATA");
    Session["ddlValue"] = ddlValue;
    myValue = Session["ddlValue"].ToString();
    
    if (DataItem != null)
    {
        if (myDDL.FindItemByValue(ddlValue.ToString()) == null)
        {
            myDDL.SelectedIndex = -1;
        }
        else
        {
            myDDL.SelectedValue = ddlValue.ToString();
        }
    }
    else
    {
        myDDL.SelectedValue = myValue;
    }
}
Plamen
Telerik team
 answered on 01 May 2013
5 answers
1.1K+ views
Hi,

I want to avoid double clicks on the Insert button as it cause duplicate entry.
I have checked in the InsertCommand event that the user clicked twice but if I cancel the event - none of the entry is saved to the DB.

How can I avoid this?
Kostadin
Telerik team
 answered on 01 May 2013
5 answers
55 views
How would you add to the QAT using XML and how you you add items from the Application Toolbar to your QAT?
Bozhidar
Telerik team
 answered on 01 May 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?