Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
104 views

Hi guys
 I am having one excel sheet with 10,000 records and want to upload that records into database , but when uploading that records i want the status to be updated to UI layer how many number of records uploaded into database remaing records count etc with progressive bar.

 

Is it possible with Telerik please give the code for processing this...

 

Thanks & Regards

Amarnath Reddy Mitta

Schlurk
Top achievements
Rank 2
 answered on 23 Feb 2010
5 answers
210 views
I am using paging on my grid with 

Mode

 

="NextPrev"

 


I load data into my grid from two different sources so if my pagesize is 20 then it gets max of 10 rows at one time from source1 and same goes for source2.
However, there might be cases when one or both of the source is returning less than 10 rows each.
In that case the number of items in the grid is less than 20.

I want to change the display message of the pager that says 'Displaying page 1 of 2, items 1 to 20 of 25'
I want the 'items 1to 20 of 25' to be changed to 'items 1 to (whatever is the row count for the current page) of 25'
So if page 1 has 15 records then it says 'items 1 to 15 of 25' and then on next page it says items 16 to 25 of 25'

Is there a way to do that?
if not Can I just hide the items part?
Daniel
Telerik team
 answered on 23 Feb 2010
4 answers
192 views
Hi

Is there any way to do export to Excel from the Schedular ?

Thanks
Archan
Peter
Telerik team
 answered on 23 Feb 2010
6 answers
274 views
Hello, I've been developing an application that has a Radgrid for a couple of months now, but I've ran into an issue I don't quite understand.

The situation is like this: I have implemented functionality that when a user is editing a row, and finishes doing so and wants to update the row, they can just press enter and the radgrid will update that row. I solved this by use of some code I found elsewhere on this forum, in javascript, like so:
function KeyPressEnter(sender, args)  
    {  
        if (args.get_keyCode() != 13)  
                return;  
 
            var el = Telerik.Web.UI.Grid.GetCurrentElement(args.get_domEvent());  
             
            if (el.tagName.toLowerCase() !='input' && el.tagName.toLowerCase() !='textarea') return;   
                if ($(el).parents("tr").attr("id") && $(el).parents("tr").attr("id") != "") {  
                sender.get_masterTableView().updateItem($(el).parents("tr")[0]);  
                }  
                             
    } 
This function is added to the .aspx under the clientsettings, with the clientevent onkeypress.

Now, I have gotten the assignment to do the same for inserting items. So, I tried to use the same code as above, only then with:
sender.get_masterTableView().insertItem($(el).parents("tr")[0]);
instead of the:
sender.get_masterTableView().updateItem($(el).parents("tr")[0]);
in the above code.

This however generates an error: " Insert item is available only when grid is in insert mode."
I found this odd, as the radgrid is indeed in insert mode when this method is called. Especially seeing as the insert will succeed if I just click the commandbutton to insert the item instead. I also called the method sender.get_masterTableView().get_isItemInserted() in that code, which always returns false. I even tried to force it into insertmode using sender.get_masterTableView().showInsertItem($(el).parents("tr")[0]); ,as one of your pages on this subject suggests that this should put the grid into insert mode, but to no avail. get_isItemInserted() keeps returning false.

Would anyone have any idea how I'll be able to solve my problem?
Veli
Telerik team
 answered on 23 Feb 2010
1 answer
95 views
Hey,

I put RadAjaxManager and RadAjaxLoadingPanel in Master page and try to call AddAjaxSetting in content page. The NullReferenceException thew out.

here is code in content page

 

protected void Page_Load(object sender, EventArgs e)

 

{


Button
searchButton = (Button)this.SearchCriteria.FindControl("btnSearch");

 

 

RadAjaxManager AjaxManager = (RadAjaxManager)this.Master.FindControl("RadAjaxManager1");

 

AjaxManager.AjaxSettings.AddAjaxSetting(searchButton,

this.radGrid, null);

 

 

if (!IsPostBack)

 

{

// BuildGrid();

}

}

Here is code in master page

 

 

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1">

 

 

 

 

 

</telerik:RadAjaxManager>

 

 

 

 

 

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px"

 

 

 

 

 

Width="75px">

 

 

 

 

 

<img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>'

 

 

 

 

 

style="border: 0px;" />

 

 

 

 

 

</telerik:RadAjaxLoadingPanel>

 

Iana Tsolova
Telerik team
 answered on 23 Feb 2010
6 answers
303 views
Hi,

I have a page with a modal popup (extender) on it. When opening the modal popup I dynamically load a usercontrol in the popup which has three radsliders on it. The only problem is that they don't work, they do not render correctly as well. I fixed the faulty rendering with the redraw function but i still cannot move the sliders.

Any help is apreciated.
Chris Marisic
Top achievements
Rank 1
 answered on 23 Feb 2010
1 answer
294 views
I have Master Page and a Content page and I am trying to ajaxify content page. I am using RadAjaxManager to do that.

AS soon as I drop a RadCombobox on the content page  with AutoPostback=True and use it with the RadAjaxManager as the control that updates other controls, I get error :
 

The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[HttpException (0x80004005): The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).]
   System.Web.UI.ControlCollection.AddAt(Int32 index, Control child) +8668018
   Telerik.Web.UI.RadAjaxControl.MoveUpdatePanel(Control initiator, Control updated) +133

[HttpException (0x80004005): Please, see whether wrapping the code block, generating the exception, within RadCodeBlock resolves the error.]
   Telerik.Web.UI.RadAjaxControl.MoveUpdatePanel(Control initiator, Control updated) +181
   Telerik.Web.UI.RadAjaxControl.PerformRender() +375
   Telerik.Web.UI.RadAjaxControl.OnPageRender(HtmlTextWriter writer, Control page) +1222
   Telerik.Web.UI.RadAjaxControl.RenderPageInAjaxMode(HtmlTextWriter writer, Control page) +95
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +256
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
   System.Web.UI.Page.Render(HtmlTextWriter writer) +29
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1266


Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082 
 

Here is my ContentPage:

<%

@ Page Title="" Language="C#" MasterPageFile="~/Fac_MasterPage.master" AutoEventWireup="true" CodeBehind="CreateReferral.aspx.cs" Inherits="PatientPlacement.WebLayer.RMS.complete.referrals.CreateReferral" %>

 

<%

@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

 

<

 

asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

 

 

<telerik:RadAjaxManagerProxy ID="ramCreateReferral" runat="server">

 

 

<AjaxSettings>

 

 

<telerik:AjaxSetting AjaxControlID="rcbReferralLocation" EventName="SelectedIndexChanged">

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="rcbReferralLocation" />

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

</AjaxSettings>

 

 

</telerik:RadAjaxManagerProxy>

 

 

 

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

 

 

<script language="javascript" type="text/javascript">

 

 

function SetDate(datePicker)

 

{

datePicker.SetDate(

new Date());

 

}

 

 

function SetCalendarDate(n)

 

{

 

var calendar;

 

 

switch (n)

 

{

 

case "Document Date":

 

calendar = $find(

"<%=rdpDocumentDate.ClientID %>");

 

 

break;

 

}

calendar.set_selectedDate(

new Date());

 

}

 

 

function DropDownClosed(sender, eventArgs)

 

{

 

var item = eventArgs.get_item();

 

 

var picker = $find("<%= rdpDocumentDate.ClientID %>");

 

 

CreateDocumentName(item.get_text().toString(), picker.get_selectedDate().format(

"d").toString());

 

}

 

 

function DateSelected(sender, eventArgs)

 

{

 

var comboBox = $find("<%= rcbDocumentType.ClientID %>");

 

CreateDocumentName(comboBox.get_text().toString(), eventArgs.get_newValue().toString());

}

 

function CreateDocumentName(type, date)

 

{

 

var textBox = $find("<%= rtbDocumentName.ClientID %>");

 

textBox.set_value(type.toString() +

'-' + date.toString());

 

}

 

function KeyPressed(sender, args) {

 

 

if (args.get_domEvent().rawEvent.keyCode == 13) // ENTER key pressed

 

{

args.get_domEvent().preventDefault();

args.get_domEvent().stopPropagation();

}

 

if (args.get_domEvent().rawEvent.keyCode == 27) // ESC key pressed

 

{

args.get_domEvent().preventDefault();

args.get_domEvent().stopPropagation();

}

}

 

</script>

 

 

</telerik:RadCodeBlock>

 

 

<table border="1" cellpadding="0" cellspacing="0" style="width:100%;">

 

 

<tr>

 

 

<td>

 

Document Type

 

</td>

 

 

<td>

 

 

<telerik:RadComboBox ID="rcbDocumentType" runat="server"

 

 

Skin="Office2007"

 

 

MaxHeight="125px"

 

 

OnClientSelectedIndexChanged="DropDownClosed">

 

 

<Items>

 

 

<telerik:RadComboBoxItem Text="" />

 

 

<telerik:RadComboBoxItem Text="Assessment" />

 

 

<telerik:RadComboBoxItem Text="Chest X-Ray" />

 

 

<telerik:RadComboBoxItem Text="Client Update" />

 

 

<telerik:RadComboBoxItem Text="Consultation" />

 

 

<telerik:RadComboBoxItem Text="Dietary Notes" />

 

 

<telerik:RadComboBoxItem Text="Discharge Planning Record" />

 

 

<telerik:RadComboBoxItem Text="Discharge Summary" />

 

 

<telerik:RadComboBoxItem Text="DME Orders" />

 

 

<telerik:RadComboBoxItem Text="Face Sheet" />

 

 

<telerik:RadComboBoxItem Text="Graphic I &amp; O" />

 

 

<telerik:RadComboBoxItem Text="H &amp; P" />

 

 

<telerik:RadComboBoxItem Text="Home Health Orders" />

 

 

<telerik:RadComboBoxItem Text="Insurance Certification" />

 

 

<telerik:RadComboBoxItem Text="Labs" />

 

 

<telerik:RadComboBoxItem Text="Level 1" />

 

 

<telerik:RadComboBoxItem Text="Level 1 Letter of Determination" />

 

 

<telerik:RadComboBoxItem Text="Medical Necessity" />

 

 

<telerik:RadComboBoxItem Text="Medicare IM/CMS-R-193" />

 

 

<telerik:RadComboBoxItem Text="Medicare IM/Discharge Appeal Rights Form " />

 

 

<telerik:RadComboBoxItem Text="Medication Administration Record (MAR)" />

 

 

<telerik:RadComboBoxItem Text="Medical Documents" />

 

 

<telerik:RadComboBoxItem Text="MMSE" />

 

 

<telerik:RadComboBoxItem Text="Nursing Home Orders" />

 

 

<telerik:RadComboBoxItem Text="Patient Choice Form" />

 

 

<telerik:RadComboBoxItem Text="Progress Notes" />

 

 

<telerik:RadComboBoxItem Text="PT Notes" />

 

 

<telerik:RadComboBoxItem Text="Speech Therapy Notes" />

 

 

<telerik:RadComboBoxItem Text="Therapy Evaluation and Progress Notes" />

 

 

</Items>

 

 

</telerik:RadComboBox>

 

 

</td>

 

 

<td>

 

Document Date

 

</td>

 

 

<td>

 

 

<telerik:RadDatePicker ID="rdpDocumentDate" runat="server"

 

 

Skin="Office2007"

 

 

Width="90px">

 

 

<Calendar ID="calDocumentDate" runat="server"

 

 

ShowRowHeaders="false"></Calendar>

 

 

<ClientEvents OnDateSelected="DateSelected" />

 

 

</telerik:RadDatePicker>&nbsp;

 

 

<asp:LinkButton ID="lnkSetDocumentDate" runat="server"

 

 

OnClientClick="SetCalendarDate('Document Date'); return false;"

 

 

CausesValidation="false">Today</asp:LinkButton>

 

 

</td>

 

 

<td>

 

Document Name

 

</td>

 

 

<td>

 

 

<telerik:RadTextBox ID="rtbDocumentName" runat="server"

 

 

MaxLength="50"

 

 

TextMode="SingleLine"

 

 

Width="200px">

 

 

</telerik:RadTextBox>

 

 

<asp:RequiredFieldValidator ID="rfvDocumentName" runat="server"

 

 

ControlToValidate="rtbDocumentName"

 

 

ErrorMessage="Referral owner is required."

 

 

SetFocusOnError="true">* Required

 

 

</asp:RequiredFieldValidator>

 

 

</td>

 

 

</tr>

 

 

</table>

 

 

<table width="430px" cellpadding="2" cellspacing="1" class="table-display">

 

 

<tr class="tr-header">

 

 

<td colspan="6">

 

 

<img src='<%= ResolveUrl("~/images/bullet_action_sm.gif") %>' />

 

PATIENT DATA

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td>

 

First Name

 

</td>

 

 

<td>

 

 

<telerik:RadTextBox ID="txtFirstName" runat="server"

 

 

MaxLength="50"

 

 

TextMode="SingleLine"

 

 

AutoCompleteType="FirstName"

 

 

ClientEvents-OnKeyPress="KeyPressed">

 

 

</telerik:RadTextBox>

 

 

<asp:RequiredFieldValidator ID="rfvFirstName" runat="server"

 

 

ControlToValidate="txtFirstName"

 

 

ErrorMessage="First name is required."

 

 

SetFocusOnError="true"

 

 

ValidationGroup="vgpCreateReferral">* Required

 

 

</asp:RequiredFieldValidator>

 

 

</td>

 

 

<td>

 

Middle Initial

 

</td>

 

 

<td>

 

 

<telerik:RadTextBox ID="txtMiddleInitial" runat="server"

 

 

MaxLength="1"

 

 

TextMode="SingleLine">

 

 

</telerik:RadTextBox>

 

 

</td>

 

 

<td>

 

Last Name

 

</td>

 

 

<td>

 

 

<telerik:RadTextBox ID="txtLastName" runat="server"

 

 

MaxLength="50"

 

 

TextMode="SingleLine"

 

 

AutoCompleteType="FirstName"

 

 

ClientEvents-OnKeyPress="KeyPressed">

 

 

</telerik:RadTextBox>

 

 

<asp:RequiredFieldValidator ID="rfvLastName" runat="server"

 

 

ControlToValidate="txtLastName"

 

 

ErrorMessage="Last name is required."

 

 

SetFocusOnError="true"

 

 

ValidationGroup="vgpCreateReferral">* Required

 

 

</asp:RequiredFieldValidator>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td>Gender</td>

 

 

<td>

 

 

<asp:RadioButtonList ID="rblGender" runat="server"

 

 

RepeatColumns="3"

 

 

RepeatDirection="Horizontal">

 

 

<asp:ListItem Value="F" Text="Female"></asp:ListItem>

 

 

<asp:ListItem Value="M" Text="Male"></asp:ListItem>

 

 

<asp:ListItem Value="U" Text="Unknown"></asp:ListItem>

 

 

</asp:RadioButtonList>

 

 

</td>

 

 

<td>DOB</td>

 

 

<td>

 

 

<telerik:RadDateInput ID="rdpDateOfBirth" runat="server" Width="90px" Skin="Office2007" ClientEvents-OnKeyPress="KeyPressed">

 

 

</telerik:RadDateInput>

 

 

</td>

 

 

<td>SSN</td>

 

 

<td>

 

 

<telerik:RadMaskedTextBox ID="txtSSN" runat="server"

 

 

Mask="###-##-####"

 

 

ClientEvents-OnKeyPress="KeyPressed">

 

 

</telerik:RadMaskedTextBox>

 

 

<asp:RegularExpressionValidator ID="revSSN" runat="server"

 

 

ControlToValidate="txtSSN"

 

 

ErrorMessage="Enter SSN in XXX-XX-XXXX format"

 

 

SetFocusOnError="true"

 

 

Display="Dynamic"

 

 

ValidationExpression="\d{3}-\d{2}-\d{4}"

 

 

ValidationGroup="vgpCreateReferral" >* Invalid

 

 

</asp:RegularExpressionValidator>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td>Address<br /><br />City State Zip</td>

 

 

<td>

 

 

<telerik:RadTextBox ID="txtAddress1" runat="server"

 

 

MaxLength="50"

 

 

ClientEvents-OnKeyPress="KeyPressed">

 

 

</telerik:RadTextBox><br />

 

 

<telerik:RadTextBox ID="txtAddress2" runat="server"

 

 

MaxLength="50"

 

 

ClientEvents-OnKeyPress="KeyPressed">

 

 

</telerik:RadTextBox><br />

 

 

<telerik:RadTextBox ID="txtCity" runat="server"

 

 

MaxLength="50"

 

 

ClientEvents-OnKeyPress="KeyPressed">

 

 

</telerik:RadTextBox>

 

 

<telerik:RadComboBox ID="rcbState" runat="server"

 

 

DataSourceID="odsStates"

 

 

DataTextField="Description"

 

 

DataValueField="StateID"

 

 

AppendDataBoundItems="True"

 

 

MarkFirstMatch="True"

 

 

Skin="Office2007"

 

 

MaxHeight="125px">

 

 

<Items>

 

 

<telerik:RadComboBoxItem ID="RadComboBoxItem14" runat="server"

 

 

Selected="True"

 

 

Text="- Select a state -"

 

 

Value="0">

 

 

</telerik:RadComboBoxItem>

 

 

</Items>

 

 

</telerik:RadComboBox>

 

 

<asp:ObjectDataSource ID="odsStates" runat="server"

 

 

SelectMethod="GetStatesDataView"

 

 

TypeName="PPS_LIB.Utilities.Tools">

 

 

</asp:ObjectDataSource>

 

 

<telerik:RadMaskedTextBox ID="txtZIPCode" runat="server"

 

 

Mask="#####-####"

 

 

Style="TEXT-ALIGN:left"

 

 

ClientEvents-OnKeyPress="KeyPressed">

 

 

</telerik:RadMaskedTextBox>

 

 

<asp:RegularExpressionValidator ID="revZIPCode" runat="server"

 

 

ControlToValidate="txtZIPCode"

 

 

ErrorMessage="Enter ZIP in 99999 or 99999-9999 format."

 

 

SetFocusOnError="true"

 

 

Display="Dynamic"

 

 

ValidationExpression="(^\d{5}-$)|(^\d{5}-\d{4}$)"

 

 

ValidationGroup="vgpCreateReferral" >* Invalid

 

 

</asp:RegularExpressionValidator>

 

 

</td>

 

 

<td>Phone<br />Mobile<br />Fax</td>

 

 

<td>

 

 

<telerik:RadMaskedTextBox ID="txtPhone" runat="server"

 

 

Mask="###-###-####"

 

 

MaxLength="14"

 

 

ClientEvents-OnKeyPress="KeyPressed">

 

 

</telerik:RadMaskedTextBox>

 

 

<asp:RegularExpressionValidator ID="revPhone" runat="server"

 

 

ControlToValidate="txtPhone"

 

 

ErrorMessage="Enter phone number in 999-999-9999 format."

 

 

SetFocusOnError="true"

 

 

Display="Dynamic"

 

 

ValidationExpression="^\d{3}-\d{3}-\d{4}$"

 

 

ValidationGroup="vgpCreateReferral" >* Invalid

 

 

</asp:RegularExpressionValidator><br />

 

 

<telerik:RadMaskedTextBox ID="txtMobilePhone" runat="server"

 

 

Mask="###-###-####"

 

 

MaxLength="14"

 

 

ClientEvents-OnKeyPress="KeyPressed">

 

 

</telerik:RadMaskedTextBox>

 

 

<asp:RegularExpressionValidator ID="revMobilePhone" runat="server"

 

 

ControlToValidate="txtMobilePhone"

 

 

ErrorMessage="Enter mobile phone number in 999-999-9999 format."

 

 

SetFocusOnError="true"

 

 

Display="Dynamic"

 

 

ValidationExpression="^\d{3}-\d{3}-\d{4}$"

 

 

ValidationGroup="vgpCreateReferral" >* Invalid

 

 

</asp:RegularExpressionValidator><br />

 

 

<telerik:RadMaskedTextBox ID="txtFax" runat="server"

 

 

Mask="###-###-####"

 

 

MaxLength="14"

 

 

ClientEvents-OnKeyPress="KeyPressed">

 

 

</telerik:RadMaskedTextBox>

 

 

<asp:RegularExpressionValidator ID="revFax" runat="server"

 

 

ControlToValidate="txtFax"

 

 

ErrorMessage="Enter fax number in 999-999-9999 format."

 

 

SetFocusOnError="true"

 

 

Display="Dynamic"

 

 

ValidationExpression="^\d{3}-\d{3}-\d{4}$"

 

 

ValidationGroup="vgpCreateReferral" >* Invalid

 

 

</asp:RegularExpressionValidator>

 

 

</td>

 

 

<td>E-mail</td>

 

 

<td>

 

 

<telerik:RadTextBox ID="txtEmail" runat="server"

 

 

MaxLength="100"

 

 

ClientEvents-OnKeyPress="KeyPressed">

 

 

</telerik:RadTextBox>

 

 

<asp:RegularExpressionValidator ID="revEmail" runat="server"

 

 

ControlToValidate="txtEmail"

 

 

ErrorMessage="Enter email in name@organization.com format."

 

 

SetFocusOnError="true"

 

 

Display="Dynamic"

 

 

ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"

 

 

ValidationGroup="vgpCreateReferral">* Invalid

 

 

</asp:RegularExpressionValidator>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td>

 

Organization

 

</td>

 

 

<td colspan="5">

 

 

<telerik:RadComboBox ID="rcbReferralLocation" runat="server" AutoPostBack="True"

 

 

DataTextField="Name" DataValueField="FacilityID"

 

 

NoWrap="True"

 

 

Width="255px" MaxHeight="125px"

 

 

MarkFirstMatch="True"

 

 

Skin="Office2007"

 

 

OnDataBound="rcbReferralLocation_DataBound">

 

 

</telerik:RadComboBox>

 

 

<asp:RequiredFieldValidator ID="rfvReferralLocation" runat="server"

 

 

ControlToValidate="rcbReferralLocation"

 

 

ErrorMessage="Organization is required."

 

 

InitialValue="- Select an organization -"

 

 

ValidationGroup="vgpCreateReferral">* Required

 

 

</asp:RequiredFieldValidator>

 

 

<asp:ObjectDataSource ID="odsReferralLocations" runat="server"

 

 

SelectMethod="GetAvailableFacilitiesByUser"

 

 

TypeName="PPS_LIB.Facility.Facility">

 

 

<SelectParameters>

 

 

<asp:SessionParameter DefaultValue="0" SessionField="USERID" Name="UserID" Type="Int64" />

 

 

</SelectParameters>

 

 

</asp:ObjectDataSource>

 

 

</td>

 

 

</tr>

 

 

</table>

 

</

 

asp:Content>

As you can see my script code is inside the RadCodeBlock and I have very simple master page. Also, I have noticed that if I used and other standard ASP.NET control that causes the postback and I use it RadAjaxManager, I don't get the error mentioned above. I would appreciate if you would let me know a workaround to this problem. This is very urget and a quick response will be appreciated.

I am using RadControls for ASP.NET AJAX 2009 Q1.

Thanks,
Soor

 

Iana Tsolova
Telerik team
 answered on 23 Feb 2010
2 answers
160 views

Hi,

Do we have any way to export the editor content as doc/docx (Microsoft Word)?

Thanks in Advance

Regards,
Dwarka

Rumen
Telerik team
 answered on 23 Feb 2010
1 answer
100 views
Hi,

I'm trying to make a radtoolbarbutton's text bold in a dropdown when its clicked or checked. I've tried using checkcssclass but haven't been able to get it to work. I'm wondering what the code would be to do this client side.

Regards,

Peter
Yana
Telerik team
 answered on 23 Feb 2010
3 answers
231 views
Hi all,

I'm sure you understand my code beneath, but how could this be done better? Not really like this "selection-hack"...

GridTemplateColumn:
<telerik:GridTemplateColumn HeaderText="<%$ Resources:LanguageWeb, OrderLine_Paragraph %>" 
    UniqueName="ParagraphId" HeaderStyle-Width="200px">
    <ItemTemplate>  
        <telerik:RadComboBox runat="server" ID="CbParagraph" OnInit="CbParagraph_Init" ToolTip='<%# Bind("Paragraph.id") %>' /> 
    </ItemTemplate>  
</telerik:GridTemplateColumn> 

The combobox items is loaded in the OnInit event, and selection done in the ItemDataBound on the RadGrid like this:
protected void RadGrid_ItemDataBound(object sender, GridItemEventArgs e) 
{ 
    if (!(e.Item is GridDataItem)) return; 
    var gridItem = (GridDataItem)e.Item; 
 
    var cbParagraphControl = gridItem.FindControl("CbParagraph"); 
    if (cbParagraphControl is RadComboBox) 
    { 
        var cbParagraph = (RadComboBox) cbParagraphControl; 
        cbParagraphcbParagraph.SelectedValue = cbParagraph.ToolTip; 
        cbParagraph.ToolTip = ""; 
    } 
} 

Any ideas?

Cheers, Ahrensberg

Iana Tsolova
Telerik team
 answered on 23 Feb 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?