Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
66 views
This post, even by my standards, is too dumb to allow intelligent people to read.

I'm sorry if I wasn't quick enough taking it down to prevent offending anyone by demonstrating my general ignorance in a public venue.

-- 
Not very bright of Grantham
Stuart Hemming
Top achievements
Rank 2
 asked on 18 Feb 2011
1 answer
54 views
Hi,
I have  a line graph and i need my x axis to start with 1 instead of 0 and also is it possible to have a grid behind the plot points? Is that possible and how do you that please?
Any help would be great.

Simon Allport
Top achievements
Rank 2
 answered on 18 Feb 2011
1 answer
195 views
Hi

I am trying to achieve the following goal with the RadUpload control:

We have a RadGrid registered on a page, which has the ability to add a file to each row in the grid. Once a file is added to a row a postback occurs and adds the file to that row. The files that we add are not on the parent page but on an iframe using the RadWindow popup (this is where the RadUpload control is declared)

We've been looking at pausing that postback until the user fires the ok event event from our dialog.

Is there a way I can gather a collection of what the user has selected through the RadUpload and then collectively postback all the files in one action.

I have tried to add a text box to the page which holds the fullPath of the files that are trying to be uploaded and then passes these to a hidden RadUpload that fires when the OK button is click however, I have found out about the known limitation in manipulating the value of type input for the upload control.

Regards,
Jonathan
Genady Sergeev
Telerik team
 answered on 18 Feb 2011
1 answer
697 views

I have asp.net application user all telerick control. The master page has few .ascx (controls) like header/footer...etc
I have one more (lets say ThirdControl.ascx file which I wanted to load after completion of the master page load. For better user experience (to minimize the page load time) I want to capture the event where master page load finishes it loading completely.

After I get this event (i,e page load complete) I want to load my ThirdControl.ascx asynchronously.


Are there any work around are suggestions? Please help me.

Thanks
Ramana

Maria Ilieva
Telerik team
 answered on 18 Feb 2011
1 answer
48 views
Hello, 
    I found that adding a control to page by js can not be decorated dynamically, it still was original style.Is there any client side method of RadDecorator can be used to act on the new added controls, such as refresh or redecorate or some others. Thanks.
Georgi Tunev
Telerik team
 answered on 18 Feb 2011
3 answers
152 views
Hi, our team is facing some trouble when the height of a row is bigger than the default height.

The problem seems to appear only  when the Alternating-Item of  the grid is selected or with mouse-over. (If the item has a height bigger than the default)

Here's a pic showing what i'm saying:

Row Selection:
http://i.imgur.com/4x1lz.jpg

Mouse-Over:
http://i.imgur.com/uOLZ9.jpg

As you can see there is some blank space in the bottom of the row without selection, i would appreciate a solutio, thanks.

I'm running under:

Visual Studio 2010.
.Net Framework: 4.0
Telerik.Web.UI: 2010.3.1109.40
Murilo
Top achievements
Rank 1
 answered on 18 Feb 2011
4 answers
179 views
Hi, i'm having some kind of trouble while i try to use the Checked property of RadTreeNode, i want to use this property but i don't want to show the checkbox to my user.

This is how my code looks like:

<telerik:RadTreeView OnClientNodeClicked="ClientNodeClicked" CheckBoxes="false"runat="Server" ID="tvwMenuItens"></telerik:RadTreeView>

I tried to set CheckBoxes to true and it worked but i don't want my users to see the checkbox.

Here's how i'm changing the Checked property:

function ClientNodeClicked(sender, eventArgs) {
              var node = eventArgs.get_node();
              var toolBar = $find('<%= tlbSecurityProfile.ClientID %>');
              var saveButton = toolBar.findItemByValue('Save');
 
              if (node.get_text() != null && node.get_text() != '') {
                  if (node.get_value() != null && node.get_value() != '') {
                      if (saveButton.get_enabled()) {
                          if (node.get_checked()) {
                              node.set_checked(false);
                              node.set_imageUrl('<%=Page.ResolveUrl("~/Images/TreeView/TreeView_No_Access.png") %>');
                              node.set_selectedImageUrl('<%=Page.ResolveUrl("~/Images/TreeView/TreeView_No_Access.png") %>');
                          }
                          else {
                              node.set_checked(true);
                              node.set_imageUrl('<%=Page.ResolveUrl("~/Images/TreeView/TreeView_Has_Access.png") %>');
                              node.set_selectedImageUrl('<%=Page.ResolveUrl("~/Images/TreeView/TreeView_Has_Access.png") %>');
                          }
                      }
                  }
              }
          }

I also tried to user Node.Attributes but unfortunately when i tried to get the values from Attributes at server side they were exactly the same as they were in the time of the databind.

Here's how i changed the Attributes from the node:

function ClientNodeClicked(sender, eventArgs) {
              var node = eventArgs.get_node();
              var toolBar = $find('<%= tlbSecurityProfile.ClientID %>');
              var saveButton = toolBar.findItemByValue('Save');
 
              if (node.get_text() != null && node.get_text() != '') {
                  if (node.get_value() != null && node.get_value() != '') {
                      if (saveButton.get_enabled()) {
                          var attributes = node.get_attributes();
 
                          if (attributes.getAttribute("Checked") == "true") {
                              attributes.setAttribute("Checked", "false");
                              node.set_imageUrl('<%=Page.ResolveUrl("~/Images/TreeView/TreeView_No_Access.png") %>');
                              node.set_selectedImageUrl('<%=Page.ResolveUrl("~/Images/TreeView/TreeView_No_Access.png") %>');
                          }
                          else {
                              attributes.setAttribute("Checked", "true");
                              node.set_imageUrl('<%=Page.ResolveUrl("~/Images/TreeView/TreeView_Has_Access.png") %>');
                              node.set_selectedImageUrl('<%=Page.ResolveUrl("~/Images/TreeView/TreeView_Has_Access.png") %>');
                          }
                  }
              }
          }


That's all, thanks
Murilo
Top achievements
Rank 1
 answered on 18 Feb 2011
0 answers
65 views
hello to all
   
                 good day,

                 i'm having difficulties on maintaining the width for my radcombox the browser, when i run it to IE 7 the radcombox is shrinking to about 2px size/width, his width define is 50px, i tried to view it in mozilla firefox its stand on his original size of 50px. what i gonna do to view it in IE browser to its size define to 50px that will not shrink..sample codes is highly appreciated

thanks
Jols
Top achievements
Rank 2
 asked on 18 Feb 2011
5 answers
507 views
I notice, that if you set min/max values on a RadNumericTextBox, and a user enters a value outside of the allowable range, that the text box value gets set to the min or max, depending on which side of the range the disallowed value was entered as. For instance, if the max is set to 5.5, and the user enters 6, the value of the box gets set to 5.5. I realize that there is a brief "alert" display, but this may not be noticed. I can see how this behavior might make sense in some scenarios, however, it can also be misleading, and I'm not sure it should be the default behavior. The user might not notice that the box reset to an approporiate value and may not realize what they wanted to enter was not allowed. Since precision is often key when using numeric text boxes to enter numbers, I don't think the text box should ever "assume" what an appropriate value should be if what the user entered is invalid. Rather, it should simply not allow the user to enter the value. This is the case if the user attempts to enter an invalid character. The same should be true as far as range validation. It might be nice if Telerik has some way of alerting the user that the value they entered was greater than the max or less than the min, however, i don't have a problem with it being incumbent upon us developers to display min/max values next to the textbox. Either way, when the box gets "set" to a value the user never entered, problems can occur.

I also noticed one other small issue. If a NumericTextBox is set to allow negatives (ie the min is not set to 0), and it is also set to allow rounding, and it is also set to KeepNotRoundedValue=False, and it's decimal places is set to some value, like 2, then the following can occur.

If the value entered is negative, however, when rounded, is actually "0.00", then the numeric textbox displays -0.00.

So, in my example, if the value entered was -.004. this would round to 0.00, so the display should be "0.00". However, instead, "-0.00" is displayed and -0 is not a number. If you click on the textbox, the minus sign disppears, but this shouldn't be necessary.

Daniel
Telerik team
 answered on 18 Feb 2011
5 answers
250 views

Hi Guys,
How do i access the image value to show/hide from code behind in a treeview using the following code
Thanks ...

<telerik:RadTreeView runat="server" ID="RadTreeView1">
    <Nodes>
        <telerik:RadTreeNode Text="03" Expanded="True">
            <Nodes>
                <telerik:RadTreeNode Text="4" Expanded="true">
                    <NodeTemplate>
                        <%# DataBinder.Eval(Container, "Text") %>
                    </NodeTemplate>
                    <Nodes>
                        <telerik:RadTreeNode Text="1">
                            <NodeTemplate>
                                <img src="Images/button_download1.gif" alt="" />
                                <%# DataBinder.Eval(Container, "Text") %>
                            </NodeTemplate>
                        </telerik:RadTreeNode>
                    </Nodes>
                </telerik:RadTreeNode>
                <telerik:RadTreeNode Text="1" Expanded="False">
                    <NodeTemplate>
                        <%# DataBinder.Eval(Container, "Text") %>
                    </NodeTemplate>
                    <Nodes>
                        <telerik:RadTreeNode Text="2">
                            <NodeTemplate>
                                <img src="Images/button_download2.gif" alt="" />
                                <%# DataBinder.Eval(Container, "Text") %>
                                </span> </div>
                            </NodeTemplate>
                        </telerik:RadTreeNode>
                    </Nodes>
                </telerik:RadTreeNode>
            </Nodes>
        </telerik:RadTreeNode>
    </Nodes>
</telerik:RadTreeView>
Helen
Telerik team
 answered on 18 Feb 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?