Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
85 views
Hi

I need rename the root directory dynamically because graphically displays the name as the folder is created on the server.

example, in the server folder called "201109010750", but I need to look at FileExplorer the name "My Files"

thanks!
Rumen
Telerik team
 answered on 08 Feb 2012
4 answers
151 views
Hi,

I have a simple RadChart in my application , but I have a little issue which is:

I have DataLabelsColumn as Number Rtrieved from Database & I don't know how to set a Custom Format to it Like

Percent Format and how to put an Appearance also . 
 
Please can anybody help me with this ...

Regarding,
Mahmoud
Evgenia
Telerik team
 answered on 08 Feb 2012
4 answers
109 views
Hello - I have deployed my application in 2 load balanced servers. The temporary folder is pointing to shared NAS. However the upload to tempo folder fails sporadically. Any idea on why it fails sporadically. thanks

Balaji
Peter Filipov
Telerik team
 answered on 08 Feb 2012
1 answer
83 views
Hi All,

Question is based on example provide here http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/filteringdetailtables/defaultcs.aspx

Scenario:
Step 1. Under column OrderId add search for user  "Alejandra Camino" for e.g. 10281, filter works fine and now you can see order details with orderId 10281.
Step 2. Now expand details for user "Alexander Feuer" you would notice column OrderId is pre-filled with search criteria that was used on step 1 which should not be the case (but the filter is not applied for this user which is good.)
Step 3. Lets enter search criteria for user "Alexander Feuer" under orderId for e.g. 10277, filter works. Now collapse details for user "Alejandra Camino" and expand the same row and orderId will display search text as 10277, but will display filtered records that was performed on Step 1 i.e. records for 10281.

Problem:
This is the same behavior that is happening on grid view I have integrated, please help to resolve this issue and an example on how to load information properly without overwriting search criteria for each row in DetailTable and still have a functional filter.


Regards,

J
Vasil
Telerik team
 answered on 08 Feb 2012
4 answers
393 views
Hai,

    I am creating a asp repeater for displaying images dynamically. The asp Repeater is created from server side. I have used asp image for displaying the image in the repeater. Now i have to show the tooltip for each image. The tooltip contains that same image in LargeSize. I created the repeater dynamically.
                                     Also dynamically add the image control in repeater. I used the Itemtemplate for add the  asp image control. Now i have to show the tooltip  for each image dynamically. How can i add this tooltip fro this images, which is added in template.

I added the code below.
protected Repeater ImageRepeater;     
  
  
    ImageRepeater.ItemTemplate = new ImageTemplate();
            ImageRepeater.DataSource = ImageTable;
            ImageRepeater.DataBind();
  
  
class ImageTemplate : ITemplate
    {
        Image ToolImg ;
        RadToolTip ImgToolTip; 
 
        public ImageTemplate()
        { }
    
        public void InstantiateIn(System.Web.UI.Control container)
        {
            Image Img = new Image ();
            ToolImg = new Image ();
 
            Img.DataBinding += new EventHandler(Img_DataBinding);
  
            LiteralControl StartDiv = new LiteralControl("<div style=\"float: left; padding-left:10px;\">");
            container.Controls.Add(StartDiv);
            container.Controls.Add(Img);
 
          ImgToolTip = new RadToolTip();
          
            ImgToolTip.Width = Unit.Pixel(300);
            ImgToolTip.Height = Unit.Pixel(300);
           ImgToolTip.TargetControlID= Img.ClientID;
           ImgToolTip.IsClientID = true;
           ImgToolTip.Controls.Add(ToolImg);
 
           container.Controls.Add(ImgToolTip);
  
            LiteralControl EndDiv = new LiteralControl("</div>");
            container.Controls.Add(EndDiv);
        }
  
        void Img_DataBinding(object sender, EventArgs e)
        {
            Image Img;
            Img = (Image )sender;
            RepeaterItem container = (RepeaterItem)Img.NamingContainer;
            Img.ImageUrl = "/_layouts/images/jobsarathyDemo/TempImages/"+DataBinder.Eval(container.DataItem, "ImageName").ToString();
 
             ToolImg.ImageURL = "/_layouts/images/jobsarathyDemo/TempImages/" + DataBinder.Eval(container.DataItem, "ImageName").ToString();
        }
    }

But it is not working.

Thanks
Velkumar.
Marin Bratanov
Telerik team
 answered on 08 Feb 2012
2 answers
241 views
We're looking to implement the RadToolbar as a primary UI Interface, and everything works great save for the fact that we sometimes have Drop Down menu items that need submenus.  We know you can't have a RadToolBarDropDown as a button within a RadToolBarDropDown, so that's out, and while we can get that type of functionality with the RadMenu, we then lose the ability to specify validation and validation groups on individual buttons in the toolbar.  We've tried using a RadToolBarButton with an ItemTemplate containing a RadMenu, but our problem with that is that it places the radMenu in a outlined box, so it loses the look of the other tool bar buttons.

Essentially, Is there a way to accomplish this in one of the following ways:

a) use a RadMenu in a RadToolbarButton ItemTemplate, but lose the outline styling around it and instead have it appear like any other toolbar button?

b) Use the RadToolBarDropDown button but have it pop up a menu (maybe a RadContextMenu?) instead of it's normal drop down in the same location that would have appeared?


Were open to other suggestions as well.

Thanks
Max
Top achievements
Rank 1
 answered on 08 Feb 2012
1 answer
160 views
Hi,

I need to add our own sorting to tree list.

Is it possible?

I need to sort the tree list value by alphabetical order.

i need to show the alphabetical letters(a to z).with link.

when the user click the a button, it sort the tree list with starting letter of a values.

Is there any way to achieve this?

Thanks,
Uma
Tsvetina
Telerik team
 answered on 08 Feb 2012
0 answers
33 views
HI

this is my grid tag
<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="false">
                          <ClientSettings>
                              <Selecting AllowRowSelect="true" />
                          </ClientSettings>
                          <MasterTableView>
                              <Columns>
                                  <telerik:GridBoundColumn DataField="ID" HeaderText="شماره" UniqueName="ID">
                                  </telerik:GridBoundColumn>
                                  <telerik:GridBoundColumn DataField="GeneralDate"
                                      HeaderStyle-Font-Names="Tahoma" HeaderText="تاریخ"
                                      ItemStyle-Font-Names="Tahoma" DataFormatString="{0:yyyy/MM/dd}">
                                  </telerik:GridBoundColumn>
                                  <telerik:GridBoundColumn DataField="time" HeaderStyle-Font-Names="Tahoma"
                                      HeaderText="ساعت" ItemStyle-Font-Names="Tahoma" UniqueName="time" >
                                  </telerik:GridBoundColumn>                                   
                              </Columns>
                          </MasterTableView>
                      </telerik:RadGrid>


and this is my function that bind my grid on client side:
var tableView = $find("<%= RadGrid1.ClientID %>").get_masterTableView();
           tableView.set_dataSource(result);
           tableView.dataBind();

after data bind the time colum show [object Object] for every rows?
why? and how can i solve this problem ?

Best regards,
mohammad
Mohammad sadegh
Top achievements
Rank 1
 asked on 08 Feb 2012
9 answers
126 views
I have an app in which I use a tabcontainer control of the microsoft ajax control tool kit. And I just realized, after mush time spent trying to make it work, that it does not work at all inside a tab of the tabcontainer control.

Anybody knows any work around?

<

 

cc1:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0">

 

<cc1:TabPanel ID="TabPanel1" runat="server" HeaderText="Photos Grouped in Frames">

 

<HeaderTemplate>
Grouped in Frames

 

 

</HeaderTemplate>

 

 

 

<ContentTemplate>

 

 

 

<telerik:RadRotator ID="RadRotator1" runat="server" DataSourceID="ObjectDataSource2">

 

<ItemTemplate>

 

 

<asp:Image ID="Image1" ImageUrl='<%#"~/" + eval("imageurl") %>' runat="server" />

 

 

 

 

</ItemTemplate>

 

 

 

</telerik:RadRotator>

 

<asp:ObjectDataSource ID="ObjectDataSource2" runat="server" SelectMethod="GetFramePhotos" TypeName="MB.TheBeerHouse.BLL.Albums.Photo">  

 

 

<SelectParameters>

 

 

 

 

 

<asp:ControlParameter ControlID="FrameIODTag" DefaultValue="" Name="FrameID" PropertyName="Value" Type="Int32" />

 

 

 

</SelectParameters>

 

 

 

</asp:ObjectDataSource>

 

 

 

 

</

ContentTemplate>

 

 

</cc1:TabPanel 

 

 

<cc1:TabPanel ID="TabPanel2" runat="server" HeaderText="Loose Photos">

 

 

</cc1:TabPanel>

 

 

<cc1:TabPanel ID="TabPanel3" runat="server" HeaderText="Loose Photos">

 

 

 

<ContentTemplate>

 

 

 

</ContentTemplate>

 

 

 

 

</cc1:TabPanel>

 

 

 

 

 

 

</cc1:TabContainer>

this does not work. It will occupy the spacce on screen but will not display any picture or data at all.

 

 

 

 

Nebras
Top achievements
Rank 1
 answered on 08 Feb 2012
8 answers
617 views
Hi,

On radmaskedtextbox, I noticed that after setting the mask as Phone Number, it accepts numeric entries of 9 or less and won't throw that as an error, even though it's not a valid phone number length. Is there a way to set this on the control's properties? Or should I have to use a regular expression validator to achieve this? And also have the error message appear inside the radmaskedtext box like radinputmager does? (see 2nd scenario)

        <telerik:RadMaskedTextBox ID="RadMaskedTextBox1" Runat="server"
            DisplayMask="(###) ###-####" Mask="(###) ###-####"
            ValidationGroup="vgTest" ZeroPadNumericRanges="False"
            AllowEmptyEnumerations="False" DisplayPromptChar="#" RoundNumericRanges="False"
            Width="125px" NumericRangeAlign="Left">

Another way I tried is to create a radinputmanager and set regular expression to phone number, this will validate on single numeric entries and we like the dynamic error messages appearing inside the textbox, however, the problem with this is we don't want the users to enter the ()- characters and we only want to grab the numeric entries to store in the database.

            <telerik:RegExpTextBoxSetting BehaviorID="Phone" ErrorMessage="Invalid Phone" ValidationExpression="((\(\d{3}\) ?)|(\d{3}-))?\d{3}-\d{4}" Validation-ValidateOnEvent="Submit" Validation-IsRequired="true" Validation-ValidationGroup="vgTest">
                <TargetControls>
                    <telerik:TargetInput ControlID="txtPhone" />
                </TargetControls>

Let me know which approach would achieve this. Sample codes appreciated. Thanks.
Shif
Top achievements
Rank 1
 answered on 08 Feb 2012
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?