Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
86 views
On the following tutorial, the edit from is loaded on initial page load:

http://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/form-template-update/defaultcs.aspx

How can I hide it on initial load and have it appear once user click on the "edit" text on the row of the data?

In addition, how can I use RadioButtonList in the template form with particular data selected when they click on edit link?

Lastly, If in the edit template, if there is a section where I don't want it to show (because section is not necessary to be edited), can I hide the section of edit form template on the fly?
Eyup
Telerik team
 answered on 06 Apr 2015
1 answer
132 views
Hi,
i am using asp.net cascadiung dropdown
lists.
assignment
2.task




i have bind data to both dropdownlist and succesfully write insert code.
But my problem is when i next time go that page grid must show previously inserted data.
For this i can able to bind assignment dropdown but my task dropdown is not binding properly.
It shows all data for that current assignment(not showing which task is allready inserted for that
assignment.)

i tried following code for assignment
and task binding.

protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType ==DataControlRowType.DataRow)
{
DropDownList ddlAssignment = (e.Row.FindControl("ddlAssignment") as DropDownList);
string Assignment =(e.Row.FindControl("lblAssignment") as Label).Text;
ddlAssignment.ClearSelection();
ddlAssignment.Items.FindByText(Assignment).Selected = true;

DropDownList ddlTask = (e.Row.FindControl("ddlTask") as DropDownList);
string Task = (e.Row.FindControl("lblTask") as Label).Text;
ddlTask.ClearSelection();
ddlTask.Items.FindByText(Task).Selected = true;

i also tried
ddlTask.Items.FindByValue(Task).Selected = true;

}
}

Thanks.

Ivan Danchev
Telerik team
 answered on 06 Apr 2015
10 answers
202 views

While using a Grid with Grouped columns, we have found that when we scroll to the right, little space is left for the left most column and in that case, only the first column in the leftmost groups is shown.

 

Please see the attached image.

Notice that the width of the grouped column crops the column as indicated in the image. Please assist.

 

Is there a way to show avoid cropping of the right sub-column in the group.

Pavlina
Telerik team
 answered on 06 Apr 2015
1 answer
69 views
i tried to change the style to keep all stars in one line.horizontally. not sure how can i fix it. please find the image. and i am looking for expactedresult in second image.
Slav
Telerik team
 answered on 06 Apr 2015
1 answer
111 views
Clicks are # in ContentTemplate with RadSitemap and  is not working on iPad.
Please check http://sieger.ontwikkelruimte.nl/test.aspx

With code:

<telerik:RadMenu id="RadMenu2" EnableShadows="false" ExpandAnimation-Type="None" CollapseAnimation-Type="None" ShowToggleHandle="false" CausesValidation="False" runat="server" >

         <Items>

           



               <telerik:RadMenuItem Value="Producten" Text="Producten" PostBack="false">
                        <ContentTemplate>
                            <div>
                              
                                <telerik:RadSiteMap ID="RadSiteMap2" runat="server" Skin="Telerik" EnableTextHTMLEncoding="true">
                                    <LevelSettings>
                                        <telerik:SiteMapLevelSetting Level="0">
                                            <ListLayout RepeatColumns="3" RepeatDirection="Vertical" />
                                        </telerik:SiteMapLevelSetting>
                                    </LevelSettings>

                                   <Nodes>
                                       <telerik:RadSiteMapNode NavigateUrl="~/abc.aspx" Text="henk" />
                                   </Nodes>
                                    </telerik:RadSiteMap>
                                </div>
                            </ContentTemplate>
                        </telerik:RadMenuItem>

             </Items>
     </telerik:RadMenu>
Dimitar
Telerik team
 answered on 06 Apr 2015
1 answer
104 views
I ran the example on my machine and it works, but when I emulate another browser, ex: IE9, the chart does not export. IS there a filesystem setting that needs to be added, as I have seen an error with something like that from time to time.
Ivan Danchev
Telerik team
 answered on 06 Apr 2015
1 answer
178 views

This post exactly explains my situation but instead of removing the Boolean value yes, I need to disable a radcombo item (please check under Rad comboBox filter2 item Show All Temporary reports).
http://www.telerik.com/forums/combobox-with-textbox-filtering 
Rad comboBox filter1:
<telerik:GridBoundColumn UniqueName="STATE_CODE" DataField="STATE_CODE" HeaderText="STATE_CODE" >
                        <FilterTemplate>
                            <telerik:RadComboBox ID="RadComboBoxSTATE_CODE" DataSourceID="SqlDataSource1" DataTextField="STATE_CODE"
                                DataValueField="STATE_CODE" Height="200px" AppendDataBoundItems="true" SelectedValue='<%# TryCast(Container,GridItem).OwnerTableView.GetColumn("STATE_CODE").CurrentFilterValue %>'
                                runat="server" OnClientSelectedIndexChanged="STATE_CODEIndexChanged">
                                <Items>
                                    <telerik:RadComboBoxItem Text="All" />
                                </Items>
                            </telerik:RadComboBox>
                            <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
                                <script type="text/javascript">

                                    function STATE_CODEIndexChanged(sender, args) {

                                        var tableView = $find("<%# TryCast(Container,GridItem).OwnerTableView.ClientID %>");

                                        tableView.filter("STATE_CODE", args.get_item().get_value(), "EqualTo");

                                    }

                                </script>
                            </telerik:RadScriptBlock>
                        </FilterTemplate>
                    </telerik:GridBoundColumn>

Rad comboBox filter2:
   <telerik:GridBoundColumn UniqueName="report" DataField="report" HeaderText="report" >
                        <FilterTemplate>
                            <telerik:RadComboBox ID="RadComboBoxreport" DataSourceID="SqlDataSource2" DataTextField="report"
                                DataValueField="report" Height="200px" AppendDataBoundItems="true" SelectedValue='<%# TryCast(Container,GridItem).OwnerTableView.GetColumn("report").CurrentFilterValue %>'
                                runat="server" OnClientSelectedIndexChanged="reportIndexChanged">
                                <Items>
                                    <telerik:RadComboBoxItem Value="All" Text="All" />
                                    <telerik:RadComboBoxItem Value="T" Text="Show All Temporary reports" Enabled="true" />
                                </Items>
                            </telerik:RadComboBox>
                            <telerik:RadScriptBlock ID="RadScriptBlock2" runat="server">
                                <script type="text/javascript">

                                    function reportIndexChanged(sender, args) {

                                        var tableView = $find("<%# TryCast(Container,GridItem).OwnerTableView.ClientID %>");

                                        tableView.filter("report", args.get_item().get_value(), "Contains");

                                    }

                                </script>
                            </telerik:RadScriptBlock>
                        </FilterTemplate>
                    </telerik:GridBoundColumn>
Temp Report numbers start with T. Regulars do not have T.
On selecting a state, say CA, if they have temp reports, it is working fine. If CA doesn't have temporary reports, but the user chooses "Show all temp records", I get ArgumentOutofRangeException and - Selection out of range Parameter name: value error.
I am not sure where to disable the item.  It will be great if I get some help on this.

Hristo Valyavicharski
Telerik team
 answered on 06 Apr 2015
9 answers
1.5K+ views
how do i remove the column(s) in the radgrid on runtime.
can anybody help me with this.
Ibraheem
Top achievements
Rank 1
 answered on 06 Apr 2015
1 answer
78 views
Hi all,

I can't get new check items on code behind. I bind the listbox on page load.

<telerik:RadListBox ID="listBoxEmp" runat="server" CheckBoxes="true" ShowCheckAll="true"
                                            Width="250px" Height="200px" >

.cs

List<tbl_Employee> data = GetEmp("");
       if (data != null)
       {
           for (int i = 0; i < data.Count; i++)
               listBoxEmp.Items.Add(new RadListBoxItem(data[i].ID.ToString() + " | " + data[i].Name.ToString(), data[i].ID.ToString()));
 
       }
 
There will be other comboboxs. I have to check items based on other combobox selection. So in codebehind,  I do it like this. It will checked all items that returned from query.

foreach (RadListBoxItem cbi in listBoxEmp.Items)
       {
           if (objEmp.Where(x => x.EmployeeID == cbi.Value).Count() > 0 && cbi.Checked == false)
           {
               cbi.Checked = true;
               //checkEmp += cbi.Value + ",";
           }
       }

After that I also check some more items from the UI but when I click search,new items are not inside the listBoxEmp.CheckedItems list. Please suggest.

Thank you.

Best regards,
Ei Wai
Konstantin Dikov
Telerik team
 answered on 06 Apr 2015
1 answer
74 views

Dear Support Team,


We just started using your GanttView and we have a requirement to have multiple events or "GanttTasks" on a single line.

It appears that whenever I add a GanttTask or child to a GanttTask, it always creates a new line item for the task.

Is there anyway to represent multiple events or tasks on a single line?



Thanks in advance,

 

Atul Soni

 

Bozhidar
Telerik team
 answered on 06 Apr 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?