Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
129 views
Hi,

Has anyone used Umbraco and Telerik controls - when I add the RadRotator and set the Umbraco macro to cache the control then it stops working. The first page load is ok, subsequent page loads show nothing.

I'm really scratching my head here!

Thanks.
Dan
Top achievements
Rank 1
 answered on 19 Aug 2011
2 answers
92 views
I am trying to update values of first combobox based on another combobox's sected value in the rad grid's formtemplate.It si not updating properly.Could you please help me to fix this problem.
Here is my code.

ASPX

 

 

<tr>

 

 

 

<td align="left">

 

 

 

<telerik:RadComboBox EnableScreenBoundaryDetection="false" ID="rdcbCustomer" runat="server" Skin="Vista" AppendDataBoundItems="true"

 

 

 

Filter="StartsWith" DataSource='<%# Iif (TypeOf Container is GridEditFormInsertItem, ActiveCustomers, Customers) %>'

 

 

 

DataTextField="Name" DataValueField="CustomerId" AutoPostBack="true" CausesValidation="false" OnSelectedIndexChanged="rdcbCustomer_OnSelectedIndexChanged">

 

 

 

<Items>

 

 

 

<telerik:RadComboBoxItem Text="---Select---" Value="-1" Selected="true" />

 

 

 

</Items>

 

 

 

</telerik:RadComboBox>

 

 

 

<br />

 

 

 

<asp:RequiredFieldValidator ID="customerValid" ControlToValidate="rdcbCustomer" Text="Customer is required."

 

 

 

Display="dynamic" runat="server" InitialValue="---Select---" /><br />

 

 

 

</td>

 

 

 

</tr>

 

 

 

<tr align="left">

 

 

 

<td>

 

 

 

<b>Party: *</b>

 

 

 

</td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td align="left">

 

 

 

<telerik:RadComboBox EnableScreenBoundaryDetection="false" ID="rdcbParty" runat="server" Skin="Vista" AppendDataBoundItems="true"

 

 

 

Filter="StartsWith" DataSource='<%# Parties %>' DataTextField="Name" DataValueField="PartyId">

 

 

 

<Items>

 

 

 

<telerik:RadComboBoxItem Text="---Select---" Value="-1" Selected="true" />

 

 

 

</Items>

 

 

 

</telerik:RadComboBox>

 

 

 

<br />

 

 

 

<asp:RequiredFieldValidator ID="partyValid" ControlToValidate="rdcbParty" Text="Party is required."

 

 

 

Display="dynamic" runat="server" InitialValue="---Select---" /><br />

 

 

 

</td>

 

 

 

</tr>

 



ASPX.VB

 

 

Protected Sub rdcbCustomer_OnSelectedIndexChanged(ByVal o As Object, ByVal e As RadComboBoxSelectedIndexChangedEventArgs)

 

Parties = LoadPartiesListByCustomer(e.Value)

 

 

Dim combo1 As RadComboBox = TryCast(o, RadComboBox)

 

 

 

Dim editItem As GridEditFormItem = TryCast(combo1.NamingContainer, GridEditFormItem)

 

 

 

Dim combo2 As RadComboBox = TryCast(editItem.FindControl("rdcbParty"), RadComboBox)

 

combo2.DataSource = Parties

 

 

End Sub

 

 

 

Protected Function LoadPartiesListByCustomer(ByVal cust_id) As IList(Of Party)

 

 

 

Dim party As IList(Of Party) = New List(Of Party)()

 

 

 

Dim dtParty As DataTable = cDA.GetPartiesByCustomer(cust_id)

 

 

 

If dtParty.Rows.Count > 0 Then

 

 

 

For Each dr As DataRow In dtParty.Rows

 

 

 

Dim p As New Party()

 

p.PartyId =

 

Convert.ToInt32(dr("PartyId"))

 

p.Name =

 

Convert.ToString(dr("Name"))

 

p.IsActive =

 

Convert.ToBoolean(dr("IsActive"))

 

party.Add(p)

 

 

Next

 

 

 

End If

 

 

 

'Parties.Clear()

 

 

Parties = party

 

 

Return Parties

 

 

 

End Function

 

Please help me to fix this problem
hari
Top achievements
Rank 1
 answered on 19 Aug 2011
1 answer
125 views
Hi,

I have several Notifications which are activated OnPostback setting VisibleOnPageLoad = True from codebehind.

How do i stack these? They are all shown all in same position now.

Thanks,
Marc
Marin Bratanov
Telerik team
 answered on 19 Aug 2011
5 answers
326 views
Hi
Environment: RadControls for ASP.NET AJAX Q3 2009 / VS 2008 SP1/IE7/WINXP SP 2.

I am using this Telerik Link as a prototype for my Project:

 

http://demos.telerik.com/aspnet-ajax/spell/examples/programming/datagrid/defaultcs.aspx

Question is that: How do I use the image  ButtonType = "ImageButton"  for Spell Check in Rad Grid...

Attached are my screen shoots. I would like to see spell checker button type as (spellcheck.PNG),  but not like untitled-3 copy.jpg .  I can use the Image Button for regular text Box but did not find any thread for Grid Template Columns..

Thanks

Below is my Grid Declaration:

<telerik:RadGrid ID="RadGrid1">
''''
''''

 

 

 

 

<
asp:TemplateColumn HeaderText="Description">  
<ItemTemplate> 
<asp:Label ID="lblField1" CssClass="text" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "ProductDescription") %>' /> 
</ItemTemplate> 
<EditItemTemplate> 
<asp:TextBox runat="server" ID="ProductDescription" TextMode="MultiLine" Rows="4" 
Columns="40" Text='<%# DataBinder.Eval(Container.DataItem, "ProductDescription") %>' /> 
<telerik:RadSpell ID="RadSpell1" runat="server" ControlToCheck="ProductDescription" /> 
</EditItemTemplate> 
</asp:TemplateColumn> 

''''
''''
</telerik:RadGrid>

 

 

 

 

 

 

Marin Bratanov
Telerik team
 answered on 19 Aug 2011
5 answers
396 views
I have a RadTabStrip that has to perform some server-side processing where a file streamed into a database and uploaded. I have this working successfully. 

When this processing completes I need to set focus on a different tab in the PageMultiPage and that new tab needs to requery the database and refresh its dislayed contents ... in essence a postback to query the database and display current values in a RadGrid. 

Is there a way to trigger this navigation and postback on the the new tab?  Is there a way to cause a postback when the user changes tabs?

If so, please list code example on how to do this.

Thanks.
 





Steve
Top achievements
Rank 1
 answered on 19 Aug 2011
2 answers
140 views
Hi

I am trying to call a RadWindow Alert from a RadGrid ItemCommand but get this exception

"Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object."

I am trying to test for some selected items within a sub-grid, so my code is:

public static void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
        {
            RadGrid RadGrid1 = (RadGrid)sender;
            if (e.CommandName == "AddToCart")
            {
                if (RadGrid1.SelectedIndexes.Count == 0)
                {
                    RadWindowManager1.RadAlert("No documents have been selected", 250, 100, "Add to Document Cart", "");
                    return;
                }
                GridCommandItem Item = (GridCommandItem)e.Item;
                ImageButton btnAddToCart = (ImageButton)e.Item.FindControl("btnAddSelectedToCart");
                ....
                ..... rest of code...
            }
}

This errors on the RadAlert line...
Any clues please.
Simon
Top achievements
Rank 1
 answered on 19 Aug 2011
1 answer
96 views
I need change somes style of RadFilter.
i added RadFilter.css in my project and the follow control_:
                   <telerik:RadFilter
                            ID="RadFilter3" runat="server"  
                            Culture="es-AR"  CssClass="RadFilter RadFilter_Default"
                            ExpressionPreviewPosition="Bottom" Skin="Vista">
                        <FieldEditors>
                            <telerik:RadFilterTextFieldEditor DisplayName="Fulltext" FieldName="1" />
                            <telerik:RadFilterTextFieldEditor DisplayName="Name" FieldName="2" />
                            <telerik:RadFilterTextFieldEditor DisplayName="Modified" FieldName="3" />
                        </FieldEditors>
                        </telerik:RadFilter>
    
Ths css is:
.RadFilter_Default,.RadFilter_Default .rfDiv{display:block}
.RadFilter_Default:after,.RadFilter_Default .rfDiv:after{content:"";display:block;height:0;visibility:hidden;}

.RadFilter_Default.rfField {
  display: block !important;
}

If I have in aspx:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
ths css doesnt work

But if i change it by this:
<!DOCTYPE html >

If works!

BUT I need use
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

How I can resolved this issue??

I attach imnage with DOCTYPE  and whitout DOCTYPE

I need RadFilter such as withoutDocType Image

Galin
Telerik team
 answered on 19 Aug 2011
2 answers
112 views
Hi,

I'm presently working on a application that use a radGrid with a Web User Control, so I used this demo to help me. I also want, in my Web User Control, to have a button that will make appears a window that will return a value that will fill a field (tbField) inside the Web User Control (like in this demo). So I tried it out, but I wasn't able to realise my scenario. Here is the problem : the javaScript code for calling the window and get back the value is write in the page that containt the radGrid. I'm able to get the value from the window, but I don't know how to set it to the field in the Web User Control (tbField). Here is my code in js function : 

// Function that is called from the window to "get back" the value and fill the field tbField
function test(args) {
    RadAjaxManager1.ajaxRequest(args);
}

So, how do I access the field in the Web User Control from code-behind. Guess it should be something like
"row that is edited".FindControl("tbField") as TextBox

 but I don't know how to get the edited row.
David
Top achievements
Rank 1
 answered on 19 Aug 2011
1 answer
156 views
I have a RadPanelBar bound to a datasource.  In the ItemTemplate I have checkboxlist bound to another datasource.  The select parameter for the datasource for the checkboxlist is the RadPanelItem's value.

This is probably very straight forward and would appreciate some help in accomplishing this.

Thanks
Sumith
Kate
Telerik team
 answered on 19 Aug 2011
1 answer
160 views
Hi,

We encounter a performance issue in IE 8 with RadComboBox for more than 2000 listitems
The performance degrades a lot and gives an error "Stop running this script? A script on this page causing IE to run slowly..."

My Radcombobox has below settings and bind dataset to this combo in page load event.

<

 

telerik:RadComboBox ID="ddlEmployee" runat="server" Width="190px" Height="100px"

 

 

EmptyMessage="Select employee " EnableLoadOnDemand="True" EnableVirtualScrolling="true"

 

 

OnItemsRequested="RadComboBox1_ItemsRequested" DataTextField="Name" DataValueField="EmpNo"

 

 

Skin="WindowsXP" OffsetX="2" AllowCustomText="True" EnableEmbeddedSkins="False"

 

 

EnableAjaxSkinRendering="False" EnableEmbeddedBaseStylesheet="False"

 

 

EnableItemCaching="True" ShowMoreResultsBox="True">

 

 

</telerik:RadComboBox>

Can someone help me how to improve the performance? 

Any suggestions would be appreciated.

Thanks & Regards,

Kiran 

Shinu
Top achievements
Rank 2
 answered on 19 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?