Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
1.1K+ views
Hi all
im trying to add a readonly textbox on my form but the problem is it keeps clearing the textbox on postback, if i remove the read only property it works fine.

Does anyone know whats causing this.
Vasil
Telerik team
 answered on 15 Jun 2012
2 answers
137 views
I've done a bunch of grids with filters but I can't figure out why this one doesnt work, the grid will not filter

telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource1" GridLines="None"
    OnItemCommand="RadGrid1_ItemCommand" OnItemCreated="RadGrid1_ItemCreated" Width="650px"
    AllowSorting="True" ShowFooter="True" EnableAJAX="True" 
    AllowFilteringByColumn="True" CellSpacing="0">
    <ClientSettings EnableRowHoverStyle="True">
        <Selecting AllowRowSelect="True" />
        <ClientEvents OnRowClick="Dummy"></ClientEvents>
        <Scrolling AllowScroll="true" SaveScrollPosition="true" UseStaticHeaders="true" ScrollHeight="500px" />
    </ClientSettings>
    <PagerStyle Mode="NumericPages" Position="TopAndBottom" />
    <MasterTableView DataSourceID="SqlDataSource1" AutoGenerateColumns="False" AllowAutomaticDeletes="true"
        DataKeyNames="CourseIDX" CommandItemDisplay="TopAndBottom" ClientDataKeyNames="CourseIDX"
        TableLayout="Fixed" AllowCustomSorting="True" AllowFilteringByColumn="true">
        <Columns>
            <telerik:GridBoundColumn DataField="CourseIDX" UniqueName="CourseIDX" HeaderText="CourseIDX"
                Display="False" ItemStyle-Width="50px">
                <ItemStyle Width="50px"></ItemStyle>
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="CourseID" UniqueName="CourseID" HeaderText="CourseID"
                Display="false" ItemStyle-Width="50px">
                <ItemStyle Width="50px"></ItemStyle>
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="Name" UniqueName="Name" HeaderText="Name" Display="True"
             AllowFiltering="True" 
             AllowSorting="True">
                <ItemStyle Width="300px" HorizontalAlign="Left" />
                <HeaderStyle Width="300px" />
            </telerik:GridBoundColumn>
            <telerik:GridTemplateColumn HeaderText="Preview" UniqueName="Preview" AllowFiltering="false" >
                <ItemTemplate>
                    <asp:HyperLink ID="Preview" runat="server" ImageUrl="~/images/fileimages/preview.gif"></asp:HyperLink>
                </ItemTemplate>
                <ItemStyle Width="50px" HorizontalAlign="Center" />
                          <HeaderStyle Width="50px" HorizontalAlign="Center" />
            </telerik:GridTemplateColumn>
            <telerik:GridTemplateColumn HeaderText="Course " UniqueName="EditCourse" AllowFiltering="false" >
                <ItemTemplate>
                    <asp:HyperLink ID="EditCourse" runat="server" ImageUrl="~/radcontrols/outlook/grid/edit.gif"></asp:HyperLink>
                </ItemTemplate>
                <ItemStyle Width="50px" HorizontalAlign="Center" />
                <HeaderStyle Width="50px" HorizontalAlign="Center" />
            </telerik:GridTemplateColumn>
            <telerik:GridTemplateColumn HeaderText="Edit Tree" UniqueName="EditTree" Display="false" AllowFiltering="false" >
                <ItemTemplate>
                    <asp:HyperLink ID="EditTree" runat="server" ImageUrl="~/images/fileimages/FileTreeView.gif"></asp:HyperLink>
                </ItemTemplate>
                <ItemStyle Width="50px" HorizontalAlign="Center" />
            </telerik:GridTemplateColumn>
            <telerik:GridTemplateColumn HeaderText="Lectures" UniqueName="EditSheet" AllowFiltering="false" >
                <ItemTemplate>
                    <asp:HyperLink ID="EditSheet" runat="server" ImageUrl="~/images/fileimages/Edit.gif"></asp:HyperLink>
                </ItemTemplate>
                <ItemStyle Width="50px" HorizontalAlign="Center" />
                          <HeaderStyle Width="50px" HorizontalAlign="Center" />
            </telerik:GridTemplateColumn>
            <telerik:GridTemplateColumn HeaderText="Points" UniqueName="Points"  AllowFiltering="false" >
                <ItemTemplate>
                    <asp:HyperLink ID="Points" runat="server" ImageUrl="~/images/fileimages/tasks.gif"></asp:HyperLink>
                </ItemTemplate>
                <ItemStyle Width="50px" HorizontalAlign="Center" />
                          <HeaderStyle Width="50px" HorizontalAlign="Center" />
            </telerik:GridTemplateColumn>
            <telerik:GridButtonColumn ButtonType="ImageButton" HeaderText="Student Status" ImageUrl="~/radcontrols/vista/grid/windows/update.gif"
                CommandName="SStatus" UniqueName="SStatus" Display="false" ShowFilterIcon="false" >
                <ItemStyle Width="50px" HorizontalAlign="Center" />
                          <HeaderStyle Width="50px" HorizontalAlign="Center" />
            </telerik:GridButtonColumn>
            <telerik:GridButtonColumn UniqueName="column" HeaderText="Delete" ConfirmText="Confirm Delete of Course!!!"
                Text="Delete" CommandName="Delete" ButtonType="ImageButton" ConfirmDialogType="RadWindow">
                <ItemStyle Width="40px" HorizontalAlign="Center" />
                          <HeaderStyle Width="40px" HorizontalAlign="Center" />
            </telerik:GridButtonColumn>
        </Columns>
<CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
 
        <RowIndicatorColumn Visible="False">
            <HeaderStyle Width="20px" />
        </RowIndicatorColumn>
        <ExpandCollapseColumn Resizable="False" Visible="False">
            <HeaderStyle Width="20px" />
        </ExpandCollapseColumn>
        <EditFormSettings>
            <EditColumn CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType">
            </EditColumn>
            <PopUpSettings ScrollBars="None"></PopUpSettings>
        </EditFormSettings>
        <CommandItemTemplate>
            &nbsp; &nbsp;
            <telerik:RadButton ID="btnAdd" runat="server" OnClientClicked="ShowAdd" Text="Create New Course"
                ToolTip="Create New Course " Font-Size="XX-Small" Skin="Telerik">
                <Icon PrimaryIconUrl="~/images/fileimages/AddRecord.gif" PrimaryIconLeft="5px" />
            </telerik:RadButton>
            &nbsp;
            <telerik:RadButton ID="btnDuplicate" runat="server" OnClientClicked="ShowDuplicate"
                Text="Duplicate Course" ToolTip="Duplicate Course " Font-Size="XX-Small" Skin="Telerik">
                <Icon PrimaryIconUrl="~/images/fileimages/File-copy-16.png" PrimaryIconLeft="5px" />
            </telerik:RadButton>
            &nbsp;
            <telerik:RadButton ID="btnTextBooks" runat="server" OnClientClicked="ShowPDF" Text="Textbook Lists"
                ToolTip="Textbook Lists " Font-Size="XX-Small" Skin="Telerik">
                <Icon PrimaryIconUrl="~/images/fileimages/pdf.png" PrimaryIconLeft="5px" />
            </telerik:RadButton>
        </CommandItemTemplate>
    </MasterTableView>
    <ExportSettings>
        <Pdf PageBottomMargin="" PageFooterMargin="" PageHeaderMargin="" PageHeight="11in"
            PageLeftMargin="" PageRightMargin="" PageTopMargin="" PageWidth="8.5in" />
        <Excel Format="Html"></Excel>
        <Csv RowDelimiter="NewLine" ColumnDelimiter="Comma"></Csv>
    </ExportSettings>
 
<FilterMenu EnableImageSprites="False"></FilterMenu>
 
<HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default"></HeaderContextMenu>
</telerik:RadGrid>
david
Top achievements
Rank 1
 answered on 15 Jun 2012
1 answer
123 views
Why this happens in Internet Explorer. It looks fine in FF and Chrome but in IE it's a total mess. Please advice

P.S. please refer the attached screenshot. Thank you
Marin Bratanov
Telerik team
 answered on 15 Jun 2012
4 answers
228 views
Hi... I have problems with some examples in local:

Component HtmlChart

1)The sample First look, not show the line on local, in you site sample work Ok. See image 1.

2) The sample Chart Types -> Pie Chart not show the Pie..in you site sample work Ok. See image 2.

3) The sampe DataBinding -> List not show the line vertical (here the same problem of the 1° sample but vertically),in you site sample work Ok. See image 3.

I have the same problem in all the sample with the same type of chart described above.

PS) My OS language is Italian and the culture is IT, and tested with IE,FireFox,Safari and Chrome

Thanks
Aurelio
Aurelio Righetti
Top achievements
Rank 1
 answered on 15 Jun 2012
13 answers
378 views
Hi, i have install the Beta version 2012_2_522, drag the component barcode in the aspx page, but the barcode not show, i see the text but note the line of the barcode...

<telerik:RadBarcode runat="server" Text="*123422*" Type="Code39"
           ShowChecksum="False">
       </telerik:RadBarcode>

Even in the examples that are installed is the same problem

Thanks
Aurelio
Vasil
Telerik team
 answered on 15 Jun 2012
0 answers
125 views
I am getting following script error when I tried to navigate to a tab in RadTabStrip.

Microsoft JScript runtime error: Unable to get value of the property 'apply': object is null or undefined
at line 6 of Telerik.WebUI.WebResource_6.axd?_TSM_HiddenField=RSM_TSM&compress=1&_TSM_CombinedScrpts_=;;System.WebExtension,+Version=4.0.0.0,+Culture=neutral,+PublicKeyToken=31bf3856ad364e35;en-US;fabb1efa-938f-494c-a9c4-f313dccf73fa;ea597d4b;b25378d2;Telerik.Web.UI 

Here are more details I found debugging w/ Firebug Lite in Firefox. 

I find the error “e is undefined” at

Function.__typeName="Function";Function.__class=true;Function.createCallback=function(b,a){return function(){var e=arguments.length;if(e>0){var d=[];for(var c=0;c<e;c++)d[c]=arguments[c];d

where:

a = “prItem”

b = Object { prItem=“ct100_MainContent_ReqItems_Item_Item” }

c= Object {_msdisposeindex=27, _element=span#MainContent_ReqItems_Item, appContext=”SWNCCAF2KWGFSLJEF4GEFVC…PTYZ882DNRND46VNV375W9V”, …

d = Object { _msdisposeindex=26, _element=div#ct100_MainContent_ReqItems_Item_Item.RadComboBox, _clientStateFieldID=“ct100_MainContent_ReqItems_Item_Item_ClientState” …

e = undefined

 

Triggering Call Stack:

createCallback()Teleri...085fe68 (line 6)

c = Object { __msdisposeindex=27, _element=span#MainContent_ReqItems_Item, appContext="SWNCCAF2KWGFSLJEF4GEFVC...PTYZ882DNRND46VNV375W9V", more...}

b = Object { prItem="ctl00_MainContent_ReqItems_Item_Item"}

Any one have any idea of how to resolve it?
Sri
Top achievements
Rank 1
 asked on 15 Jun 2012
0 answers
110 views

Hi all

Dynamically i have created checkbox in button click. after save the records how could i delete/remove checkbox.

Thanks & Regards
Tamim
Tamim
Top achievements
Rank 1
 asked on 15 Jun 2012
5 answers
349 views
Hi Telerik Guys !

I have been using an RAD FILE EXPLORER for the quite sometime in my project.

I want to disable the double click event when I click on to the File that exist on to the GRID CONTEXT MENU.

I have already deleted the OnClientFileOpen event & set an property named  EnableFileOpen="false" to FALSE.

When I open the FILE on to the doble-click, it gets opened which I dont want to do .?

Please suggest how to proceed.

Please help.

Ajay Jamwal

Dobromir
Telerik team
 answered on 15 Jun 2012
3 answers
147 views
Hopefully there is a solution out there for our issue.

We have a treeview that can have child nodes, is displayed in a relation way (parent, child etc). However, we do not want the checking of a child node to automatically check the parent node(s).

The treeview is a hierarchical representation of geographical areas and we want to be able to select "Chicago" without automatically selecting "Illinois" and "USA". 

Does anyone know if there is a way to achieve this?

Thanks,

Greg
Greg
Top achievements
Rank 1
 answered on 15 Jun 2012
1 answer
94 views
Hi,

I implemented a copy command which takes the current row and creates a copy which is then edited. But I don't want that the edit form is displayed below the item I used as source. I want it to be displayed at the top (like the insert form).
How can I achieve this in the ItemDataBound event? I "Just" want to remove the ParentItem from the GridEditFormItem.

Thanks for your help!
Marin
Telerik team
 answered on 15 Jun 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?