Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
85 views
dear all,
    I bind my radgrid with Need DataSource in code behind. I want to edit my radgrid when double click the grid row , I want one of the page appear with rowid. can? help me please.?
kham
Top achievements
Rank 1
 answered on 30 Mar 2011
2 answers
141 views
Hi;
I have a table that it is structured as self Referencing with ID and Parent ID. Can RADTreeView display this structure? If yes, any sample to see?

Thanks!
..Ben
Ben Hayat
Top achievements
Rank 2
 answered on 30 Mar 2011
3 answers
167 views
Hello,

For a ComboBox like this:

<telerik:RadComboBox ID="Persons" runat="server" DataTextField="Name" DataValueField="Id" MarkFirstMatch="true" AppendDataBoundItems="true">
    <Items>
        <telerik:RadComboBoxItem runat="server" Value="0" Text="" />
    </Items>
</telerik:RadComboBox>

When I select an item then click somewhere else, the combobox seems to reset or clear the selection. This is happening with various comboboxes on my page.

How can I get the selected item to stay where it should? There is no postback or anything. This happens on the client side and the control binds with data with no issue.

Richard
Richard Weeks
Top achievements
Rank 2
 answered on 29 Mar 2011
1 answer
172 views
I have a telerik radgrid with paging enabled and attaching the oncommand client event messes up paging.
Without the oncommand event, I am able to click on page numbers on the pager and it properly shows the selected page number text in bold.
But if I attach a oncommand event, it does not highlight the selected page number at all. And all the page numbers remain as hyperlinks including the selected page. Here is the sample code to reproduce this issue. Can some one please let me know if there is a fix ? I need to be able to trap the commands and cancel them if possible before postback happens to the server. And pagination is very critical for me as well. I tried to attach the oncommand event handler in the server side code(on page load event) but it doesnt help.

<telerik:RadCodeBlock ID="RadCodeBlock2" runat="server">
  <script type="text/javascript">
      function onInqGridCmd(sender, eventArgs) {
      }
   </script>
</telerik:RadCodeBlock>   
 
<telerik:RadGrid ID="RadGrid1" DataSourceID="SqlDataSource1" EnableEmbeddedSkins="true" Skin="Gray" AllowSorting="True"
    AllowPaging="True" PageSize="5" runat="server" GridLines="None" Width="100%">
    <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
    <ClientSettings>
        <Scrolling AllowScroll="true" SaveScrollPosition="true" UseStaticHeaders="true"   />
        <ClientEvents  OnCommand="onInqGridCmd"></ClientEvents>
    </ClientSettings>
     
</telerik:RadGrid>
 
<asp:SqlDataSource ID="SqlDataSource1" ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
    ProviderName="System.Data.SqlClient" SelectCommand="SELECT CustomerID, CompanyName, ContactName, ContactTitle, Address, PostalCode FROM              Customers" runat="server"></asp:SqlDataSource>

Appreciate your help.
Daniel
Telerik team
 answered on 29 Mar 2011
4 answers
228 views
Hi all,

I have a custom command created like so:

DockCommand settingsCommand = new DockCommand();
settingsCommand.Name = "Local Settings";
settingsCommand.Text = "Local Settings";
settingsCommand.CssClass = "LocalSettings";
settingsCommand.AutoPostBack = false;
settingsCommand.OnClientCommand = "ShowLocalSettings";
Commands.Add(settingsCommand);

function ShowLocalSettings(sender, eventArgs) {
    radDock = sender;
    var oWindow = window.radopen(null, "LocalSettingsWindow");
    oWindow.center();
}


The RadWindow appears fine and everything works as expected, but, in the background I can see my page refreshing when I click the custom command button -- even though autopostback is set to false. My RadWindow doesn't flash, and it's modal so the background can't be interacted with, but it is still distracting to see it refreshing once when my RadWindow is already displayed.

Any ideas on why this would be happening?

Sean
Top achievements
Rank 2
 answered on 29 Mar 2011
2 answers
86 views
Hello,

I am creating raddocs dynamically. I do have dynamic radzones. Also I wish to create raddocs with varible height dynamically. Its height should get varied as per the contents inside it.

If I do not set the height of raddoc while creating it dynamically then it set to some default value and displayes scrollbar.

Prayag
prayag ganoje
Top achievements
Rank 1
 answered on 29 Mar 2011
2 answers
136 views
Hallo community, I want to integrate mails into my webapplikation (like the demo). What mailserver is best to do this? Thank you!
Bernhard Rosenfelder
Top achievements
Rank 1
 answered on 29 Mar 2011
1 answer
123 views
Hi,

I have never posted before, I hope this is the correct place. My markup is below. When I click the edit button on a row and make a change in the Edit form, no update events are raised on the datasource . I have copied the sample several times from the website but I still cannot get my events wired up properly. I am using WCSF and am quite familiar with this framework. The datasource seems to work fine if I use an asp.net GridView. Any help would be appreciated.
Thanks

    <pp:ObjectContainerDataSource ID="ds1" runat="server" 
        DataObjectTypeName="Foo.Infrastructure.Interface.Object" 
        ondeleted="ds1_Deleted" UsingServerPaging="True" UsingServerSorting="True" 
        oninserted="ds1_Inserted" onselecting="ds1_Selecting" onupdated="ds1_Updated" />
    <telerik:RadGrid 
        ID="grid" runat="server" GridLines="None" AutoGenerateColumns="False"
        AllowAutomaticInserts="True"
        AllowAutomaticUpdates="True"
         PageSize="100" AllowPaging="True" AllowSorting="True"
        Width="100%" 
        AutoGenerateEditColumn="True" CellSpacing="0" DataSourceID="ds1">
        <MasterTableView CommandItemDisplay="Top" EditMode="EditForms" HorizontalAlign="NotSet"
            AllowAutomaticInserts="false" AllowAutomaticUpdates="true" InsertItemDisplay="Top"
            runat="server" DataSourceID="ds1">
            <Columns>
                <telerik:GridBoundColumn DataField="Id" HeaderText="Id" DataType="System.Int32" />
                <telerik:GridBoundColumn DataField="Name" HeaderText="Name" DataType="System.String" />
                <telerik:GridBoundColumn DataField="ApplicationDomain" HeaderText="Domain" DataType="System.String" />
                <telerik:GridBoundColumn DataField="DefaultTheme" HeaderText="Theme" DataType="System.String" />
                <telerik:GridBoundColumn DataField="DateCreated" HeaderText="Created" DataType="System.DateTime" DataFormatString="{0:MMM dd yyyy}" />
                <telerik:GridBoundColumn DataField="DateOnline" HeaderText="Online" DataType="System.DateTime" DataFormatString="{0:MMM dd yyyy}" />
                <telerik:GridBoundColumn DataField="DateOffline" HeaderText="Offline" DataType="System.DateTime" DataFormatString="{0:MMM dd yyyy}" />
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>
Ian
Top achievements
Rank 1
 answered on 29 Mar 2011
2 answers
128 views
I have a RadGrid with a GridButtonColumn that has CommandName="Delete".  When I click this button, the events for ItemCommand and DeleteCommand both fire.  In the ItemCommandEvent I run some code to delete the record from the database.

The record gets deleted from the DB, but the row still exists on the UI.  I've tried calling the Rebind() and DataBind() methods on my radgrid, but that makes no difference.

I've also tried using a GridClientDeleteColumn instead of the GridButtonColumn.  This causes the row to disappear from the UI, but no server-side events fire, so I cannot actually delete the data from the DB.
Jayd
Top achievements
Rank 1
 answered on 29 Mar 2011
5 answers
110 views
Hello,

Im trying to use modernizr.js in my application. It attaches classes to the <html> tag. When the page loads Telerik wipes out those classes and adds its own.

How do i prevent this? is there an option to append the classes without overwriting the ones im setting?

please advise.

Thank you
Niko
Telerik team
 answered on 29 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?