Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
103 views

Hi,

      I am using RadTabStrip in master page and binding the data from XML. I am loosing the selected tab state. Below is my Code. Can you plase help me?

HTML :

<%

@ Master Language="C#" AutoEventWireup="true" CodeFile="DealerFinance.master.cs" Inherits="DealerFinance" %>

<%

@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<!

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<

html xmlns="http://www.w3.org/1999/xhtml">

<

head runat="server">

<title>Untitled Page</title>

<asp:ContentPlaceHolder id="head" runat="server">

</asp:ContentPlaceHolder>

</

head>

<

body>

<form id="form1" runat="server">

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">

</telerik:RadScriptManager>

<table>

<tr>

<td>

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Font-Size="Small"

height="100%" width="100%" BorderColor="Silver">

<telerik:RadTabStrip ID="rtsDealerMenu" runat="server" Skin="Web20"

BorderWidth="1px" >

</telerik:RadTabStrip>

</telerik:RadAjaxPanel>

</td>

</tr>

<tr>

<td>

<asp:ContentPlaceHolder id="DealerFinancePlaceHolder" runat="server">

</asp:ContentPlaceHolder>

</td>

</tr>

</table>

</form>

</

body>

</

html>

Code behind :

protected

void Page_Load(object sender, EventArgs e)

{

if (!Page.IsPostBack)

{

XmlDocument xmlDoc = new XmlDocument();

xmlDoc.Load(Request.MapPath(

"~/App_Data/Menu.xml"));

rtsDealerMenu.SelectedIndex = 0;

rtsDealerMenu.LoadXml(xmlDoc.OuterXml);

}

//Response.Write(rtsDealerMenu.SelectedTab.Text);

}


XML :

<

TabStrip>

<

Tab Text="Home" ID="1" Tooltip="" NavigateUrl="/DealerFinanceApplication/Home/Home.aspx" >

</

Tab>

<

Tab Text="Dealer" ID="2" Tooltip="" NavigateUrl="/DealerFinanceApplication/Home/Home1.aspx" />

<

Tab Text="ATPS" ID="3" Tooltip="" NavigateUrl="/DealerFinanceApplication/Home/Home2.aspx" />

<

Tab Text="UCC" ID="4" Tooltip="" NavigateUrl="/DealerFinanceApplication/Home/Home3.aspx" />

<

Tab Text="Collections" ID="5" Tooltip="" NavigateUrl="/DealerFinanceApplication/Home/Home4.aspx" />

<

Tab Text="Assets" ID="6" Tooltip="" NavigateUrl="/DealerFinanceApplication/Home/Home.aspx" />

<

Tab Text="Audit" ID="7" Tooltip="" NavigateUrl="/DealerFinanceApplication/Home/Home.aspx" />

<

Tab Text="Contact" ID="8" Tooltip="" NavigateUrl="/DealerFinanceApplication/Home/Home.aspx" />

<

Tab Text="Payments" ID="9" Tooltip="" NavigateUrl="/DealerFinanceApplication/Home/Home.aspx" />

<

Tab Text="Accounts" ID="10" Tooltip="" NavigateUrl="/DealerFinanceApplication/Home/Home.aspx" />

<

Tab Text="Admin" ID="11" Tooltip="" NavigateUrl="/DealerFinanceApplication/Home/Home.aspx" >

<!--

Sub Section for ADMIN Tab Start Here-->

<

Tab Text="Organization" ID="12" Tooltip="" NavigateUrl="/DealerFinanceApplication/Home/Home.aspx" />

<

Tab Text="Position" ID="13" Tooltip="" NavigateUrl="/DealerFinanceApplication/Home/Home.aspx" />

<

Tab Text="Responsibility" ID="14" Tooltip="" NavigateUrl="/DealerFinanceApplication/Home/Home.aspx" />

<

Tab Text="Products" ID="15" Tooltip="" NavigateUrl="/DealerFinanceApplication/Home/Home.aspx" />

<

Tab Text="Region/District" ID="16" Tooltip="" NavigateUrl="/DealerFinanceApplication/Home/Home.aspx" />

<

Tab Text="Documents" ID="17" Tooltip="" NavigateUrl="/DealerFinanceApplication/Home/Home.aspx" />

<

Tab Text="List Of Values" ID="18" Tooltip="" NavigateUrl="/DealerFinanceApplication/Home/Home.aspx" />

<

Tab Text="Route" ID="19" Tooltip="" NavigateUrl="/DealerFinanceApplication/Home/Home.aspx" />

<!--

Sub Section for ADMIN Tab Ends Here-->

</

Tab>

</

TabStrip>

 

 

 

Sankar
Top achievements
Rank 1
 answered on 20 Jan 2012
10 answers
235 views
In Facebook, when composing an email, the user is shown a dropdown similar to the radComboBox Filtering feature. (see screenshot link below).  When selected, the selected item has a blue wrapper with X to be able to delete a selected item easily.  With the samples I've seen, you can't delete individual items.  It seems that you have to start over especially if you want to delete the very first item you selected. Starting over is not ideal if you already selected a few.  Any idea how to accomplish similar functionality? 

screen shot

Any help would be appreciated.

Mark
Top achievements
Rank 2
 answered on 20 Jan 2012
0 answers
94 views
Hello,

How can I tell the component appointment scheduler which belong to a particular resource, my modeling database is one to many (a resource can have any or many an appointment and appointment may have no or a resourse), I saw that it is possible to do contrary an appointment that is easily have encore resources, so maybe in the future be useful for my implementation, but now what was that I needed to send the ID (KeyField) and ForeignKey with the ID value (the Resource KeyField) interpretation that he given resource belongs to the appointment with the ID equal to its ForeignKey, which saw far in the object properties not possible, only possible with the opposite meaning: to inform the resource and its keyField ForeignKeyField and it identifies all appointments with KeyField ForeignKeyField expressed in the same resource. it will not help in my case since each appointment will have a unique ID (UniqueKey) and thus will not be possible to assign more than one appointment for the same resource.

Note: I have tried to "circumvent" the component entering the appointment of the ForeignKey which is the Resource ID of the attribute KeyField Appointment, more logically it was supposed to work, more just not working, why the appointment KeyField attribute is used in various situations natively by the component, such as when you are asked to edit it keyField he uses to identify which appointment was required to issue, so bringing the wrong attributes.

I wonder if any have tried to do something about it, I'm looking at one week all the attributes of the component in search of a ForeignKey attribute to the appointment, so far nothing more that could help me. If anyone knows a way to thank me.

The Help here at Telerik have looked just about everything.

Note: How much English do not know Using Google Translate as an aid to write my doubts. Maybe not the best clarity. But I tried to review it

Thank you for your attention

Fernando.

Fernando
Top achievements
Rank 1
 asked on 20 Jan 2012
1 answer
94 views
Hi,
I'm new to Telerik components, so sorry in advance for the question, maybe a newbie question...

When scrolling my grid I've 2 white stripes, an horizontal and a vertical one, like in the picture.

Any suggestion avoiding me big losses of time? :)

Thank you in advance!

Cristian
Cristian
Top achievements
Rank 1
 answered on 20 Jan 2012
2 answers
223 views

Hello,

   I have a RadGrid in which i have a textbox in one of the columns and for that textbox i wanted to have a popupcontrol extender with bigger textbox in it.

All i wanted to have is a big textbox which i can't put in the grid row because of its size.

Now the problem is, When i entered text in the textbox within popupcontrolextender, that text is not being saved in to the grid textbox when the popup is closed.

Hope i am making sense.

Appreciate the help
Thanks

Here is the code:

<telerik:GridTemplateColumn HeaderText="Income Source" UniqueName="MemSourceofIncome">
                                                          <ItemTemplate>
                                                              <asp:TextBox ID="txtMemSourceofIncome" runat="server" CssClass="Text" ToolTip="Member Source of Income"
                                                                  Width="80px">
                                                              </asp:TextBox>
                                                              <asp:PopupControlExtender ID="IncomeSrcPopEx" runat="server"
                                                                     TargetControlID="txtMemSourceofIncome" PopupControlID="IncomeSrcPanel" Position="Left"   CommitProperty="text"  CommitScript="e.text"   />
                                                              <asp:Panel ID="IncomeSrcPanel" runat="server" CssClass="PopupModalWindow" Style="display: none">
                                                                  <table>
                                                                      <tr>
                                                                          <td>
                                                                              <telerik:RadTextBox ID="txtIncSrc" runat="server" CssClass="Text"  TextMode = "MultiLine" Width="280px">
                                                                              </telerik:RadTextBox>
                                                                          </td>
                                                                      
                                                                      </tr>
                                                                  </table>
                                                              </asp:Panel>      
                                                          </ItemTemplate>
                                                      </telerik:GridTemplateColumn>

Jagat
Top achievements
Rank 1
 answered on 20 Jan 2012
2 answers
92 views
The Filter Button does not work I cannot fathom why :(

The format code block doesn't seem to work with firefox but

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server"
            ConnectionString="<%$ ConnectionStrings:Marty-rls7ConnectionString %>"  
            SelectCommand="SELECT [WO_SD_NO_P], [WO_SD_DE], [WO_SD_EQ_NO] FROM [SA_WO_SD_Data] WHERE ([SI_SITE] = @SI_SITE)" EnableCaching="true" CacheDuration="Infinite">
            
            <SelectParameters>
                <asp:Parameter DefaultValue="SiteA" Name="SI_SITE" Type="String"  />
            </SelectParameters>
        </asp:SqlDataSource>
        <Telerik:RadScriptManager ID="scriptmanager" runat="server" />
        <Telerik:RadAjaxManager ID="ajaxmanager" runat="server" />
        <Telerik:RadGrid ID="RegisterGrid" runat="server" DataSourceID="SqlDataSource1"
         AllowFilteringByColumn="true" AllowSorting="true" GroupingEnabled="true" ShowGroupPanel="true">            
            <ClientSettings AllowColumnsReorder="true" AllowDragToGroup="true"/>
        </Telerik:RadGrid>
    </div>
    </form>
</body>
</html>

The filter button doesn't work :(

Can anyone help ?

In firefox the menu appears to show but it is empty.

Mart
Andrew
Top achievements
Rank 1
 answered on 20 Jan 2012
1 answer
76 views
Hi all,
   is it possible to slide in both directions when open the window?

Thanks
  Francesco
Marin Bratanov
Telerik team
 answered on 20 Jan 2012
6 answers
281 views
hi,
 my name is manpreet and i would like to know that how i can configure my radprogress area to show only the progress of the current  file being uploaded alongwith its speed . I do not want the progress bar which is at the bottom. it would be more clear from the attachment below.

I have tried the property window but even after deselecting the files count bar , i still get it when i run the project. i have even refreshed my browser a lot of times, even switched to chrome, mozilla and IE9 but nothing seem to work.   i have even tried clearing my browser cache but everything is in vain. help me out !

to be precise i just need one bar and that must show : current file being uploaded, %age of the current file uploaded, speed of transfer, time estimated

Regards, 
Manpreet S
Bozhidar
Telerik team
 answered on 20 Jan 2012
1 answer
106 views
I have the following scenario


I use "draganddrop" to mmove documents from 1 folder to another.
But I have the following problem:


IDocuments has not contains documents.. Only folder nodes can has contains.

How I can do this?
Documents no NOT allow add chil documents...

There are any property to this?? ALLOWChilda= false??

thanks
Plamen
Telerik team
 answered on 20 Jan 2012
3 answers
188 views
Hello,

I have a radWindow being launched that runs a c# script that sends x number of http post requests to an external server using a WebClient control. Each http post contains instructions to send a single text message. I haven't experienced any time out problems as yet (so far I've only sent 80, which took approximately 40 seconds after which the ajax circle disappears and the results are displayed), however, with larger numbers I think that timeout could be an issue.

Does radWindow use the timeout value as set in the application's web.config, or can you set it elsewhere?

Ideally, is there a way to make it persist until the code has finished executing?

Thanks,

John.
  
Marin Bratanov
Telerik team
 answered on 20 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?