Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
626 views
I have a combobox created server side as so:

myComboBox = new RadComboBox
{
    ID = "myComboBoxID",
    EnableLoadOnDemand = true,
    EnableItemCaching = false,
    ShowMoreResultsBox = false,
    EnableVirtualScrolling = true,
    ItemsPerRequest = -1
};
 
myComboBox.WebServiceSettings.Path = myWebServicePath;
myComboBox.WebServiceSettings.Method = myWebServiceMethod;
myComboBox.OnClientItemsRequesting = myClientItemsRequestingEvent;

with the clientside event defined as:

myClientItemsRequestingEvent = function (sender, eventArgs) {
    var context = eventArgs.get_context();
    context.refID = this.get_myRefID;
};

The webservice call populates the combobox depending on the value of refID. My problem is that this value is dynamic. It changes depending on other elements on the page, and the combobox should be populated appropriately. The problem is, the combobox only seems to call the itemRequestEvent once, when it is opened the first time after page load.

Ideally I would like this event to fire every single time the dropdown is opened, with the combobox being repopulated each time. Is this possible?
Peter Milchev
Telerik team
 answered on 08 Aug 2016
11 answers
141 views

I've got a customer who is reporting that occasionally when exporting from the grid (and then opening the file directly rather than saving it), they receive an error message box from Excel, "Unable to read file."

I have been unable to reproduce the issue, and it doesn't happen every time for them either. Any thoughts on what could be causing this?

Ryan
Top achievements
Rank 1
 answered on 08 Aug 2016
1 answer
197 views

I have a radbutton on my form that is disabled.

I have about 10 RadComboboxes on the same form.

I'm trying to enable the Radbutton once a Value is selected from the any of the comboboxes.

Can't seem to get this working.

Any help would be appreciated.

 

<telerik:RadComboBox ID="ddl1" runat="server" Width="90px" Skin="Vista" Font-Names="Verdana" Font-Size="Small" ZIndex="8900" OnClientDropDownOpening="Enable_Save">
                        </telerik:RadComboBox>

 

<script type='text/javascript'>
function Enable_Save()
{
    if(document.getElementById("ddl1").value!="")
        document.getElementById("b1").disabled=false;
    else
    document.getElementById("b1").disabled=true;

}

</script>

 

 

Ivan Danchev
Telerik team
 answered on 08 Aug 2016
1 answer
121 views

Hello all,

I have a hard issue with a Telerik RadGrid, when I use a templateColumn and put <%# Eval("something") %> me table brokes!

 

My ASP Code:

<telerik:RadGrid ID="RadGrid1" runat="server"  AutoGenerateColumns="false">
    <MasterTableView HierarchyLoadMode="Client" DataKeyNames="id" ClientDataKeyNames="id" NoMasterRecordsText="No existen registros a mostrar.">
        <Columns>
            <telerik:GridBoundColumn DataField="nombre" UniqueName="nombre" HeaderText="Nombre" />
            <telerik:GridTemplateColumn HeaderText="Tipo">
                <ItemTemplate>
                    <p><%# Eval("tipo") %></p>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
             <telerik:GridBoundColumn DataField="creacion" UniqueName="creacion" HeaderText="Creación" />
        </Columns>
    </MasterTableView>
</telerik:RadGrid>

 

My broken table:

http://puu.sh/qpuB9/7a12a67e1c.png

My table without Eval:

http://puu.sh/qpuDh/a9f06c406d.png

 

HELP PLZ!

 

Thz for your time.

Konstantin Dikov
Telerik team
 answered on 08 Aug 2016
1 answer
180 views
<FooterTemplate>
    <div>
        <asp:Button ID="btnOk" OnClientClick="" Text="OK" runat="server" />
        <asp:Button ID="btnCancel" Text="Cancel" runat="server" />
    </div>
</FooterTemplate>

 

I add two buttons in the dropdowntree via FooterTemplate, how to close the dropdowntree using javascript when users click Ok or Cancel buttons

Ivan Danchev
Telerik team
 answered on 08 Aug 2016
3 answers
314 views
According to Telerik's documentation for ASP.NET Ajax Controls 2010 Q1's RadGrid -

"The value of the TableLayout property is a string that specifies or receives one of the following GridTableLayout enumeration values:

Auto Column width is set by the widest unbreakable content in the column cells.
Fixed Default. Table and column widths are set either by the sum of the widths on the GridTableView.Columns objects or, if these are not specified, by the width of the first row of cells. If no width is specified for the table, it renders by default with width=100%."

I have a table that has its TableLayout to fixed.  I have 3 columns - all have fixed widths.  Yet when I view the source, the rendered table has a width of 100% and the 3 columns have the same width (they are each a third of the grid).   According to Telerik's documentation, that should not be the case. 

 What is going on?

Here is my exact markup of the RadGrid:
<telerik:RadGrid ID="dgCourseCatalog" runat="server" AutoGenerateColumns="False" AllowSorting="true" BorderStyle="None"
                    <MasterTableView ShowHeadersWhenNoRecords="False" AllowNaturalSort="false" TableLayout="Fixed"
                        <SortExpressions> 
                            <telerik:GridSortExpression FieldName="LearningModuleName" SortOrder="Ascending" /> 
                        </SortExpressions> 
                        <NoRecordsTemplate> 
                            <div class="StatusUpdate Warning NoRecords"
                                No Learning Modules found with your search criteria. Please adjust your search. 
                            </div> 
                        </NoRecordsTemplate> 
                        <Columns> 
                            <telerik:GridTemplateColumn HeaderText="Type" UniqueName="LMType" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"
                            <ItemStyle Width="30px" Wrap="true" /> 
                                <ItemTemplate> 
                                    <img src='<%#ResolveUrl(Eval("LMTypeIconUrl"))%>' alt='<%#Eval("LMTypeDescription") %>' /> 
                                </ItemTemplate> 
                            </telerik:GridTemplateColumn> 
                            <telerik:GridHyperLinkColumn HeaderText="Name" DataTextField="LearningModuleName" SortExpression="LearningModuleName" DataNavigateUrlFormatString="~/learning/learningmodulehome.aspx?LMID={0}" 
                                DataNavigateUrlFields="LearningModuleID" UniqueName="LearningModuleName" ItemStyle-Width="250px" ItemStyle-Wrap="true" /> 
                            <telerik:GridBoundColumn HeaderText="Description" DataField="LearningModuleDescription" UniqueName="LearningModuleDescription" 
                                SortExpression="LearningModuleDescription" ItemStyle-Width="250px" ItemStyle-Wrap="true" /> 
                        </Columns> 
                    </MasterTableView> 
                </telerik:RadGrid> 

Maria Ilieva
Telerik team
 answered on 08 Aug 2016
0 answers
74 views

Hi

I am using Telerik Radeditor and in my application, I want to show the content from editor to the div.

But my application's base css is changing the UI of the editor content which I am rendering in the div. Is there any way, I can apply the editor's css to my div? So that I can get the same look and feel to the div as well

Thanks in advance.

Avinash
Top achievements
Rank 1
 asked on 08 Aug 2016
12 answers
308 views
Looking through a few of my telerik projects and can see the following javascript errors showing up quite a lot.

Exception was thrown at line 1128, column 9009 in http://localhost:49573/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=;;System.Web.Extensions,+Version=4.0.0.0,+Culture=neutral,+PublicKeyToken=31bf3856ad364e35:en-US:c9cbdec3-c810-4e87-846c-fb25a7c08002:ea597d4b:b25378d2;Telerik.Web.UI:en-US:9711a23a-6cf5-4e6c-87f5-29e6585b3026:16e4e7cd:f7645509:22a6274a:86526ba7:874f8ea2:ed16cbdc:b7778d6c:c08e9f8a:e085fe68:82923ac3:1bb784d4
0x800a139e - JavaScript runtime error: SyntaxError
Exception was thrown at line 1128, column 9238 in http://localhost:49573/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=;;System.Web.Extensions,+Version=4.0.0.0,+Culture=neutral,+PublicKeyToken=31bf3856ad364e35:en-US:c9cbdec3-c810-4e87-846c-fb25a7c08002:ea597d4b:b25378d2;Telerik.Web.UI:en-US:9711a23a-6cf5-4e6c-87f5-29e6585b3026:16e4e7cd:f7645509:22a6274a:86526ba7:874f8ea2:ed16cbdc:b7778d6c:c08e9f8a:e085fe68:82923ac3:1bb784d4
0x800a139e - JavaScript runtime error: SyntaxError
Exception was thrown at line 4, column 9009 in http://localhost:49573/ScriptResource.axd?d=mbGZm65DzNC0tMTq0Elbcc2M1lDuhchN4BXVn4uPZtnyhlRXLPnt-p-dAYxFV7TeQsitN7kLc7Oz6BpWqdRbINK33ULDqonSEovmFOF83pRjvHvKgGo7T1rrGIJbqjjyBiTz_w2&t=ffffffffbde351db
0x800a139e - JavaScript runtime error: SyntaxError
Exception was thrown at line 4, column 9238 in http://localhost:49573/ScriptResource.axd?d=mbGZm65DzNC0tMTq0Elbcc2M1lDuhchN4BXVn4uPZtnyhlRXLPnt-p-dAYxFV7TeQsitN7kLc7Oz6BpWqdRbINK33ULDqonSEovmFOF83pRjvHvKgGo7T1rrGIJbqjjyBiTz_w2&t=ffffffffbde351db
0x800a139e - JavaScript runtime error: SyntaxError


I generally have a RadFormDecorator and RadAjaxManager.  If I remove these, the errors go away.  Any more detail on this?
Maria Ilieva
Telerik team
 answered on 08 Aug 2016
1 answer
312 views

GridExcelExportFormat.Xlsx:

Problems using german special characters like ö ä ü, will be exported as HTML special character &xxx (see screen1.png)

Why?
Maria Ilieva
Telerik team
 answered on 08 Aug 2016
1 answer
70 views

So, I'm trying to use the tab strip and while I know it should be a five minute item, it's turned into a nightmare.  Essentially, all I ever get is the first tab and pageview, the tabs don't respond and the pageview doesn't change.  What am I doing wrong?

<telerik:RadAjaxManager runat="server" >

<AjaxSettings>

<telerik:AjaxSetting AjaxControlID="RadMultiPage1">

<UpdatedControls><telerik:AjaxUpdatedControl ControlID="RadMultiPage1" />

<telerik:AjaxUpdatedControl ControlID="RadTabStrip1" /></UpdatedControls></telerik:AjaxSetting><telerik:AjaxSetting AjaxControlID="RadTabStrip1" ><UpdatedControls><telerik:AjaxUpdatedControl ControlID="RadMultiPage1" /><telerik:AjaxUpdatedControl ControlID="RadTabStrip1" /></UpdatedControls></telerik:AjaxSetting></AjaxSettings></telerik:RadAjaxManager>

<telerik:RadTabStrip ID="RadTabStrip1" runat="server"MultiPageID="RadMultiPage1" SelectedIndex="0">

<Tabs>

<telerik:RadTab runat="server" PageViewID="RadPageView1" Text="A" >

</telerik:RadTab>

<telerik:RadTab runat="server" PageViewID="RadPageView2" Text="B">

</telerik:RadTab>

<telerik:RadTab runat="server" PageViewID="RadPageView" Text="C">

</telerik:RadTab>

</Tabs>

</telerik:RadTabStrip>

<telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0">

<telerik:RadPageView ID="RadPageView1" runat="server" Width="100%" >` CONTENT HERE

</telerik:RadPageView>

<telerik:RadPageView ID="RadPageView2" runat="server" Width="100%">` CONTENT HERE

</telerik:RadPageView>

<telerik:RadPageView ID="RadPageView3" runat="server" Width="100%">` CONTENT HERE

</telerik:RadPageView>

</telerik:RadMultiPage>

Thank you!

Veselin Tsvetanov
Telerik team
 answered on 08 Aug 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?