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

Another newbie question that has always perplexed me in terms of server controls. Width & height can be set both as a style or as a property:

<telerik:RadMenu ID="RadMenu1" Runat="server" style="Height=30px;" Height="50px">

What is the difference between the two and which should one actually use?

Thanks, Rob.

Vessy
Telerik team
 answered on 04 Aug 2015
1 answer
270 views

Hello,

 I am trying to find the values of the checkbox which are checking on button click event but its not work.

Please help me out on this.

 

This is aspx file.

<telerik:RadGrid ID="RadGridActivity" AutoGenerateColumns="False"  runat="server" AllowMultiRowSelection="True" FilterType="CheckList" GroupPanelPosition="Top"  >
        
        <ClientSettings Selecting-AllowRowSelect="true" >
           <ClientEvents OnRowSelected="RowSelected" OnRowDeselected="RowDeselected" />
        </ClientSettings>
        <MasterTableView>
            <Columns>
               
                <telerik:GridClientSelectColumn  UniqueName="SelectActivity" HeaderText="Select" ></telerik:GridClientSelectColumn> 
                <telerik:GridBoundColumn UniqueName="ActivityId" HeaderText="ActivityId" DataField="intActivityId" FilterDelay="200" ></telerik:GridBoundColumn>
                <telerik:GridBoundColumn UniqueName="ActivityName" HeaderText="Activity" DataField="strActivityName" AllowFiltering="true" ></telerik:GridBoundColumn>
                <telerik:GridBoundColumn UniqueName="Company" HeaderText="Company" DataField="strCompany" AllowFiltering="true"></telerik:GridBoundColumn>
            </Columns>
        </MasterTableView>
        <ClientSettings EnableRowHoverStyle="true" >

            <Selecting AllowRowSelect="True"></Selecting>
        </ClientSettings>
    </telerik:RadGrid>
    <telerik:RadButton ID="btnAdd" runat="server" Text="Add"></telerik:RadButton>

 

Code behind

 

Protected Sub btnAdd_Click(sender As Object, e As EventArgs) Handles btnAdd.Click

        For Each item As GridDataItem In RadGridActivity.SelectedItems
            Dim id As String
            Dim chec As Boolean

            Dim chk As CheckBox = DirectCast(item("SelectActivity").Controls(0), CheckBox)
            id = item("ActivityId").Text
            chec = chk.Checked

        Next

    End Sub

 ​

Eyup
Telerik team
 answered on 04 Aug 2015
6 answers
112 views
Hi,

Because I am using the Gantt viewer in a real world situation whereby multiple projects are stored in one table I am finding that the ID column cannot be used within the chart.  Ideally I'd like to use an ID column for the chart that is essentially the Row ID starting from 1.

Is there a way to do this as it stands?

I'd really prefer to avoid using the Custom EntityFramework Provider as it seems horribly overcomplicated and when I did try it just didn't work.

Without wanting to sound rude, this control still seems like a Beta control, examples are basic, documentation is missing, critical functionality is missing etc.  It's really off putting seeing that it is now considered to be a live control with the implication that like other controls it will now be left to stagnate. 

I really want to use this kind of thing in my application but am left feeling that I'd really be better off with a commercial Gantt viewer even with only rudimentary requirements...

Regards

Jon
Felix
Top achievements
Rank 1
 answered on 04 Aug 2015
1 answer
123 views

When I inspect the GridCommandEventArgs event args in the OnItemCommand event handler I find...

e.Item.OwnerID "ctl00_ctl00_ContentPlaceHolder1_ContentPlaceHolder1_​myControl_gvMyGridWithTheDetailsTable_ctl00_ctl06_Detail10" string

and

e.Item.OwnerTableView.ClientID "ctl00_ctl00_ContentPlaceHolder1_ContentPlaceHolder1_​myControl_gvMyGridWithTheDetailsTable_ctl00_ctl06_Detail10" string

However ...

((RadGrid)sender).MasterTableView.DetailTables[0].ClientID "" string (IT'S BLANK!)

and

gvMyGridWithTheDetailsTable.MasterTableView.DetailTables[0].ClientID "" string (IT'S ALSO BLANK!)


gvMyGridWithTheDetailsTable == sender true bool  

and

gvMyGridWithTheDetailsTable.MasterTableView.DetailTables[0] == ((RadGrid)sender).MasterTableView.DetailTables[0] true bool

as you'd expect, but..

e.Item.OwnerTableView == ((RadGrid)sender).MasterTableView.DetailTables[0]    ***false***   bool   

and yes there's only one details table....

((RadGrid)sender).MasterTableView.DetailTables.Count 1  int

What's going on here?  
Why aren't the instances of the GridTableView in the GridCommandEventArgs and the GridTableView of the sending datagrid the same?
Why don't they have the same property values?

I'm attempting customise viewstate for my datagrid, by disabling viewstate on the grid and saving the state I want kept manually.  I was hoping to write generic code for this that would work with RadGrids ​which have DetailTables. In the case of the Detail tables, not being able to correlate the ID of the grid being sorted in the OnItemCommand with the ID of anything in the Pre_Load event of the page is going to stop me from being able to restore the state for the grid.

Angel Petrov
Telerik team
 answered on 04 Aug 2015
1 answer
148 views

hi



all the telerik control is working fine in all browser except safari

e.g. (The RadGridView Filter and paging not working in safari but its working fine with others browsers, ), 

 

Any help

I am using version(2015.1.401.45)

Eyup
Telerik team
 answered on 04 Aug 2015
2 answers
144 views

Hello! I'm working with a RadGrid with HierarchyLoadMode="Client", in the second level of detailTables  I have a GridTemplateColumn with a dropdownlist like this:

<telerik:GridTemplateColumn HeaderText="Alta Petició" HeaderStyle-HorizontalAlign="Center" UniqueName="UNDDLAltaTop" ItemStyle-HorizontalAlign="left">
<ItemTemplate>
          <asp:DropDownList ID="DDLTP" runat="server" OnSelectedIndexChanged="DDLTP_SelectedIndexChanged" />
</ItemTemplate>
</telerik:GridTemplateColumn>

 I'm set datasource of DDLTP in itemDataBound event:

 

if (e.Item.OwnerTableView.Name == "Son")
{
    if (e.Item is GridDataItem)
    {
        GridDataItem item = (GridDataItem)e.Item;
        DropDownList ddl = (DropDownList)item["UNDDLAltaTop"].FindControl("DDLTP");
        setDatasource(ref ddl, "ID_TP"); 
    
}

This works perfect!

 

Now I need to access to itemdata like (ItemCommand Event) to get the value of another column of the row

protected void DDLTP_SelectedIndexChanged(object sender, EventArgs e)
{
 
}

 

If I use an imagebutton to make the postback i can access itemData with ItemCommand Event but I don't like this solution:

<telerik:GridTemplateColumn HeaderText="Alta Petició" HeaderStyle-HorizontalAlign="Center" UniqueName="UNDDLAltaTop" ItemStyle-HorizontalAlign="left">
<ItemTemplate>
          <asp:DropDownList ID="DDLTP" runat="server"/>
          <asp:ImageButton  ID="BAltaPeticio" runat="server" CommandName="Altapeticio"           ImageUrl="../../Imatges/b_Add.gif" ToolTip="Alta Petició" />
</ItemTemplate>
</telerik:GridTemplateColumn>

Can you help me??

 

thanks

 

 

 

 

 

Eyup
Telerik team
 answered on 04 Aug 2015
12 answers
457 views
I've been having real problems using the client side api of RadGrid. It seems to me to be incomplete / buggy / difficult to use (or i'm a bit dumb - very likely the case). Would be interesting to know if i'm doing this all wrong or if I have indeed wasted all those hours due to bugs....

A bit of background.... I've been using WCF services to supply data to some RadGrids which are contained within web parts. To use the in built data binding in Telerik 2009.01, you need to create an "Ajax WCF Service" as it doesn't work with normal "WCF services". Not a problem, except that I couldn't get this working unless I had integrated windows authentication turned on (which isn't an option as I will be running in a DMZ). This, I will put down to my lack of knowledge with WCF... so I ended up having to use a normal WCF service and manually data bind using Javascript.

Here are my issues:
1.  To data bind on the client side, you need to call dataBind() on the master table view. The problem with this is that if the grid hasn't been previously data bound on the server, there is no master table view generated on the client. So, calling get_masterTableView() returns null. Hence, you can't data bind on the client side since the object which does the data binding isn't there. To get around this I implemented the NeedsDataSource event on the server and assigned it an empty list - this was enough to provide a master table view on the client side, and so allow me to data bind. It just seems a bit stupid that the thing which allows you to data bind isn't actually available by default.

2.  Next problem... after data binding on the client side, there were no rows generated and I was getting lots of exceptions. I managed to get around this by populating the grid with enough rows of dummy data in the NeedsDataSource event on the server, then clearing this as soon as it reaches the client and calling dataBind(). Why would dataBind() on the client not generate the rows for me automatically? It seems that the rows need to be there in advance which seems a bit stupid, especially for the case where you don't know how many rows you will need.

3.  Nested rows: There is no support on the client side for nested rows. I have previously raised this so won't ramble on but just thought to mention it as another thing that is missing.

4.  There is also a problem where if a nested row is expanded and dataBind() is called, the expanded nested row remains visible after the data bind. So you end up with your new data, plus the old expanded nested row.

5.  No records template: If this is visible, after data binding on the client side the no records template remains visible even if the grid contains data.

I've finally got everything working as I want, but I have lost weeks of dev time working around these issues. It might have been easier if the documentation was of any use. E.g. search for get_masterTableView returns a 1 line statement that it gets an object of type MasterTableView, but then there is no documentation on how to use this object on the client side. Again... it's possible that I just didn't find the documentation, even though i've spent a lot of time searching - if this is the case then the documentation needs to be indexed better.

Sorry to ramble on but my frustration levels are high!
Rajshree
Top achievements
Rank 1
 answered on 04 Aug 2015
9 answers
217 views
I have a GridButtonColumn of type ImageButton with CommandName set to Delete. The column also has ConfirmDialogType set to RadWindow. I click the button in the grid cell and the RadWindow comes up asking if I want to delete the item. However, the user has no idea which item has been selected since it is not in a selected state. The user simply just click the delete button. How do I select the row before the confirm window comes up?
Josef Rogovsky
Top achievements
Rank 2
 answered on 03 Aug 2015
10 answers
705 views
Hi Team,
I have a RadWinows popup that i open on Clianient side using radOpen(). The problem i'm having is that in IE7 when the popup opens it doesn't refresh the page. I have a popup rad window with controls on on it and two buttons Save and Cancel. If i open the popup then edit the controls on the popup window and click cancel. When I open the popup again i see that the controls on the popup still have the same values in it even though i pressed cancel in IE8 this problem isn't hapenning. So that for IE7 I had to use the RelodOnShow proprty in the RadWindowManager to refersh the popup on load. But this is making the load of the popup very very slow. Is there away i can refresh the rad window who or make it work properly in IE7. 
Thanks
Nasiem
Vessy
Telerik team
 answered on 03 Aug 2015
1 answer
132 views

From your demo http://demos.telerik.com/aspnet-ajax/tooltip/examples/tooltipzoneid/defaultvb.aspx

 

 

  <div class="demo-containers" id="container1">
        <div class="demo-container">
            <h2>
                Tooltipified links in the "container1" zone
            </h2>
            <telerik:RadToolTipManager runat="server" AutoTooltipify="true" ID="RadToolTipManager1"
                ToolTipZoneID="zone1" RelativeTo="Element" Width="150px">
            </telerik:RadToolTipManager>
            <div id="module">
                Lorem ipsum dolor sit amet,

 

In the code there is no element defined as "zone1". What is the user there, I don't understand.

I want to tooltiptify a radslider but cannot succeed in this.

Marc

Ianko
Telerik team
 answered on 03 Aug 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?