Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
264 views
I have a rad window that pops up that allows the users to add or edit existing linked records.  When the window closes I want to update RadComboBox with the new information.  I have everything working to call the AjaxRequest and reload the RadComboBox but it does not refresh.

Here is the code.  Thanks in advance for your help.

 

<telerik:RadScriptManager ID="RadScriptManager1" runat="server" />

 

 

 

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">

 

 

<AjaxSettings>

 

 

 

 

<telerik:AjaxSetting AjaxControlID="ddAgency" >

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="ddAgency" />

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

<telerik:AjaxSetting AjaxControlID="RadAjaxManager1" >

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="ddAgency" />

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

 

<telerik:AjaxSetting AjaxControlID="ddAgency">

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="ddAgencyContract" />

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

 

</AjaxSettings>

 

 

 

</telerik:RadAjaxManager>

 

 

<telerik:RadAjaxPanel ID="radPanel1" runat="server">

 

 

 

 

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server" >

 

 

<script type="text/javascript">

 

 

//<![CDATA[

 


function
OnClientClose(oWnd, args) {

 

 

 

var arg = args.get_argument();

 

 

if (arg) {

 

 

 

var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");

 

 

if (ajaxManager) {

 

alert(arg)

ajaxManager.ajaxRequest(arg);

 

 

}

}

}

 

//]]>

 

 

</script>

 

 

</telerik:RadCodeBlock>


 

protected

 

void RadAjaxManager1_AjaxRequest(object sender, Telerik.Web.UI.AjaxRequestEventArgs e)

 

{

 

string cArgs = Convert.ToString(e.Argument);

 

 

 

if (cArgs.Contains(":"))

 

{

 

string[] vals = cArgs.Split(':');

 

 

string cFieldType = vals[0];

 

 

string cValue = vals[1];

 

 

 

switch (cFieldType)

 

{

 

case "Agency":

 

 

Utility.LoadRadComboBox("Agencies", ddAgency, "Name", "Id", "");

 

ddAgency.SelectedValue = cValue;

ddAgency.Text =

"Text from Code";

 

 

break;

 

 

case "Resource":

 

 

Utility.LoadRadComboBox("Resources", ddResource, "FullName", "Id", "");

 

ddResource.SelectedValue = cValue;

 

break;

 

 

case "AgencyContact":

 

 

Utility.LoadRadComboBox("AgencyContacts", ddAgencyContact, "FullName", "Id", "");

 

ddAgencyContact.SelectedValue = cValue;

 

break;

 

 

default:

 

 

break;

 

}

}

}

Mark Galbreath
Top achievements
Rank 2
 answered on 21 Jan 2010
4 answers
100 views
Hi

I'm testing Telerik RAD Editor and got the next questions:

1. I saw , that it's possible to edit table added to the document. But in my case, I'm able only to add table, not edit it (add/remove rows,columns etc). Whats wrong with it? I tried to find any description and didn't succed.

2. Is it possible to make editor to load images from user's PC, not server? How is this can be done?

Thanks
John John
Top achievements
Rank 1
 answered on 21 Jan 2010
4 answers
363 views
Hi,

where is the the EnableLinqExpression, and did I need this in the future for case sensitive search in the filter?

In the forum I found the hint for case sensitive search:

EnableLinqExpressions = False
GroupingSettings.CaseSensitive = False

After binary update I get errors, I didn't found any information in your Version Note

regards Stefan

 

Stefan Timm
Top achievements
Rank 2
 answered on 21 Jan 2010
3 answers
136 views
Is there an easy way to change some of the tool functionality in how it generates html tags?

For instance, instead of wrapping text in <strong> </strong> it would wrap the text in <b></b> instead. Any ideas? There is limited support for html in sql reporting and we are restricting all the tools to work with this limitation.
Dobromir
Telerik team
 answered on 21 Jan 2010
11 answers
155 views
I have a GridHyperLinkColumn like so:

<telerik:GridHyperLinkColumn DataTextField = "niin" 
                             HeaderText = "NIIN" 
                             DataNavigateUrlFields = "LIN" 
                             DataNavigateUrlFormatString = "~/RCM/list_LIN_detail.aspx?lin={0}" 
                             UniqueName = "niin">  
</telerik:GridHyperLinkColumn> 

You can see I am displaying the contents of the "niin" field while hyperlinked to the "lin" field.  When I export this to Excel, all the data fields arrive just fine, but the "niin" field is duplicated in side-by-side columns in Excel.

Any clues as to why this would be occurring?

tia,
Mark
Mark Galbreath
Top achievements
Rank 2
 answered on 21 Jan 2010
1 answer
145 views
Hi,

Is there a property or some css that we can use to specify the location of footer? If a grid has a horizontal scrollbar, the footer text is displayed below the horizontal scrollbar. Is there a way to move the footer to above the scrollbar?

Also, the vertical scrollbar is displaying on top of the last column. Is there a way to separate it from the last column? And finally when I have the scrollbars, the footer text is not correctly aligned with the rows in the grid. Please see my attachment.

Thanks.
Daniel
Telerik team
 answered on 21 Jan 2010
1 answer
126 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
188 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
99 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> 
                            <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
175 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
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
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?