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

Hi!

   I have a checkbox column within my TreeList, when Click [Add], I could get almost all of the fields within the <telerik:RadTreeList> except the checkbox field.

I have tried, if I changed the InUse Column to  <telerik:TreeListBoundColumn>, it will be included in the ExtractValues Hashtable.  But, when I changed it back to checkbox field(code as below), then it is not included in the hashtable.  How could I get the value of the checkbox?

Thanks in advance!

SH

 

    <telerik:TreeListTemplateColumn DataField="InUse" UniqueName="InUse" HeaderText="Enabled" EditFormHeaderTextFormat="Enabled: ">
                                        <HeaderStyle Width="30px"></HeaderStyle>
                                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                        <ItemTemplate>
                                            <asp:CheckBox ID="chkInUse" runat="server" Checked='<%# Eval("InUse").ToString()=="Y"?true:false %>' Enabled="false" />
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:CheckBox ID="chkInUse" runat="server" Checked='<%# Eval("InUse").ToString()=="Y"?true:false %>' />
                                        </EditItemTemplate>
                                        <InsertItemTemplate>

                                            <asp:CheckBox ID="chkInUse" runat="server" />
                                        </InsertItemTemplate>
                                    </telerik:TreeListTemplateColumn>

.aspx.cs

protected void radTreeList_InsertCommand(object sender, TreeListCommandEventArgs e)

{
                Hashtable hashPCRelation = new Hashtable();
                TreeListEditableItem editItem = e.Item as TreeListEditableItem;
                TreeListEditFormItem oEditFormItem = editItem as TreeListEditFormItem;
                editItem.ExtractValues(hashPCRelation);

                ...

}

sharon
Top achievements
Rank 1
 answered on 09 Jun 2016
28 answers
807 views
I am having two problems with the popup right now.  My first issue is when
I set EditMode="Popup" and try to edit a row the grid columns expand slightly like
EditMode="InPlace" and textboxes were showing, however, there is nothing.
I cancel the edit and the grid column widths shrink back down slightly and
everything is back to normal.  When I go to add a row, the popup pops up
and all fields are waiting to be entered.  I can't figure out why one pops up
and the other doesn't.  My second issue is when I set
PopupSettings-Modal="True", the whole screen greys out including the popup.
Any ideas?

My RadGrid Details:
Located in <Div> that centers grid on page.
Custom CommandItemDisplay that houses the "Edit Selected" / "Add" / etc.
Grouping enabled.

Let me know if any further details are needed.  Thanks in advace for all replys.

Joshua
Maria Ilieva
Telerik team
 answered on 08 Jun 2016
1 answer
85 views

Hi there

Is there a way to move the DataLabelFields and Title down?

The reason why i ask this. Is, i have line chart that goes into the Negative and my Labels show up on the 0 line and not at the bottom of the chart.

how can this be fixed?

i have attached a picture.

regards

Jeremy

Danail Vasilev
Telerik team
 answered on 08 Jun 2016
1 answer
75 views

Hello,

I would like to hyperlink the group footer in my GRID. I've tried several approaches on this forum and none of them are working for me. I would like to pass an ID as the hyperlink in each group footer and navigate to an internal page that will show information related to grouped items.

Any help from you guys would be highly appreciated.

Thank you.

Konstantin Dikov
Telerik team
 answered on 08 Jun 2016
1 answer
295 views

1) Is there something similar to GridView’s CommandField in Telerik Radgrid? I need to edit fields row by row.

This is how it is done in GridView:

<asp:CommandField ShowDeleteButton="True" />
<asp:CommandField ShowEditButton="True" />

2) I also need to add a custom button for each row in RadGrid. How can this be done?

 

Thanks!

Viktor Tachev
Telerik team
 answered on 08 Jun 2016
1 answer
34 views

Can anyone advise: we need to have 2 slots which visually behave like the current 'All Day' slot - the other being an 'Any Time' slot. This means the job can be carried out any time throughout the day, whether a 10 minute or 2 hour job. Can we customise the scheduler so two slots appear and behave this way?  

Alternatively, could we utilise the 1am slot for example (as none of our users would use this), rename it and then customise the view so the 1am/Any Time slot appears under All Day, and then skips 2 - 6am, followed directly by 7am which is by default the first hour of the working day view. 

The reason we are hesitant to use/rename the 6am slot is that our users may need to use it.

Any help/advice massively appreciated.

Veselin Tsvetanov
Telerik team
 answered on 08 Jun 2016
1 answer
557 views

Hi,

I am using a RadGrid to show data (obviously).  Within a specific cell I have a literal that is called "DocumentName".  The user has an option to rename that generic name to something custom.  What I do is have a button that they click and an asp:TextBox control becomes visible with a save button.  When I enter text into that textbox and hit the save button I want to get that new value from the textbox.  However, I am getting an empty string every time. I have tried multiple ways  Here is my code.

foreach (GridDataItem g in EventsDocsRadGV.Items)
{

// First way - returns an empty string
TextBox RenameDocumentName = (TextBox)g.FindControl("RenameDocumentName");

// Second way - returns an empty string
string txt = (g["EventTypeDesc"].FindControl("RenameDocumentName") as TextBox).Text;

// Third way - returns an empty string
GridDataItem item = (GridDataItem)g;
TextBox RenameDocumentName2 = (TextBox)item["EventTypeDesc"].FindControl("RenameDocumentName");

}

I also tried the same only wrapped in this loop
foreach (GridDataItem g in EventsDocsRadGV.MasterTableView.Items)
{

// First way - returns an empty string
TextBox RenameDocumentName = (TextBox)g.FindControl("RenameDocumentName");

// Second way - returns an empty string
string txt = (g["EventTypeDesc"].FindControl("RenameDocumentName") as TextBox).Text;
// Third way - returns an empty string
GridDataItem item = (GridDataItem)g;
TextBox RenameDocumentName2 = (TextBox)item["EventTypeDesc"].FindControl("RenameDocumentName");

}

I can access the other properties and cells that were bound onitemdatabound but not this textbox.  Ideas?

Thanks!

Viktor Tachev
Telerik team
 answered on 08 Jun 2016
1 answer
46 views
Instead of doing an in-line or pop-up edit, I would like to edit on a different page.  What's the name of the edit button click event in RadGrid, so I can redirect?
Konstantin Dikov
Telerik team
 answered on 08 Jun 2016
1 answer
306 views

What is the proper way to set/adjust the tab height when rendermode = 'Lightweight'?  

I am using the latest version (Q2 2016)

Changing the height value on the control does not seem to work.  Entering a number smaller than the default height cuts off the bottom of the tab, IE:  text remains same distance from top of tab. 

<telerik:RadTabStrip ID="RadTabStrip1" runat="server"  Skin="Black"  RenderMode="Lightweight" Height="25px"    SelectedIndex="4" >
        <Tabs>
            <telerik:RadTab runat="server" Text="Root RadTab1"  >
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="Root RadTab2" >
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="Root RadTab3"  >
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="Root RadTab4" >
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="Root RadTab5" Selected="True"  >
            </telerik:RadTab>
        </Tabs>
  </telerik:RadTabStrip>

Entering a number larger than the default is ignored.

 <telerik:RadTabStrip ID="RadTabStrip1" runat="server"  Skin="Black"  RenderMode="Lightweight" Height="325px"    SelectedIndex="4" >
        <Tabs>
            <telerik:RadTab runat="server" Text="Root RadTab1"  >
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="Root RadTab2" >
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="Root RadTab3"  >
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="Root RadTab4" >
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="Root RadTab5" Selected="True"  >
            </telerik:RadTab>
        </Tabs>

  </telerik:RadTabStrip>

See attached image for examples. 

 

Peter Milchev
Telerik team
 answered on 08 Jun 2016
1 answer
235 views

I have bound a RadListView control with client side binding. I need to fire item data bound event and make the image controls (html image) visible true/false depending on the data record.

Also I want fire item command event on click of image (html image control) in the radListview and in that event, hide that item from the radListView.

Please suggest how to achieve the above two tasks.

Eyup
Telerik team
 answered on 08 Jun 2016
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?