Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
105 views

When I am loading the page I want to select a value in Combobox with Treeview.

I am using following code, It selects correct value from a tree view but combo box doesn’t show this selected value, it always says “Select”.

How to I a show selected value on page load?

I am using following code.

      Dim tvCategory As RadTreeView = DirectCast(cboCategory.Items(0).FindControl("tvCategory"), RadTreeView)

                        tvCategory.FindNodeByValue(LCase(project.SubscriberCategory.Id.ToString)).Selected = True

A K
Top achievements
Rank 1
 answered on 11 May 2010
1 answer
81 views
I am writing a app that sends email to recipients based on templates.

Templates have a one to many relationship to recipients

I'm using radgrid to display the email templates and do inserts/updates.  With a formtemplate popup with another radgrid on it for the recipients.

When I'm inserting a new email template,  I have the situation where I need to perform the row insert without closing the formtemplate / popup, so I have a key for the recipients.

Is there a way to do this sort of thing?
Tsvetoslav
Telerik team
 answered on 11 May 2010
1 answer
130 views
Anyone have any examples that show how I would do the following.

I need a radtextbox and a radgrid.  The grid by default shows all the data table's records but when the user starts typing into textbox,  it automatically starts filtering the grid client-side (keyup event).

Would this be something I could use as a guide by changing out the combobox for textbox?  http://demos.telerik.com/aspnet-ajax/xmlhttppanel/examples/gridinxmlhttppanel/defaultvb.aspx
Shinu
Top achievements
Rank 2
 answered on 11 May 2010
2 answers
202 views
I am trying to get a basic grid working using a linqDataSource which is populated with a stored procedure.

    <div style="width:100%;overflow:auto;"
 
        <telerik:RadGrid ID="RadGrid1" Width="3000px" AllowPaging="True" PageSize="15" runat="server" AllowSorting="true" 
            GridLines="None" DataSourceID="linq_mySP"
            <MasterTableView Width="100%" /> 
            <PagerStyle Mode="NextPrevAndNumeric" /> 
            <FilterMenu EnableTheming="True"
                <CollapseAnimation Duration="200" Type="OutQuint" /> 
            </FilterMenu> 
        </telerik:RadGrid> 
            
    </div> 
 
     <asp:LinqDataSource AutoPage="True" ID="linq_mySP" runat="server"></asp:LinqDataSource> 


Imports System.Data 
Imports Telerik.Web.UI 
 
Partial Class gridPages_telerikGrid 
    Inherits System.Web.UI.Page 
 
 
    Protected Sub linq_mySP_Selecting(ByVal sender As ObjectByVal e As System.Web.UI.WebControls.LinqDataSourceSelectEventArgs) Handles linq_mySP.Selecting 
        Using context As New DataClassesDataContext 
 
            Dim fromdate As DateTime = DateAdd(DateInterval.Year, -5, DateTime.Now) 
            Dim todate As DateTime = DateTime.Now 
 
            e.Result = context.spTest(49, fromdate, todate) 
 
        End Using 
    End Sub 
 
 
End Class 

The problem I have is that on page load I get an 'object reference not set to an instance error', which I believe it is refering to the grid.  I can get the grid to work not using linqDataSource by binding the data to the grid on page load, but i need to get it working using a linqDataSource.

Any help would be much appreciated.
mabs
Top achievements
Rank 1
 answered on 11 May 2010
1 answer
53 views
Hi im using the GridTableView.filter() client side function and it works great.
But only on columns that are actually displayed in the grid.

I would like to call GridTableView.filter() on a column in the data source that is not displayed.
I have added the column name to MasterTableView ClientDataKeyNames property.

Is this possible? How do I do it? I guess a work-around would be including the columns with a 0 width - but i'd prefer something more efficient.

Thank you!
Topher
Tsvetoslav
Telerik team
 answered on 11 May 2010
1 answer
140 views
Can the file type icons be removed from the grid portion of the fileexplorer control?
Petio Petkov
Telerik team
 answered on 11 May 2010
1 answer
79 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
112 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
71 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?