Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
66 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
94 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
112 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
137 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
116 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
108 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
157 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
1 answer
41 views
I have run into an issue I was wondering if someone can help me out or let me know if it's not possible.  I have built a dynamic RadGrid on a page that needs to be Excel like with all of the rows to be in edit mode.  I have set the grid's MasterTableView.EditMode to InPlace and on binding I loop through and add all the EditIndexs for the rows.  This works and I have a nice grid with textboxes.  What I'm struggling with is that when a user updates a cell and then moves off of the row we would like to update that row via a web service call from the code behind.  Is there an easy way to do this?  Without a post back being triggered the only thing I can think of is to use javascript.  Any helpful advice would be appreciated.
Radoslav
Telerik team
 answered on 05 Aug 2011
9 answers
207 views
Hi,

I have a Radgrid on a page, and I have implemented a custom skin.
<telerik:RadGrid ID="JobsGrid" runat="server" AutoGenerateColumns="False"
   CellSpacing="0" AllowSorting="True"
   EnableEmbeddedSkins="False" GroupingEnabled="False" SkinID="XLogixBlue" >
   <ClientSettings>
     <Selecting AllowRowSelect="True" EnableDragToSelectRows="False" />

The page is derived from a Master page, and all the skins css files are included on the Master page.
However, when the page is rendered, the source does not reference my custom skin, but the default skin instead, as below
    <div id="GridContainer" style="position: absolute; width: 920px; height: 400px; left: 10px; top: 10px">
  
      <div id="ctl00_maincontentarea_JobsGrid" class="RadGrid RadGrid_Default">
  
<table cellspacing="0" class="rgMasterTable" id="ctl00_maincontentarea_JobsGrid_ctl00" style="width:100%;table-layout:auto;empty-cells:show;">
    <colgroup>
        <col  />
        <col  />
        <col  />
        <col  />
        <col  />

There is a Menu on the same page which is working fine.
I have tried including the CSS files directly within the child page, and that did not help either.

I am using the Q2 2011 release.

Thankyou

Paul
Paul
Top achievements
Rank 1
 answered on 05 Aug 2011
5 answers
122 views
I set my crop size to 300 by 100 using the dialog. I move the crop rectangle, and the width in the dialog changes to 298 and the height to 112. This is in IE.  Is there a fix?
Niko
Telerik team
 answered on 05 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?