Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
100 views
I have a treeview where the user will be able to drag and drop nodes to change the structure. When they drop the node somewhere, it will write out to the database the changes in server side code. That all works fine. But I need to reload the treeview in order to get it to show the changes. When I do that, the treeview is collapsed. I'd like to leave it in the same state it was in so the user doesn't need to go and re-expand everything.

In the NodeDrop event I have figured out how to add the node to the new location. I just can't figure out how to delete the old one.

TIA - Jeff.
Shinu
Top achievements
Rank 2
 answered on 16 Oct 2013
2 answers
225 views
I generate a password using the method  Membership.GeneratePassword(6, 2) from .net framework and setting the RadTextBox
txtPassword.Attributes.Add("value", passwordfgenerated). I want to show in the RadTextBox the asterisks
 That works with asp:TextBox but not with RadTextBox


<div class="field-box">
            <div class="left-field left-label">
                <asp:Label CssClass="right-field" ID="lblPassword" runat="server" Text="Password:"></asp:Label>
                <a href="#?w=800" rel="PasswordHelp" class="left-field poplight" tabindex="0"></a>
            </div>
            <telerik:RadTextBox CssClass="left-field" ID="txtPassword" runat="server" TextMode="Password" MaxLength="20">
            </telerik:RadTextBox>
 </div>
protected void bnGeneratePassword_Click(object sender, EventArgs e)
 {
string passwordGenerated = Membership.GeneratePassword(6, 2);
txtPassword.Attributes.Add("value", passwordGenerated);
}


Eyup
Telerik team
 answered on 16 Oct 2013
1 answer
126 views
I have a RadGrid that uses a user control - in the user control ascx I need to pop up a modal RadWindow on a radioclick for some more row data. The problem is the the RadWindow seems to be stuck on the first row no matter what gridrow I click the button. I load the RadWindow elements from the user control code behind on Item binding just like I load each row. But it seems the RadWindow can't function inside this user control - has anyone done this and got it to work?

In the ascx grid user control:
<telerik:RadWindow ID="PlanPopup" runat="server" Height="420px" Width="850px" Modal="true">
        
        <ContentTemplate>
            <script language="javascript" type="text/javascript">
                function makenew(url) {
                    window.open(url, "blank", "scrollbars=yes,resizable=yes,width=500,height=500")
                }
            </script>
             <table style="width: 800px; height: 350px">
       <tr>
        <td class="tdSilver" colspan="3">Impact Assessment Review - &nbsp;&nbsp;<a href="javascript:makenew('/IRAP/repImpacts.aspx')">Impact Assessment Guidance</a></td>
       </tr>
       <tr>
              <td><asp:label id="lblQNumN1" Runat="server">1</asp:label></td>
              <td style="width: 350px"><asp:label id="lblQN1" Runat="server" >Does the environment store or touch Wells Fargo </asp:label><span style="color: red"> *</span><br />
            <asp:label id="lblQN1Cont" Runat="server">Confidential or Restricted data?</asp:label>
              </td>
              <td><asp:radiobuttonlist id="radConfidential" Visible="true" runat="server" RepeatLayout="Flow" CssClass="ispaCheckBoxes" RepeatDirection="Horizontal">
                           <asp:ListItem Value="True">Yes&#160;&#160;&#160;&#160;&#160;</asp:ListItem>
                           <asp:ListItem Value="False" >No</asp:ListItem>
            </asp:radiobuttonlist></td>
       </tr>  
       <tr class="altRow">
              <td><asp:label id="lblQNumN2" Runat="server" >2</asp:label></td>
              <td  style="width: 350px"><asp:label id="lblQN2" Runat="server" >Is the environment externally facing or vendor hosted?</asp:label><span style="color: red"> *</span></td>
           <td><asp:radiobuttonlist id="radExternalFacingVendorHosted" Visible="true" runat="server" RepeatLayout="Flow" CssClass="ispaCheckBoxes" RepeatDirection="Horizontal">
                           <asp:ListItem Value="True">Yes&#160;&#160;&#160;&#160;&#160;</asp:ListItem>
                           <asp:ListItem Value="False" >No</asp:ListItem>
            </asp:radiobuttonlist></td>
       </tr>
       <tr>
              <td><asp:label id="lblQNumN3" Runat="server">3</asp:label></td>
              <td  style="width: 350px"><asp:label id="lblQN3" Runat="server">Would a compromise of this enviroment result in loss of </asp:label><br />
            <asp:label id="lblQN3Cont" Runat="server">availabilty to either WF customers or employees?</asp:label><span style="color: red"> *</span>
              </td>
              <td ><asp:radiobuttonlist id="radCompromiseAvail" Visible="true" runat="server" RepeatLayout="Flow" CssClass="ispaCheckBoxes" RepeatDirection="Horizontal">
                           <asp:ListItem Value="True">Yes&#160;&#160;&#160;&#160;&#160;</asp:ListItem>
                           <asp:ListItem Value="False" >No</asp:ListItem>
            </asp:radiobuttonlist></td>
       </tr>
       <tr>
              <td><asp:label id="lblQNumN4" Runat="server">4</asp:label></td>
              <td  style="width: 350px"><asp:label id="lblQN4" Runat="server">Would a compromise of this environment result in </asp:label><br />
            <asp:label id="lblQN4Cont" Runat="server">loss of physical assets or revenues?</asp:label><span style="color: red"> *</span>
              </td>
              <td ><asp:radiobuttonlist id="radCompromiseLoss" Visible="true" runat="server" RepeatLayout="Flow" CssClass="ispaCheckBoxes" RepeatDirection="Horizontal">
                           <asp:ListItem Value="True">Yes&#160;&#160;&#160;&#160;&#160;</asp:ListItem>
                           <asp:ListItem Value="False" >No</asp:ListItem>
            </asp:radiobuttonlist></td>
       </tr>
       <tr class="altRow">
              <td><asp:label id="lblQNumN5" Runat="server">5</asp:label></td>
              <td style="width: 350px"><asp:label id="lblQN5" Runat="server" >Please select the overall reputational impact:</asp:label><span style="color: red"> *</span></td>
              <td><asp:DropDownList ID="ddlReputationalImpact" DataSourceID="SqlDataSource3" DataTextField="rskImpact" DataValueField="rskImpactID" runat="server" Width="212px">
            </asp:DropDownList >                       
           </td>     
       </tr>
      
       <tr>
              <td style="vertical-align: top"><asp:label id="lblQNumN6" Runat="server">6</asp:label></td>
              <td  style="width: 350px; vertical-align: top;"><asp:label id="lblQN6" Runat="server">Please add notes justifying the impact assessments entries:</asp:label><br/>
            <asp:label id="lblQN6Cont" Runat="server">(Limited to 2,000 Characters)</asp:label><span style="color: red"> *</span>
              </td>
              <td style="vertical-align: top"><asp:TextBox id="txtNotesJustification" runat="server"  width="100%" TextMode="MultiLine" Height="135px" MaxLength="2000"></asp:TextBox>                
            </td>     
       </tr>
        <tr><td colspan="3" style="text-align: center">
                <asp:Button ID="Button1" Text="Save" runat="server"/>
            </td></tr>
</table>
        </ContentTemplate>


    </telerik:RadWindow>

<telerik:RadWindowManager ID="RadWindowManager1" ShowContentDuringLoad="False" VisibleStatusbar="False"
        ReloadOnShow="True" runat="server" EnableShadow="True">
        <Windows>
            <telerik:RadWindow ID="RadWindow1" runat="server" Behaviors="Resize, Close, Move" OnClientClose="OnClientClose"
                NavigateUrl="SiteReviewPreTabs/SiteReviewPre_Reviews_NewPlanQuestions.aspx" AutoSize="True" Behavior="Resize, Close, Move" Modal="True">
            </telerik:RadWindow>
        </Windows>
    </telerik:RadWindowManager>

<script type="text/javascript">

     function openWin() {
         var oWnd = radopen("SiteReviewPreTabs/SiteReviewPre_Reviews_NewPlanQuestions.aspx", "RadWindow1");
     }

     function OnClientClose(oWnd, args) {
         //get the transferred arguments
         var arg = args.get_argument();
         //if (arg) {
         //    var cityName = arg.cityName;
         //    var seldate = arg.selDate;
         //    $get("order").innerHTML = "You chose to fly to <strong>" + cityName + "</strong> on <strong>" + seldate + "</strong>";
     }

      function onPlanChanged(rdoClicked) {                  
                var oWnd = $find("<%= PlanPopup.ClientID %>");
                oWnd.show();         
        }
    </script>


In the ascx.cs:

 protected void ReviewDetails_DataBinding(object sender, EventArgs e)
    {
                ddlReputationalImpact.SelectedIndex = -1;

                ddlReputationalImpact.DataBind();
                ddlReputationalImpact.ClearSelection();
                SetSafeDropDownValue(ddlReputationalImpact, GetString(DataBinder.Eval(DataItem, "impactAssRskImpactID")));

                if (DataBinder.Eval(DataItem, "impactAssTouchConfData") != DBNull.Value)
                    radConfidential.SelectedValue = GetString(DataBinder.Eval(DataItem, "impactAssTouchConfData"));

                if (DataBinder.Eval(DataItem, "impactAssExtFacing") != DBNull.Value)
                    radExternalFacingVendorHosted.SelectedValue =
                        GetString(DataBinder.Eval(DataItem, "impactAssExtFacing"));

                if (DataBinder.Eval(DataItem, "impactAssLossAvail") != DBNull.Value)
                    radCompromiseAvail.SelectedValue = GetString(DataBinder.Eval(DataItem, "impactAssLossAvail"));

                if (DataBinder.Eval(DataItem, "impactAssLossAssets") != DBNull.Value)
                    radCompromiseLoss.SelectedValue = GetString(DataBinder.Eval(DataItem, "impactAssLossAssets"));
}
Konstantin Dikov
Telerik team
 answered on 16 Oct 2013
9 answers
119 views
Lets say i have 5 radgrids on my page

Radgrid1
Radgrid2
Radgrid3
Radgrid4
Radgrid5

And they each have their own datasource like this

Radgrid1.datasource = ds1
Radgrid2.datasource = ds2
Radgrid3.datasource = ds3
Radgrid4.datasource = ds4
Radgrid5.datasource = ds5

Is it possible to be able to delete lets say Radgrid4 from the page and then reset all the numbers so they are in sync? If so, can someone please provide a simple example on how to do that?
Angel Petrov
Telerik team
 answered on 16 Oct 2013
3 answers
141 views

The “RenderingMode” or "rendermode" property of the RadComboBox not present. so is this  removed and some other alternative property is present for this.
I want to set the rendering mode to native but was unable to do it.



Please help


Shinu
Top achievements
Rank 2
 answered on 16 Oct 2013
5 answers
297 views
Hi,

We are using GridDateTimeColumn of RadGrid to show date field. Everything works fine except "Equal to" filter of DateTime Column.

See the syntax for GridDateTimeColumn below
 <telerik:GridDateTimeColumn FilterControlWidth="95px" HeaderText="Requested Date"  Visible="true"  ItemStyle-Width="200px"
                    DataField="RequestedDate" PickerType="DatePicker" SortExpression="RequestedDate" />

We are using the "2011.1.519.35" version of telerik and after googling, I found that the issue is fixed in the recent versions.

But we can't afford to upgrade the telerik at this point of time, as our site is on production.

Can you please suggest some alternative to fix this issue.

Thanks!!
Eyup
Telerik team
 answered on 16 Oct 2013
1 answer
94 views
Hi all,

I am using radEditor with light version of Link manger. and having an issue that link manager page is showing in broken form user clicks all properties button on the Insert link page. custom skin is applied correctly but the link manger is showing all menus( Hyperlink, anchor, and email) forms under hyperlink menu selected.
the link manager shows correctly after clicking each menu once.

any help will really appreciated.

Thank you. 
Ianko
Telerik team
 answered on 16 Oct 2013
3 answers
101 views
I am using Radcombox control on my asp.net page, but combobox doesn't drop at all. I can see the items are there, but it doesn't expand. Please have a look at the code and attached image as well.


<telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
<telerik:RadComboBox ID="RadComboBox1" runat="server" Height="240" Width="150" Skin="Forest"
               Label="Natural numbers">
    <Items>
        <telerik:RadComboBoxItem Value="1" Text="1" />
        <telerik:RadComboBoxItem Value="2" Text="2" />
        <telerik:RadComboBoxItem Value="3" Text="3" />
        <telerik:RadComboBoxItem Value="4" Text="4" />
        <telerik:RadComboBoxItem Value="5" Text="5" />
        <telerik:RadComboBoxItem Value="6" Text="6" />
        <telerik:RadComboBoxItem Value="7" Text="7" />
        <telerik:RadComboBoxItem Value="8" Text="8" />
        <telerik:RadComboBoxItem Value="9" Text="9" />
        <telerik:RadComboBoxItem Value="10" Text="10" />
    </Items>
</telerik:RadComboBox>
Jayesh Goyani
Top achievements
Rank 2
 answered on 16 Oct 2013
2 answers
82 views
Are automation id's supported in this product?
Misho
Telerik team
 answered on 16 Oct 2013
3 answers
122 views
Hi

I have set ExpandCollapseColumn-display=true and have set expand\collapse image. 

Everything is working properly. But this expand column takes zero index by default. I want to set it's position. If i want to have it as the last index column, What I have to do for it..?

Thanks
Kamini
Eyup
Telerik team
 answered on 16 Oct 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?