Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
86 views
Hi
   I am developing a website where I have to display 3 ads at a time, now problem is I need the central ad to be of different size like on this website
http://www.realtor.com/
you can see it right under Find Home box.

I need to implement 100% same thing except that it would automatic Advance. 


Any help would be highly appreciated.


Best Regards
Rizwan Bashir
Petio Petkov
Telerik team
 answered on 11 May 2010
1 answer
121 views
Hello
I have a RadSplitter with two side-by side rad panes.
The right pane has a couple of controls inside, not fully filling the pane
In IE7 and IE8 compatibility mode, objects are centered in the right pane
In IE8, Safari and others, objects are "left justified". I have not been able to find the pane or splitter property that centers them.
Please see attachment
Thanks!

Relevant code follows

 

<

 

telerik:RadSplitter id="RadSplitter1" runat="server" skin="Office2007"

 

 

height="500px" width="950px" BorderSize="0" BorderStyle="None" >

 

 

<

 

telerik:RadPane id="LeftPane" runat="server" width="150px" Scrolling="None" Collapsed="false" BackColor="White">

 

 

<telerik:RadPanelbar ID="BarraCli" runat="server" skin="Vista" ExpandMode="FullExpandedItem" Height="500px"

 

 

Width="100%" CssClass="BarraCli">

 

 

<Items>

 

 

<telerik:RadPanelItem runat="server" Text="xxxxx" PostBack="false" Expanded="false" Value="0">

 

.... more code here

 

</telerik:RadPanelItem>

 

 

</Items>

 

 

</telerik:RadPanelbar>

 

 

</

 

telerik:RadPane>

 

<

 

telerik:RadPane id="MiddlePane" runat="server" >

 

 

 

<div id="Div1" style="height: 20px"></div>

 

 

 

<asp:Panel ID="Panel1" runat="server" CssClass="Titulos" SkinID="Ptitulo" Width="600px" >

 

 

.... more things here
</
asp:Panel>

 

 

<telerik:RadGrid ID="Grilla" Skinid="Grilla2" runat="server" OnNeedDataSource="........" DataKeyNames="...."

 

 

Width="600px" Height="400px" PageSize = "12" >

 

 

<MasterTableView NoMasterRecordsText=".." >

 

 

<Columns>

 

 

.......
</
Columns>

 

 

</MasterTableView>

 

 

</telerik:RadGrid>

 

 

</telerik:RadPane>

 

</

 

telerik:RadSplitter>
........

....

 

Bozhidar
Telerik team
 answered on 11 May 2010
1 answer
148 views

function

 

 

ValidateTreatment() {

 

 

 

var radcboLocType = document.getElementById("<%=radcboLocType.ClientID%>");

 

 

 

var radtxtName1 = document.getElementById("<%=radtxtName.ClientID%>");

 

 

 

var radtxtTreatmentLocAddr1 = document.getElementById("<%=radtxtTreatmentLocAddr1.ClientID%>");

 

 

 

var radcboTreatmentLocState = document.getElementById("<%=radcboTreatmentLocState.ClientID%>");

 

 

 

var radtxtTreatmentLocCity = document.getElementById("<%=radtxtTreatmentLocCity.ClientID%>");

 

 

 

var radmsktxtTreatmentLocZipCode = document.getElementById("<%=radmsktxtTreatmentLocZipCode.ClientID%>");

 

 

 

var radmsktxtTreatmentLocPhoneNum = document.getElementById("<%=radmsktxtTreatmentLocPhoneNum.ClientID%>");

 

 

 

var TreatmentEmailAddrs = $find("<%= raktxtTreatmentLocEmailAddress.ClientID %>");

 

 

 

var regEmailValidation = /\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/

 

 

 

 

if (radcboLocType.value.trim() == "") {

 

 

 

var oAlert = radalert("Location Type cannot be blank.");

 

oAlert.add_close(

 

function () { radcboLocType.focus() });

 

 

 

return false;

 

}

 

 

if (radtxtName1.value.trim() == "") {

 

 

 

var oAlert1 = radalert("Location Name cannot be blank.");

 

oAlert1.add_close(

 

function () { radtxtName1.focus() });

 

 

 

return false;

 

}

 

 

if (radtxtTreatmentLocAddr1.value.trim() == "") {

 

 

 

var oAlert2 = radalert("Mailing Address cannot be blank.");

 

oAlert2.add_close(

 

function () { radtxtTreatmentLocAddr1.focus() });

 

 

 

return false;

 

}

 

 

if (radtxtTreatmentLocCity.value.trim() == "") {

 

 

 

var oAlert3 = radalert("Mailing City cannot be blank.");

 

oAlert3.add_close(

 

function () { radtxtTreatmentLocCity.focus() });

 

 

 

return false;

 

}

 

 

 

if (radcboTreatmentLocState.value.trim() == "") {

 

 

 

var oAlert4 = radalert("Mailing State cannot be blank.");

 

oAlert4.add_close(

 

function () { radcboTreatmentLocState.focus() });

 

 

 

return false;

 

}

 

 

if (radmsktxtTreatmentLocZipCode.value.trim() == "") {

 

 

 

var oAlert5 = radalert("Mailing Zip Code cannot be blank.");

 

oAlert5.add_close(

 

function () { radmsktxtTreatmentLocZipCode.focus() });

 

 

 

return false;

 

}

 

 

if (radmsktxtTreatmentLocPhoneNum.value.trim() == "") {

 

 

 

var oAlert6 = radalert("Phone Number cannot be blank.");

 

oAlert6.add_close(

 

function () { radmsktxtTreatmentLocPhoneNum.focus() });

 

 

 

return false;

 

}
}

I used this fucntion on client of the save button.. but after the radalert i can't get the focus to the control. Please Help me asap.. Thank you in advance..

Georgi Tunev
Telerik team
 answered on 11 May 2010
1 answer
77 views
I've upgraded from 2008 Q3 to 2010 Q1.  The issue I am having is that now ASP Buttons appear in IE8 with a section missing and no longer size according to my set widths like they did in the earlier version. All my ASP Buttons are in table cells (<td>)

If I switch to compatibility view for IE8, the problem goes away.  See attached for before and after.  Note that if I removed the FormDecorator, it works fine in either view mode (just without decoration.)

Any ideas?  I've searched the threads, but didn't find a match to this issue that worked.  Would someone point me to the fix or a thread that addresses this issue?  Thanks.
Georgi Tunev
Telerik team
 answered on 11 May 2010
6 answers
473 views

Can someone advise how to programmatically create a radwindow and it needed elements?

And then add it to the page.

Kyle

Georgi Tunev
Telerik team
 answered on 11 May 2010
1 answer
157 views
hi guys

i have grid view.
pic : http://www.freeuploadimages.org/images/30brjuf9vbd7larfzalc.jpg

i need udpate buy basket(count textbox) when user click in Refresh button.

how i can implement that?

tnx
Princy
Top achievements
Rank 2
 answered on 11 May 2010
1 answer
114 views
When I create a new project (Visual C#, Web, RadControls Web Application, .NET Framework 3.5), I do not get RAD controls in the Toolbox.  Upgrading to 2010.1.415.35 (from 2010.1.309) did not help.  I have also tried right-click on "General" tab in toolbox then "Choose Items" and browse to the Telerik.Web.UI.dll.

Just noticed, too that old projects which used to have Telerik in the Toolbox now do not either.  Microsoft AJAX components (Pointer, Script Mangager, etc) are listed.

Thanks in advance!
Andrey
Telerik team
 answered on 11 May 2010
3 answers
172 views
hi,

currently I am doing grouping on single values as follows

GridGroupByExpression CountryCategoryExpression = GridGroupByExpression.Parse(" CName [ ],pName[&nbsp;&nbsp;&nbsp;&nbsp;ProductValues/ServiceValues],sName[/] Group By CName"); 
CountryRadGrid.MasterTableView.GroupByExpressions.Add(CountryCategoryExpression); 

above code works fine for me.

but now my requirement changed as a way that the CName, pName and sName can be multiple (they are coming as array, which is as follows

Iana Tsolova
Telerik team
 answered on 11 May 2010
9 answers
850 views
Hi,

I want to call "InitInsert" through using  firecommand event in server side coding.I need to call this event from Combo box selected index changed event.

please answer this as soon as possible.

Regards,
Kishore
Rosen
Telerik team
 answered on 11 May 2010
4 answers
132 views
I have checkboxes in my grid row which I would like to pass to a new insert form.  However, the following code seems to be creating the form before inserting the data and therefore causing an invalid DBnull where it is expecting a boolean value.  How can this be corrected?

If e.CommandName = "CopyToInsertForm" Then 
                Dim item As GridDataItem = DirectCast(e.Item, GridDataItem) 
                'Put the RadGrid in the insert mode  
                RadGrid1.MasterTableView.IsItemInserted = True 
                RadGrid1.Rebind() 
                'Get the inserformItem using the GetInsertItem Method  
                Dim insertedItem As GridEditFormInsertItem = DirectCast(RadGrid1.MasterTableView.GetInsertItem(), GridEditFormInsertItem) 
                'Finding the textbox in the insert form and setting it's value  
                TryCast(insertedItem("NCR").Controls(0), RadTextBox).Text = item("NCR").Text 
                TryCast(insertedItem("PartNumber").Controls(0), RadTextBox).Text = item("PartNumber").Text 
                TryCast(insertedItem("Title").Controls(0), RadTextBox).Text = item("Title").Text 
                TryCast(insertedItem("Disposition").Controls(0), RadTextBox).Text = item("Disposition").Text 
                TryCast(insertedItem("Status").Controls(0), RadTextBox).Text = item("Status").Text 
                TryCast(insertedItem("maj").Controls(0), CheckBox).Checked = item("maj").Text 
                TryCast(insertedItem("min").Controls(0), CheckBox).Checked = item("min").Text 
                TryCast(insertedItem("corractionreqyes").Controls(0), CheckBox).Checked = item("corractionreqyes").Text 
                TryCast(insertedItem("corractionreqno").Controls(0), CheckBox).Checked = item("corractionreqno").Text 
 
            End If 


I work around the issue in normal insert with the following code:

            If e.CommandName = RadGrid.InitInsertCommandName Then 
                e.Canceled = True 
                'Prepare an IDictionary with the predefined values 
                Dim newValues As System.Collections.Specialized.ListDictionary = New System.Collections.Specialized.ListDictionary() 
 
                'set initial checked state for the checkbox on init insert 
                newValues("maj") = True 
                newValues("min") = False 
                newValues("corractionreqyes") = False 
                newValues("corractionreqno") = True 
                newValues("Liason") = User.Identity.Name + Space(5) + DateTime.Today 
 
                'Insert the item and rebind 
                e.Item.OwnerTableView.InsertItem(newValues) 
            End If 

Iana Tsolova
Telerik team
 answered on 11 May 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?