Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
215 views
How do I reference the NavigateURL property on a toolbar button.

I can change manipulate several properties such as:

me.toolbar1.items(1).text = "click me"
me.toolbar1.items(1).enabled = true

I cannot see how to get a handle on the URL value, which I need to update with query string values that are read at runtime from a database.

(p.s. assume I have less than one day experience with the toolbar control)
Veselin Vasilev
Telerik team
 answered on 12 Oct 2009
5 answers
199 views
Hello,

I had a linkbutton (to print) for each row in the master table and whenever the linkbutton is clicked the details table records needs to be printed.

Currently I am able to export the details table contents to excel (I had a linkbutton similar to print on each row for exporting). apart from the export I also need the functionality to print the contents of the details table.

Any ideas on this??

Help would be greatly appreciated.

Thanks,
Kevin
Daniel
Telerik team
 answered on 12 Oct 2009
2 answers
141 views
I just wantto find a RadNumericTextBox that resides in a FormView as follows:

function

kontrol() {

 

alert(

"asd")

 

 

 

var txtmiktar = window["<%= RadNumericTextBox2.ClientID %>"];

 

 

var txtyuzde = window["<%= RadNumericTextBox1.ClientID %>"];

 

 

if (txtmiktar.GetValue() == '') {

 

txtmiktar.SetValue(0.00) ;

}

 

if (txtyuzde.GetValue() == '') {

 

txtyuzde.SetValue(0.00) ;

}

 

if (txtyuzde.GetValue() == 0 && txtmiktar.GetValue() == 0) {

 

alert('

asd');

 

 

}

}

And i call it this way: However it throws exception : cs0103 'RadNumericTextBox2'  does not exist in the current context

 

<

telerik:RadNumericTextBox ID="RadNumericTextBox2" Runat="server"

 

 

Culture="asd" DbValue='<%# Bind("asd") %>' Type="Currency"

 

 

Width="125px" CssClass="label2" MaxValue="1E+16" MinValue="-1E+16" >

 

 

 

 

 

<ClientEvents OnKeyPress="kontrol" />

 

 

</telerik:RadNumericTextBox>

Thanks...

 

Kem Arda
Top achievements
Rank 1
 answered on 12 Oct 2009
1 answer
101 views
Hi, can anybody see/explain what I'm doing wrong here? Or let me know a better way to do this. I've tried several approaches, not just the one shown here, but all approaches turn up the same problem.

I have a tree with several levels. I want to remove some nodes from a given level, but leave others: i.e. selectively remove nodes based on their values, all client-side javascript. If I do this:

   var t = $find(ClientID_RadTree1);
   var p = t.findNodeByValue(""); // gets parent node
   for (var i=0; i<p.get_nodes().get_count();i++)   
   {         
       var node = p.get_nodes().getNode(i);         
       console.log(node.get_text());
       if (node.get_value() != '1') p.get_nodes().remove(node);   // only leave the node with value='1'
   }

I have to run in THREE times to get the intended results. Apparently, the node indexes are being changed upon each "remove" call, or something similar.

Any  tips (or source code for the TreeView Javascript)?

Thanks!
R


Veselin Vasilev
Telerik team
 answered on 12 Oct 2009
4 answers
106 views
Hello,

While going through the RadComboBox Entity DataSource Demo I noticed that when an item is selected in RadComboBox2 the paging option does not actually scroll through the next 10 items. When the icon is clicked to advance to the next 10 items, the Combobox appears to be advancing to the next 10; however, the item that was selected originally is displayed at the top of the list and the message at the bottom changes from "Items 1-40 out of 92" to "Items 1-40 out of 1", the next 10 items do not become available either. Should this be happening or should the paging option still advance to the next 10 and update the message to say "Items 1-50 out of 92"?

Thanks,
Casey
Simon
Telerik team
 answered on 12 Oct 2009
1 answer
121 views
I have a grid with the following:

- Keyboard navigation turned on
- Scrolling turned on and lots of records
- Client side selection and operation

If I scroll the grid down, say, halfway and select a row with the mouse everything is fine.  If I then use the up/down arrow to move the selection, the grid will automatically scroll so that the newly selected row is visible as the last visible row.  This auto scroll is disorienting.  Why does it do this? Can this auto scroll behavior be stopped?  Thanks!

The grid markup:

        <telerik:RadGrid ID="RadGridEmails" runat="server" AllowSorting="True" PageSize="100" Height="100%" Width="100%"
            AllowMultiRowSelection="True" EnableViewState="false" AllowPaging="True" GridLines="None" Skin="Default" >
            <PagerStyle AlwaysVisible="true" Mode="NextPrevAndNumeric"></PagerStyle>
            <ItemStyle Height="10px"    />
            <MasterTableView ClientDataKeyNames="ID, MailBoxID" AllowMultiColumnSorting="False" TableLayout="Fixed" Width="810px"  >
                <Columns>
                    <telerik:GridTemplateColumn UniqueName="tcNotRead" SortExpression="" Resizable="false" DataField="Status" HeaderText="&nbsp;">
                        <HeaderStyle HorizontalAlign="Center" Width="30px" ></HeaderStyle>
                        <ItemStyle HorizontalAlign="Center" Width="30px"></ItemStyle>
                        <ItemTemplate>
                            <asp:Image id="imgMailStatus" ImageUrl="~/Media/Images/Icons/NotRead.gif" BorderWidth="0px" style=" border-style:none; padding:0px; margin:0px" runat="server" AlternateText="" />
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                   
                    <telerik:GridTemplateColumn UniqueName="tcAttachments" SortExpression="" Resizable="false" DataField="HasAttachments2" HeaderText="&nbsp;">
                        <HeaderStyle Width="30px"></HeaderStyle>
                        <ItemStyle HorizontalAlign="Center" Width="30px"></ItemStyle>
                        <ItemTemplate>
                            <asp:Image ID="imgHasAttachments" ImageUrl="~/Media/Images/Icons/clrImg.gif" BorderWidth="0px"  style=" border-style:none; padding:0px; margin:0px" AlternateText="Has Attachments" runat="server" />
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                   
                    <telerik:GridTemplateColumn UniqueName="tcFlag" SortExpression="" DataField="Mark" Resizable="false" HeaderText="&nbsp;">
                        <HeaderStyle HorizontalAlign="Center" Width="30px"></HeaderStyle>
                        <ItemStyle HorizontalAlign="Center" Width="30px"></ItemStyle>
                        <ItemTemplate>
                            <asp:Image ID="imgMailFlag" ImageUrl="~/Media/Images/Icons/grayFlag.gif" BorderWidth="0px"  style=" border-style:none; padding:0px; margin:0px" AlternateText="" runat="server" />
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>                
                   
                    <telerik:GridTemplateColumn UniqueName="bcToFrom" SortExpression="TO-FROM" HeaderText="To/From">
                        <ItemStyle  Width="150px" ></ItemStyle>
                        <HeaderStyle Width="150px"></HeaderStyle>
                        <ItemTemplate>
                        <div style="white-space: nowrap;overflow:hidden;text-overflow:ellipsis; width:100%;"><asp:Label ID="lblToFrom" runat="server"></asp:Label></div>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                   
                    <telerik:GridBoundColumn UniqueName="bcSubject" DataFormatString="{0}" SortExpression="Subject" HeaderText="Subject" DataField="Subject">
                        <ItemStyle  Width="400px" ></ItemStyle>
                        <HeaderStyle Width="400px"></HeaderStyle>
                    </telerik:GridBoundColumn>
                   
                    <telerik:GridTemplateColumn UniqueName="tcDate" SortExpression="DateTimeStampUtc" HeaderText="Date">
                    <ItemStyle Width="110px" ></ItemStyle>
                        <HeaderStyle Width="110px"></HeaderStyle>
                    <ItemTemplate>
                     <div style="white-space: nowrap;overflow:hidden;text-overflow:ellipsis; width:100%;"><asp:Label ID="lblDate" runat="server"></asp:Label></div>
                  </ItemTemplate>
                    </telerik:GridTemplateColumn>
                   
                    <telerik:GridBoundColumn UniqueName="bcSize" DataFormatString="{0}" SortExpression="RealSize" HeaderText="Size" DataField="RealSize">
                        <ItemStyle  Width="60px" HorizontalAlign="Right"></ItemStyle>
                        <HeaderStyle Width="60px" HorizontalAlign="Right"></HeaderStyle>
                    </telerik:GridBoundColumn>
                </Columns>    
                <NoRecordsTemplate><div style="text-align: center; padding: 5px">No mail found.</div></NoRecordsTemplate>          
            </MasterTableView>
            <ClientSettings AllowColumnHide="True" AllowKeyboardNavigation="true" EnableRowHoverStyle="true" ReorderColumnsOnClient="false" >
                <ClientEvents  OnRowContextMenu="RowContextMenu" OnCommand="RadGridEmails_Command" OnRowDataBound="RadGridEmails_RowDataBound" OnRowSelected="RadGridEmails_RowSelected" OnRowSelecting="RadGridEmails_RowSelecting"/>
                <Selecting AllowRowSelect="true" />
                <Scrolling AllowScroll="True" UseStaticHeaders="true"  ></Scrolling>
                <Resizing ResizeGridOnColumnResize="true" AllowRowResize="false" AllowColumnResize="True" ></Resizing>
            </ClientSettings>           
        </telerik:RadGrid>
Pavlina
Telerik team
 answered on 12 Oct 2009
5 answers
122 views
Hi,

We want to create appointement that have no time duration.

We tried to create a few with no success cause they're not showing in the scheduler. We had to set an interval of 1 min so the can show in the scheduler. But we don't want to validate the duration of each appointement we create.

Is there a way to create appointement  without using the time property but only the date where they will appear in the scheduler??

Thx alot!

Guillaume

PS: Sorry just noticed i've post on the wrong forum.
Peter
Telerik team
 answered on 12 Oct 2009
4 answers
111 views
Hello Guys,

I need to display a radgrid for which I do not know the structure of child grid at design time.

For example consider I have a grid whose row are say Customers, Orders, Items

The child grids for each of these would have a different structure. Therefore based on the parent item, I would need to create a child gridview and add different columns to it. I am not sure how do I go about doing this because when I do not declare any detail table girds during design time, I do not even see the expand column, so I can't even generate a onChildtabledatabind event. Please help.

Thanks,
Pavan.
Yavor
Telerik team
 answered on 12 Oct 2009
4 answers
150 views
Hello,

I discovered that my radNumericTextBoxs postback when user try to decrease the value under the minimum, even if the result is no change in value.
How could we avoid this, it should not postback if no change occurs in the displayed value, it has great network cost on my app.

Is this a bug, should I open a ticket

Thanks for help.
CS
CSurieux
Top achievements
Rank 2
 answered on 12 Oct 2009
1 answer
148 views
Hello,

I need to customize the "intermediate" state of the checkbox icon on the rad treeview with tri-state checkbox activated.

But i' cant find this on the visual style builder.

Anyone know a way to customize it ?

I need to have the Intermediate icon to be RED instead of Blue. (so the user can feel & use it to exclude the item associated).

Thx
Alex Gyoshev
Telerik team
 answered on 12 Oct 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?