Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
265 views
I'm using the RadTreeView control in a ASP.Net user control. Each of my nodes have a ImageUrl and text.  I need to add a button to each node that triggers an event when the button is clicked.

Is there an example of this?

Ivan Zhekov
Telerik team
 answered on 05 Aug 2011
2 answers
159 views
Hi all...I'm trying to make a pdf of a radgrid from a button...This radgrid has a default skin (Windows7)...Can someone explain me how to give the skin equal to this pdf ? I have so many row...But generating the file...I have every row overlapped in one...
Andrea
Top achievements
Rank 1
 answered on 05 Aug 2011
3 answers
108 views
I have a the rad date picker that is giving the following error on IE8 when clicking on the calendar for the date picker:
Microsoft JScript runtime error: 'iframeShim.style' is null or not an object

It's happening on this line of code:

}d.iframeShim.style.top=(RadHelperUtils.IsDefined(c))?(c+"px"):d.style.top;

Here is my aspx code:

 

<div class="labels"><asp:Label ID="lblStartDate" runat="server" Text="Start Date:"></asp:Label></div>

 

 

<div class="textlabel"><telerik:RadDatePicker ID="dtStartDate" runat="server" Skin="DMID" EnableEmbeddedSkins="false"

 

 

OnSelectedDateChanged="dtStartDate_SelectedDateChanged" AutoPostBack="True" ToolTip="start date">

 

 

<Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x"

 

 

Skin="DMID" EnableEmbeddedSkins="False">

 

 

</Calendar>

 

 

<DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>

 

 

<DateInput DisplayDateFormat="MM/dd/yyyy" DateFormat="MM/dd/yyyy" EnableEmbeddedSkins="False"

 

 

AutoPostBack="True">

 

 

</DateInput>

 

 

</telerik:RadDatePicker>

 

 

<asp:RequiredFieldValidator ID="rfvStartDate" runat="server" ControlToValidate="dtStartDate"

 

 

ErrorMessage="<label for='dtStartDate'>Start Date</label>" Text="*" Display="Dynamic"

 

 

ValidationGroup="vRequired"></asp:RequiredFieldValidator>

 

 

</div>

 

 

<div class="labels">

 

 

<asp:Label ID="lblEndDate" runat="server" Text="End Date:"></asp:Label>

 

 

</div>

 

 

<div class="textlabel">

 

 

<telerik:RadDatePicker ID="dtEndDate" runat="server" Skin="DMID" EnableEmbeddedSkins="false">

 

 

</telerik:RadDatePicker>

 

 

<asp:RequiredFieldValidator ID="rfvEndDate" runat="server" ControlToValidate="dtEndDate"

 

 

ErrorMessage="<label for='dtEndDate'>End Date</label>" Text="*" Display="Dynamic"

 

 

ValidationGroup="vRequired"></asp:RequiredFieldValidator>

 

 

</div>

 

khaled
Top achievements
Rank 1
 answered on 05 Aug 2011
1 answer
76 views
Hi Friends,

I'm facing a problem in Rad Tree View. If i Drag a Node, I need to show the Image for Node Position in Tree View.

Here i attached the image. If i drag and drop the Node as Child or Move to New Position. I'll need to give clear picture for this.


Thanks
Plamen
Telerik team
 answered on 05 Aug 2011
2 answers
107 views
Hi

I am trying to evaluate RAD Editor for SP2010 and of particular interest is the way it deals with List item editing, however when I attempt to edit a list item, i recieve a very basic text bar, I have tried an IISREST with no luck.
Attached is a screenshot of the toolbar in SP2010.

Any help is appreciated.
Yeamin Al
Top achievements
Rank 1
 answered on 05 Aug 2011
1 answer
129 views

Hi,

i am using a RadToolbar with multiple RadToolBarDropDown-Controls, which are using the OnLoad-Method to attach the Datasource.

My problem is that I am not able to verify, which button has been pressed, because the number of items in the drop down lists is not constant. I need a dynamic solution for this.

I am using something like to following code in the background:

Protected Sub Toolbar1_ButtonClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadToolBarEventArgs) Handles Toolbar1.ButtonClick
        Select Case e.Item.Index
        Case 1
               dim testString as String = e.Item.Text           
        End Select
 
 
End Sub

Kate
Telerik team
 answered on 05 Aug 2011
1 answer
149 views

Hello,

I am working to implement localization of a big portal. There is a lot of different telerik  controls. I found that controls supports localization via Global resources and .resx files
The problems are that we are adding new languages dynamically and that number of controls is too big.

1) Is there any way how to implement translations dynamically i.e. without .resx files?
2) Is there some way how we can initialize culture globally (not for every control grid.Culture = ...) and individual for each request e.g. some global settings or something like that?

Thanks

Vasil
Telerik team
 answered on 05 Aug 2011
8 answers
128 views
Hi,

here is what I want for my RadGrid :

  • fixed width -> ok
  • all rows with same heigth -> ok
  • horizontal scoller -> ok
  • no vertical scoller -> ko
  • dynamic grid heigth -> ko

I can set the height of my grid because all rows have the same height. But users can change the number of displayed lines. And in this case, the heigth of the grid don't change and a vertical scroller appears.

Is it possible that the grid automatically set its heigth from its content ?


Thank you
Francis
Top achievements
Rank 1
 answered on 05 Aug 2011
2 answers
127 views
I'm relatively new to Telerik, ASP.NET and VB so please bear with me.

I'm trying to build an admin page which will allow the user to change various properties drawn from a database.  I've got it working fine as far as getting/setting values to textboxes and now I'm trying to substitute in more specific UI elements such as color pickers and numeric text boxes.

As it stands the admin page uses a control, each control containing some table markup and a Placeholder element.  My thought was that I could attach correct UI widget based on the type of the control, but I can't get this to work.

In Page_Prerender of the control, the widgets are created and attached to the placeholder.  My problem comes in getting the changed values from these widgets when the user selects save.  It doesn't need to be as each setting is changed.

How should I go about getting these values back out?  I tried retrieving the value by getting the widget from the Placeholder's controls collection, but it only seems to include elements place in the placeholder in the markup, not those added in the code-behind.

Thank you for any help you can provide.
Ryan
Top achievements
Rank 1
 answered on 05 Aug 2011
4 answers
172 views
I am needing the user to be able to select their email address in the DropDownList menu, be presented with ListBox selections and when they move the selections to the second listbox window, their UserId and Email Address are saved into the database along with their ListBox selection. I am having difficulty with the datakeyfield, datatextfield, DataValueField setup in the controls. I setup the two labels to ensure I get the proper return from the DropDown menu prior to moving the ListBox selection. I have tried all available values but seem to get the UserId in both the Email and ID columns or vice-versa. Please help.
_ JT

Hi Dimitar,
Sorry for the lack of clairity. The issue is definately with the RadListBox. The 2 labels will show the correct selected values for Email & UserID (as ID), when a selection is made in the drop-down menu. The problem is that I need to have those 2 values submitted to the database, along with the selected Name value, when the Name selection goes from RadListBox1 to RadListBox2 by the user.

Thanks,
_ JT 

<telerik:radajaxloadingpanel runat="server" id="RadAjaxLoadingPanel1" skin="Office2007" />
<telerik:radajaxpanel runat="server" id="RadAjaxPanel1" loadingpanelid="RadAjaxLoadingPanel1">
    <!-- ---------------------------------------------------------------------- -->
    <!-- DropDownList control start ----------------------------------------------- -->
    <!-- ---------------------------------------------------------------------- -->
    <asp:sqldatasource id="SqlDataSource2" connectionstring="<%$ ConnectionStrings:IPdataConnectionString %>"
        providername="System.Data.SqlClient" selectcommand="SELECT DISTINCT Email, UserId as ID FROM [aspnet_Membership]"
        runat="server"></asp:sqldatasource>
    <label for="EmailDDN">
        <asp:label id="Label2" runat="server" class="text">Select Email: </asp:label>
    </label>
    <asp:dropdownlist id="EmailDDN" runat="server" autopostback="True" datasourceid="SqlDataSource2"
        appenddatabounditems="True" datakeyfield="ID" datatextfield="Email" datavaluefield="Email" 
        onselectedindexchanged="DDN_SelectedIndexChanged">
        <asp:listitem>
         Select your email address
        </asp:listitem>
    </asp:dropdownlist>
    <br />
    <asp:label id="EmailLabel1" runat="server">Selected Email: </asp:label>
    <br />
    <asp:label id="EmailLabel2" runat="server">Selected Value: </asp:label>
    <br />
    <!-- ------------------------------------------------------------------ -->
    <!-- ---------------------------------------------------------------------- -->
    <!-- ListBox control start -------------------------------------------- -->
    <telerik:radlistbox runat="server" id="RadListBox1" skin="Office2007" datasourceid="SourceDataSource"
        allowautomaticupdates="true" datakeyfield="ID" datatextfield="Name" DataValueField="ID"
        height="200px" allowtransfer="true" transfertoid="RadListBox2" transfermode="Copy" width="230px"
        autopostbackontransfer="true" />
    <telerik:radlistbox runat="server" id="RadListBox2" datasourceid="DestinationDataSource"
        allowautomaticupdates="true" datakeyfield="ID" datatextfield="Name" DataValueField="ID"
        height="200px" allowreorder="true" autopostbackonreorder="true" allowdelete="True" width="230px"
        autopostbackondelete="true" />
    <asp:sqldatasource id="SourceDataSource" runat="server" connectionstring="<%$ ConnectionStrings:IPdataConnectionString %>"
        providername="System.Data.SqlClient" 
        deletecommand="DELETE FROM Products WHERE ID = @ID"
        insertcommand="INSERT INTO Products (Name, ID, Email) VALUES (@Name, @ID, @Email)"
        selectcommand="SELECT Name, ID FROM Products" 
        updatecommand="UPDATE Products SET Name = @Name, Email = @Email WHERE ID = @ID">
        <deleteparameters>
            <asp:parameter name="ID" type="Int32" />
        </deleteparameters>
        <insertparameters>
            <asp:parameter name="Name" type="String" />
            <asp:controlparameter name="Email" propertyname="SelectedValue" controlid="EmailDDN" type="String" />
            <asp:controlparameter name="ID" propertyname="SelectedValue" controlid="EmailDDN" type="String" />
        </insertparameters>
        <selectparameters>
            <asp:controlparameter name="Email" controlid="EmailDDN" propertyname="SelectedValue" type="String" />
            <asp:controlparameter name="ID" propertyname="SelectedValue" controlid="EmailDDN" type="String" />
        </selectparameters>
        <updateparameters>
            <asp:parameter name="Name" type="String" />
            <asp:controlparameter name="Email" propertyname="SelectedValue" controlid="EmailDDN" type="String" />
            <asp:controlparameter name="ID" propertyname="SelectedValue" controlid="EmailDDN" type="String" />
        </updateparameters>
    </asp:sqldatasource>
    <asp:sqldatasource id="DestinationDataSource" runat="server" connectionstring="<%$ ConnectionStrings:IPdataConnectionString %>"
        providername="System.Data.SqlClient" 
        deletecommand="DELETE FROM ProductsMail WHERE ID = @ID"
        insertcommand="INSERT INTO ProductsMail (Name, Email, ID) VALUES (@Name, @Email, @ID)"
        selectcommand="SELECT Name, ID, Email FROM ProductsMail" 
        updatecommand="UPDATE ProductsMail SET Name = @Name, Email = @Email WHERE ID = @ID">
        <deleteparameters>
            <asp:parameter name="ID" type="Int32" />
        </deleteparameters>
        <insertparameters>
            <asp:parameter name="Name" type="String" />
            <asp:controlparameter name="Email" propertyname="SelectedValue" controlid="EmailDDN" type="String" />
            <asp:controlparameter name="ID" propertyname="SelectedValue" controlid="EmailDDN" type="String" />
        </insertparameters>
        <updateparameters>
            <asp:parameter name="Name" type="String" />
            <asp:controlparameter name="Email" propertyname="SelectedValue" controlid="EmailDDN" type="String" />
            <asp:controlparameter name="ID" propertyname="SelectedValue" controlid="EmailDDN" type="String" />
        </updateparameters>
    </asp:sqldatasource>
</telerik:radajaxpanel>

====

 

 

protected void DDN_SelectedIndexChanged(System.Object sender, System.EventArgs e)

 

{

EmailLabel1.Text = EmailDDN.SelectedItem.ToString();

EmailLabel2.Text = EmailDDN.SelectedValue.ToString();

}



John
Top achievements
Rank 1
 answered on 05 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
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?