Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
790 views
Hi Telerik Team,

I was using a radbutton with toggletype set to checkbox and buttontype as standard button, what I am doing is setting the checked property to true server-side, then if I unchecked it on the UI to set the property to false the radbutton checked property is still set to true though I have unchecked it. 

Hope you could help me.

Thanks,
Jeff
Jeff
Top achievements
Rank 1
 answered on 17 Apr 2013
3 answers
204 views

I have a problem editing a HTML form with Telerik Editor using Google Chrome. When I add a button, I can not edit the properties of the button and if I add a submit button, when I click the submit button into the editor (design view) the form is submitted.

Is there a fix for this error ?

To reproduce this strange behavior, simply open the demo editor with Chrome.
http://demos.telerik.com/aspnet-ajax/editor/examples/overview/defaultcs.aspx
and add these lines of html code to the bottom of the page (or use the editor tools to add the buttons).

<input style="width: 50px; height: 22px;" type="button" value="Execute" /><br />
<input style="width: 50px; height: 22px;" type="submit" value="Submit" /><br />

then try to click on the buttons in the design view.

Best Regards,
Massimo

Misho
Telerik team
 answered on 17 Apr 2013
3 answers
191 views
I want to bind an async function result to grid's child raddropdownlist while editing but there is no datasource property to bind. How could i do this .Thanks for your help from now.

my result serviceresult func is

void Sclient_ListRolCompleted(object sender, HzgKullaniciService.ListRolCompletedEventArgs e)
       {
           roller = e.Result.ToList<HzgKullaniciService.Kullanici_rol>();
       
       }

i want to bind roller that result of webservice to ddlistroller dropdownlist data source.

<telerik:RadGrid runat="server"
            ID="rgv_yetkiler"
            CellSpacing="0"
            Culture="tr-TR"
            GridLines="None"
            Skin="Metro"
            AutoGenerateColumns="False"
            AllowPaging="True"
            AllowSorting="True"
            AllowAutomaticUpdates="True"
            AllowAutomaticInserts="True"
            ShowStatusBar="True">
 
            <MasterTableView ShowFooter="false" DataKeyNames="ID" EditMode="InPlace" CommandItemDisplay="TopAndBottom">
                <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
                <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column"></RowIndicatorColumn>
                <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column"></ExpandCollapseColumn>
                <Columns>
                    <telerik:GridBoundColumn DataField="yetkiadi" HeaderText="Yetki Adı" HeaderStyle-Width="300px" ItemStyle-Width="300px">
                        <ColumnValidationSettings>
                            <ModelErrorMessage Text=""></ModelErrorMessage>
                        </ColumnValidationSettings>
 
                        <HeaderStyle Width="300px"></HeaderStyle>
 
                        <ItemStyle Width="300px"></ItemStyle>
 
 
 
 
                    </telerik:GridBoundColumn>
                    <telerik:GridTemplateColumn HeaderText="Rol" UniqueName="rol" ItemStyle-Width="240px">
                        <ItemTemplate>
                            <%#roller.Where(r=>r.ID==new System.Guid(DataBinder.Eval(Container.DataItem, "rolID").ToString())).First<HzgMainWebApp.HzgKullaniciService.Kullanici_rol>().roladi%>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <telerik:RadDropDownList
                                runat="server"
                                ID="ddlistroller"
                                DataTextField="roladi"
                                DataValueField="ID"
                                SelectedValue='<%#Bind("rolID")%>'
                                 
                                >
                            </telerik:RadDropDownList>
                        </EditItemTemplate>
                        <ItemStyle Width="240px"></ItemStyle>
                    </telerik:GridTemplateColumn>
                    <telerik:GridEditCommandColumn
                        FooterText="EditCommand footer"
                        UniqueName="EditCommandColumn"
                        HeaderText="Düzenle" HeaderStyle-Width="100px"
                        CancelText="İptal"
                        UpdateText="Güncelle">
                        <HeaderStyle Width="100px"></HeaderStyle>
                    </telerik:GridEditCommandColumn>
                </Columns>
                <EditFormSettings>
                    <EditColumn UniqueName="EditCommandColumn1" FilterControlAltText="Filter EditCommandColumn1 column"></EditColumn>
                </EditFormSettings>
                <PagerStyle PageSizeControlType="RadComboBox"></PagerStyle>
            </MasterTableView>
            <PagerStyle PageSizeControlType="RadComboBox"></PagerStyle>
            <FilterMenu EnableImageSprites="False"></FilterMenu>
 
 
 
        </telerik:RadGrid>
Angel Petrov
Telerik team
 answered on 17 Apr 2013
1 answer
77 views
<telerik:RadTreeView ID="RadTreeView1" runat="server" CheckBoxes="True" Width="100%"
          Height="250px">
          <Nodes>
              <telerik:RadTreeNode Text="Personal Folders" Expanded="True">
                  <Nodes>
                      <telerik:RadTreeNode Text="Deleted Items (6)">
                      </telerik:RadTreeNode>
                      <telerik:RadTreeNode Text="Drafts">
                      </telerik:RadTreeNode>
                      <telerik:RadTreeNode Text="Inbox (14)" Expanded="True">
                      </telerik:RadTreeNode>
                      <telerik:RadTreeNode Text="Junk E-mail">
                      </telerik:RadTreeNode>
                      <telerik:RadTreeNode Text="Outbox">
                      </telerik:RadTreeNode>
                      <telerik:RadTreeNode Text="Sent Items">
                      </telerik:RadTreeNode>
                      <telerik:RadTreeNode Text="Search Folders">
                      </telerik:RadTreeNode>
                  </Nodes>
              </telerik:RadTreeNode>
          </Nodes>
</telerik:RadTreeView>
I would love to have the ability of declare DropDownTree structure from markup, similar to other Telerik Controls like RadTreeView.
Peter Filipov
Telerik team
 answered on 17 Apr 2013
1 answer
88 views
Dear Telerik Team,

  I experienced a very strange bug when using RadDatePicker with following settings : Culture="fr-FR" & DateInput-DateFormat="ddd dd MMM yyyy".

  Whatever Tuesday I try to select in april 2013, it automatically select the right day and year but set Month to March.

  Best Regards,
Fabien.

It can be reproduced with IE9 and .Net Framework 3.5 and Telerik releases : 2011.3.1115.35, 2013.1.403.35

here is extract of declaration in .aspx file.

            <telerik:RadDatePicker ID="RadDatePickerMaxDate" runat="server"
                Culture="fr-FR"
                DateInput-DateFormat="ddd dd MMM yyyy"
                AutoPostBackControl="Calendar" 
                AutoPostBack="True"
                >
            </telerik:RadDatePicker>

when used as following, no problem at all :
                <telerik:RadDatePicker ID="RadDatePickerMaxDate" runat="server"
                AutoPostBackControl="Calendar" 
                AutoPostBack="True"
                >
                </telerik:RadDatePicker>

Kostadin
Telerik team
 answered on 17 Apr 2013
4 answers
119 views
Hi,

I have implemented sorting. If my column is not sorted then i want to show an image that particular column is not sorted sorting is available for this column. if its shorted then my default behavior should happen. any one can help me in this.

Regards,
Nithya
Nithya Rani
Top achievements
Rank 1
 answered on 17 Apr 2013
9 answers
906 views
Hi,
I have just updated from RadControls Classic. By and large the upgrade went smoothly but I am finding that a lot of my client side script is breaking.

Previously I could do something like this (just an example to demonstrate the point):
Page.ClientScript.RegisterStartupScript(GetType(),"key", 
    myRadComboBox.ClientID + ".somefunction();", true); 

From the documentation it looks like this code should be rewritten like this:
Page.ClientScript.RegisterStartupScript(GetType(), "key", 
    "$find(\"" + myRadComboBox.ClientID + "\").somefunction();", true); 

However, when I try this, the $find method returns null.

I notice that these scripts are being rendered above the Sys.Application.add_init calls for the control which could be part of the problem but I don't know how to solve this elegantly.


Kate
Telerik team
 answered on 17 Apr 2013
8 answers
266 views
Hi,

I have a radwindow with some .net controls. When i tab from the radwindow, it goes thru all the controls in the radwindow and then it reaches the url field of the browser of the parent page.

How can i restrict the access moving to the parent page from radwindow.
Any help will be much appreciated.

Thanks

Kiresh
Top achievements
Rank 1
 answered on 17 Apr 2013
1 answer
567 views
Trying to get the radgrid onclientclick to work, this way works but have sinceed changed to put variable into it but since then not working but it follows from telerik web site.  I would liek to chane to pass in varable that then pulls things into popup if variable is greater than 0.

This works.
<CommandItemTemplate>
                                <asp:LinkButton ID="lnkAdd" runat="server" Text="ADD ADMIN" OnClientClick="addAdminWin(); return false;"></asp:LinkButton>
                            </CommandItemTemplate>


This does not
<telerik:GridTemplateColumn>
        <ItemTemplate>
                <asp:LinkButton ID="lnkEdit" runat="server" Text="Edit" OnClientClick='<%# String.Format("addAdminWin({0}); return false;", Eval("intAdminId"))%>'></asp:LinkButton>
           </ItemTemplate>
</telerik:GridTemplateColumn>


here is the fucntion with and without the variable.
<script type="text/javascript">
 
       function addAdminWin(adminid) {
           var addAdmin = $find("<%= AddAdmin.ClientID %>");
           var HFId = $find("<%= HFId.ClientID %>");
           HFId.val = adminid
           addAdmin.show();
       }
   </script>


This works along with one that passes no variable.
<script type="text/javascript">
 
       function addAdminWin() {
           var addAdmin = $find("<%= AddAdmin.ClientID %>");
           addAdmin.show();
       }
   </script>




Shinu
Top achievements
Rank 2
 answered on 17 Apr 2013
1 answer
784 views
Edit: I found that I was calling databind from the method I called from the NeedDataSource handler in some cases, including this one.  I would delete the post if I could.


Greetings, I'm having an issue where I get the error:

You should not call DataBind in NeedDataSource event handler. DataBind would take place automatically right after NeedDataSource handler finishes execution.

And I get this error when I expand a details view on a row in my Grid.  This is the Detail Table Data Bind handler:


protected void grdSearchResults_DetailTableDataBind(object sender, Telerik.Web.UI.GridDetailTableDataBindEventArgs e)
        {
            GridDataItem dataItem = e.DetailTableView.ParentItem;
 
            int itemID = int.Parse(dataItem.GetDataKeyValue("Item_ID").ToString());
            IMyService dbItems = ServiceFactory.Create<MyService>();
            e.DetailTableView.DataSource = dbItems.GetItemsByID(itemID);
 
            uppnlSearchCriteria.Update();
        }

Note that the update panel is not where the grid is, but it is where the error
 label is, which is showing me that aforementioned error.

Based on the documentation and examples I've been looking at today, I'm doing 
things right by setting the datasource and NOT actually binding, but the Grid 
seems to think I'm calling databind.

Is there something I'm missing here or somewhere in the code I should look 
to see how this is happening?

Thanks,

Alex
Shinu
Top achievements
Rank 2
 answered on 17 Apr 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?