Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
453 views
Hello ,

I have initially bind 10 rows to rad grid and display only 3 rows to user, hide remaining rows from item databound event .

Now i have one button on out side grid [+] to add rows in grid .

What i want to do is when user click on add button, i want to show next hidden row by JavaScript .

Right now I call this function when user click on button .

function ShowRow()
   {        
       var grdDeparture=document.getElementById("<%=grdDeparture.ClientID%>"); 
       alert(grdDeparture);
//
var masterTableView = grdDeparture.MasterTableView; 
//above line not working , i cannot find MasterTableView here .
//Is there any reference that i have to add to access MasterTableView?
   } 

If any one know Please Help me .
Please send me code .
-Thanks
Princy
Top achievements
Rank 2
 answered on 22 Jul 2010
1 answer
81 views
Hello

i need when user click on expand to show nested view call my code which fill textboxes and other control in nested  view. which event handle it?

Like:

textbox.text = "Now is" + DatTime.Now.ToString();
and others more complicated coding staff here...

which event i must use and how?

Thanx for everyone to bring me out of labyrint...

Eduard
Tsvetina
Telerik team
 answered on 22 Jul 2010
0 answers
52 views
hi my dear friends :
my radcombobox code is like this :
<telerik:RadComboBox ID="RadcbPersonelCompleteNameInvwNoskhehEdit"
    runat="server" AppendDataBoundItems="True" AutoPostBack="True"
    CausesValidation="False" DataSourceID="sdsPersonelCompleteName"
    DataTextField="PersonelCompleteName" DataValueField="ID" 
    EnableEmbeddedSkins="False"
    MarkFirstMatch="True" MaxHeight="200px"
    OnSelectedIndexChanged="RadcbPersonelCompleteNameInvwNoskhehEdit_SelectedIndexChanged"
    Skin="Office2007ByMe" Width="245px">
</telerik:RadComboBox>

when MarkFirstMatch="True" so Hover And Active Images do Not Work,and when i remove it everything is ok about hover and active.
how can i fix this problem?


thanks in future advance
Majid Darab
Top achievements
Rank 1
 asked on 22 Jul 2010
1 answer
96 views
Hye guys,

I ve got 2 raddatepicker, how can i change the focus form the  first to the second one as soon as the user choose his first date.

Thanks!

Shinu
Top achievements
Rank 2
 answered on 22 Jul 2010
3 answers
141 views
Hi,

Are the Radcontrols supported in Infopath forms?

Trupti
Stanimir
Telerik team
 answered on 22 Jul 2010
2 answers
157 views
Hi. I notice that if you input an incorrect date that the raddatepicker textbox highlights red with a yellow exclamation mark inside it. This is cool, especially when restricted for space. I have a requiredfieldvalidator that I would like to apply the same error to. Is there any way to call this from say javascript? Thanks.

Daniel
Daniel
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 22 Jul 2010
1 answer
124 views
Hello,
I'm trying to use the panel bar for a site navigation and still be able to use custom attributes to specify properties for the panel bar such as ImageURL, HoverImageURL, etc but still have security trimming.
My first attempt was with a site map provider but I can't define custom attributes in the web.sitemap file.
Then I tried an xml file and then security trimming didn't work.

Is there anyway to use something other than the sitemapprovider and still have security trimming.

Thanks,
Brian
Brian Goldman
Top achievements
Rank 2
 answered on 22 Jul 2010
2 answers
357 views
Hi. What is the ClientEvents equivilant for OnClick for the RadTextBox? I can add it to the textbox itself and it works but VS gives me a warning saying the attribute isn't valid. As I said, the page still works okay, see code below. The function just clears the textbox when clicked in. Thanks.

Daniel

<telerik:RadTextBox ID="rtbLastname" runat="server" Skin="Default" Text="Last name" Width="99px" OnClick="if(this.value=='Last name')this.value='';"></telerik:RadTextBox>
Daniel
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 21 Jul 2010
2 answers
147 views
Hi. I have several grids inside a multipage. The grids have scrolling enabled. I normally set all the columns to 1% with no wrapping and then set the column with the largest text in it to the remainder percentage. ie. 1%, 1%, 97%, 1%. This works fine with scrolling disabled. When I enable scrolling it looks like it is using the absolute size of 1% and is ignoring the text wrapping inside the header or column as all you can see is a pixel, probably the start of the text. This is a real pain, as some text looks really ugly when they wrap to the next line.

<telerik:RadGrid ID="rgActionRequests" runat="server" GridLines="None" OnNeedDataSource="rgActionRequests_OnNeedDataSource"
                                            AllowPaging="false" AllowSorting="false" Width="100%" BorderWidth="0">
                                            <MasterTableView AutoGenerateColumns="False" NoMasterRecordsText="<div style='padding: 10px;'>You have no action requests</div>">
                                                <Columns>
                                                    <telerik:GridTemplateColumn HeaderText="Request ID" UniqueName="ram_id" HeaderStyle-Width="1%"
                                                        ItemStyle-Width="1%" HeaderStyle-Wrap="false" ItemStyle-Wrap="false">
                                                        <ItemTemplate>
                                                            <a href="\\\\argus/Proclaim/CRM/PRODUCTION/crm<%#DataBinder.Eval(Container.DataItem, "ram_id")%>.vbs">
                                                                <%#DataBinder.Eval(Container.DataItem, "ram_id")%></a>
                                                        </ItemTemplate>
                                                    </telerik:GridTemplateColumn>
                                                    <telerik:GridBoundColumn DataField="descr" HeaderText="Details" UniqueName="descr"
                                                        HeaderStyle-Width="97%" ItemStyle-Width="97%">
                                                    </telerik:GridBoundColumn>
                                                    <telerik:GridBoundColumn DataField="date1" HeaderText="Received" UniqueName="date1"
                                                        HeaderStyle-Width="1%" ItemStyle-Width="1%" HeaderStyle-Wrap="false" ItemStyle-Wrap="false">
                                                    </telerik:GridBoundColumn>
                                                    <telerik:GridBoundColumn DataField="status" HeaderText="Status" UniqueName="status"
                                                        HeaderStyle-Width="1%" ItemStyle-Width="1%" HeaderStyle-Wrap="false" ItemStyle-Wrap="false">
                                                    </telerik:GridBoundColumn>
                                                </Columns>
                                            </MasterTableView><ClientSettings>
                                                <Scrolling UseStaticHeaders="true" AllowScroll="true" ScrollHeight="227px" SaveScrollPosition="true" />
                                            </ClientSettings>
                                        </telerik:RadGrid>

Something else I have noticed with scrolling and setting UseStaticHeaders to true, is that the line at the top of the scrollbar, between the scrollbar and header has been pushed up about 5 pixels. I have attached a screen of both issues. Thanks.

Daniel
Daniel
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 21 Jul 2010
1 answer
124 views
I have a treeview and I want certain nodes to be checked when the page loads and some not checked. I want to do this manually before I loop through a database so was wondering if there is any VB.NET code out there that would show me.

I was thinking something like this (using objects):

Dim Cat As List(Of Category)
        Cat = Category.GetAllCategories
        If Not Cat Is Nothing Then

               Dim C As New RadTreeNode
                      Dim CatEach As Category
                           For Each CatEach In Cat
                                 C.Text = CatEach.Category
                                 C.Value = CStr(CatEach.catID)
                                  If C.Text = "Antiques" Then
                                   C.Checked = True
                                  End If
                                  RadTreeView1.Nodes.Add(C) 
                            Next
           End If

The treeview renders nicely but the "Antiques" checkbox remains unchecked. Any help here would be very much appreciated.
               
William
Top achievements
Rank 1
 answered on 21 Jul 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
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?