Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
134 views
It that true when the gird doesnt have any record (new grid, waiting for the user adds records)  will be hidden?
Daniel
Telerik team
 answered on 21 Jan 2010
1 answer
192 views
Requirement:

  • Ability for customer to create skins, upload to somesite.com and somesite.com uses new theme across telerik controls automatically,
  • eg: Customer goes to telerik site, creates a skin, uploads to somesite.com, sets a profile preference for this new theme, new theme then gets used across all telerik controls


How can I accomplish this? I understand the default themes are embedded. How can i give my customer the ability to add their own themes so that telerik controls can use them?

Can we hook into or override skin manager?

Sebastian
Telerik team
 answered on 21 Jan 2010
1 answer
106 views
hi all,

when i use ButtonType="ImageButton" in the edit columns i get this error when i click on the button

Sys.WebForms.PageRequestManagerServerErrorException: Invalid postback or callback argument. Event validation is enables using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true"%> in a page. Fpr security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.

wht's causing it? any ideas?

plz find my code below if it help, thnx in advance

    <telerik:RadGrid AllowFilteringByColumn="true" AllowSorting="true" ID="RadGrid1" Skin="Telerik"  GridLines="None" runat="server" AllowAutomaticDeletes="True" 
            AllowAutomaticInserts="True" PageSize="10" AllowAutomaticUpdates="True" AllowPaging="True" AutoGenerateColumns="False">  
            <PagerStyle Mode="NextPrevAndNumeric" /> 
            <MasterTableView Width="100%" CommandItemDisplay="TopAndBottom" DataKeyNames="ID" 
                HorizontalAlign="NotSet" AutoGenerateColumns="False" EditMode="PopUp">  
                <Columns> 
                    <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn">  
                        <ItemStyle CssClass="MyImageButton" /> 
                    </telerik:GridEditCommandColumn> 
                    <telerik:GridBoundColumn DataField="title" HeaderText="Title" SortExpression="title" ColumnEditorID="GridTextBoxColumnEditor1" 
                        UniqueName="title">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridTemplateColumn HeaderText="File" SortExpression="file" UniqueName="file">  
                        <ItemTemplate> 
                            <a href='/Files/Headers/<%# Eval("file") %>' target="_blank"><%# Eval("file") %></a>  
                        </ItemTemplate> 
                        <EditItemTemplate> 
                                <telerik:RadUpload ID="RadUpload1" runat="server" AllowedFileExtensions=".jpg,.jpeg, .flv, .swf" OverwriteExistingFiles="false" TargetPhysicalFolder="/Files/Headers" ControlObjectsVisibility="None"></telerik:RadUpload> 
                        </EditItemTemplate> 
                    </telerik:GridTemplateColumn> 
                    <telerik:GridButtonColumn ConfirmText="Delete this header?" ConfirmDialogType="RadWindow" 
                        ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete" 
                        UniqueName="DeleteColumn">  
                        <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" /> 
                    </telerik:GridButtonColumn> 
                </Columns> 
                <EditFormSettings CaptionDataField="title" CaptionFormatString="Edit header {0}" PopUpSettings-Modal="true">  
                    <PopUpSettings Width="500px"   /> 
                    <FormTableButtonRowStyle HorizontalAlign="Right" CssClass="EditFormButtonRow"></FormTableButtonRowStyle> 
                    <EditColumn ButtonType="ImageButton" InsertText="Insert header" UpdateText="Update header" CancelText="Cancel edit">  
                    </EditColumn>                      
                </EditFormSettings> 
            </MasterTableView> 
            <ClientSettings> 
                <ClientEvents OnRowDblClick="RowDblClick" /> 
            </ClientSettings> 
        </telerik:RadGrid> 
Pavlina
Telerik team
 answered on 21 Jan 2010
3 answers
181 views
Hi,

I have several webforms using radgrid's inside radmultipage. I have notice a stange beahaviour: If a change columns definition everything seems ok but when you run the code or go to the aspx file the changes are not saved.
As a workarround i change the aspx directly.

Sample:

<telerik:RadMultiPage ID="RadMultiPage1" runat="server" Width="100%"
        SelectedIndex="0">
        <telerik:RadPageView ID="RadPageView1" runat="server">
            <asp:Button ID="BtExportGridExcel" runat="server" class="button_export_excel_absolute_invoice_listing"
                OnClick="BtExportGridExcel_Click" />
            <telerik:RadGrid ID="RadGridInvoiceList" runat="server" AllowFilteringByColumn="True"
                AllowMultiRowSelection="True" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
                DataSourceID="SqlDataSourceGrid" GridLines="None" OnDataBound="RadGridInvoiceList_DataBound"
                Skin="Web20" Width="100%" AllowAutomaticUpdates="True">
                <ExportSettings ExportOnlyData="True" FileName="ListagemFacturas" IgnorePaging="True"
                    OpenInNewWindow="True">
                </ExportSettings>
                <MasterTableView ClientDataKeyNames="INVOICE_ID,ENTITY_ID" DataKeyNames="INVOICE_ID"
                    DataSourceID="SqlDataSourceGrid" EditMode="InPlace" NoDetailRecordsText="Não existem registos"
                    NoMasterRecordsText="Não existem registos" RetrieveAllDataFields="False" RetrieveDataTypeFromFirstItem="True"
                    ShowFooter="True" TableLayout="Fixed">
                    <Columns>
......
Best Regards
Eduardo Barbosa


Pavlina
Telerik team
 answered on 21 Jan 2010
3 answers
306 views
Safari is not rending the textbox by the RadDatepicker correctly.  It is too wide.  We have this code:

 <telerik:RadDatePicker  ID="dateStartDate" Width="75px"  runat="server" Skin="Office2007" OnSelectedDateChanged="date_Changed" AutoPostBack="true">

It works fine with IE and FF.  Any idea how to correct this?



vincent
Top achievements
Rank 1
 answered on 21 Jan 2010
6 answers
286 views
Hi,
Based on the new release (2009 Q1)  Build 527,  a new feature added to change the css class of appointment in client side.
I'm trying to change the appointment background image on client side by using the following css and the set_cssClass().
But, I found only the border are changed.

.RadScheduler .rsApt div.rsAptOut
{
/*To enable auto coloring based on the skin,  comment out the following line */
background: none;
}

.RadScheduler .rsWrap .Normal
{
    background: #d1bfa5 url('../../images/NormalAppt.png') repeat-x;
    border: solid 1px #d1bfa5;
    border-top: solid 1px #e3d8c8;
}

.RadScheduler .rsWrap .System
{
    background: #c1adc8 url('../../images/SystemAppt.png') repeat-x;
    border: solid 1px #9b8fa3;
    border-top: solid 1px #c4bdc9;
}
 
Please advise .

Thanks,
Wilson

Peter
Telerik team
 answered on 21 Jan 2010
1 answer
140 views
Hi,

We're using a RadGrid client-side bound to a ADO.NET DataService. We would like to use some custom input boxes above the grid to let the user specify a filter that cannot easily be specified using the built-in column-filters in the grid.

Our filter input can be translated to a textual LINQ query. Is there any way we can tell the grid to append our filter to the query it makes against the data service and thereby make it show only the rows that matches our custom filter?

Thanks in advance
Ulrik
Nikolay Rusev
Telerik team
 answered on 21 Jan 2010
7 answers
666 views
By default it looks like nothing happens when you are in edit mode, and you click a hyperlink in RadEditor.  Is there a way to enable hyperlinks in edit mode?

Here is more about my scenario.  We have an Editor on the page where users can type a paragragh, we also insert hyperlinks into their text that they are not allowed to modify.  The hyperlink calls a javascript method that opens a popup with additional information.  I would like the hyperlink to execute the method when the user clicks it in edit mode, but currently it looks like nothing is happening and the mouse cursor doesn't even change to hand.
Rumen
Telerik team
 answered on 21 Jan 2010
1 answer
116 views
I am looking for help or documentations explaining in detail column binding.  For example GridNumericColumn binds in edit mode to RadNumerixTextBox.  But what is it binding to in the view mode or when the column is readonly?

How can I control the content of the column in view mode or when readonly="true"?  Is the content then bound to Label?

chris
Pavlina
Telerik team
 answered on 21 Jan 2010
2 answers
430 views
I am trying to set border style of the RadComboBox control on client side to red on fail of validation. I am using Custom validator control, but the border doesnt seem to change. Can you please review my code and let me know what am I doing?

 <telerik:RadComboBox runat="server" ID="radCbLicenseSt" Width="55px" Height="300px" ></telerik:RadComboBox> 
<asp:CustomValidator  ID="cvLicensest" runat="server" ControlToValidate="radCbLicenseSt" ValidateEmptyText="true"  ClientValidationFunction="ReqFieldValidationCBox" CssClass="error" EnableClientScript="true" Display="Dynamic" ValidationGroup="Enrollment" />  
 
 
 
 

function ReqFieldValidationCBox(source, arguments)  
{  
    var Cbox = $find(source.controltovalidate);  
    if (Cbox)  
    {  
        if (Cbox.get_value() == "") 
        {   
            Cbox.get_inputDomElement().style.bordercolor = "red"; 
            Cbox.get_inputDomElement().style.borderwidth = "1px";                       
            arguments.IsValid = false;  
        }  
        else  
        {  
            arguments.IsValid = true;  
        }  
    }  
}  
JaiChandra Chilumuru
Top achievements
Rank 1
 answered on 21 Jan 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?