Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
115 views
Hi!

I have a grid with drag and drop rows, all is works correclty but i have a bug.

I need show the "spot line" such as captura.

It is special css?? 

this is my code:

<div class="tabContainter">


<telerik:RadCodeBlock ID="codeBlock" runat="server">


  <script type="text/javascript">


   function GridCreated(sender, eventArgs) {sender.add_rowDragging(RowDraggingIcon);}
   function RowDraggingIcon(sender, eventArgs) { rowDraggingIcon(sender, eventArgs); }


</script>
</telerik:RadCodeBlock>
    <div class="exampleView">
        <div class="title">
            <asp:Label ID="lblShowAsTitle" runat="server" />
             
        </div>
        <div class="label">
           <asp:Label ID="lblShowAS" runat="server" />
        </div>
    </div>
   
    <div class="clear">
    </div>
<div class="exampleView">
    <div id="Manage" runat="server" class="exampleView">
        <telerik:RadGrid runat="server" ID="MyGrid" AutoGenerateColumns="false" Skin="Vista" 
            AllowMultiRowSelection="True" PageSize="10" AllowPaging="true" EnableViewState="false">
            <MasterTableView DataKeyNames="StringMaskId,Id" CommandItemDisplay="Top" EditMode="InPlace">
                <Columns>
                
                    <telerik:GridClientSelectColumn CommandName="Select" UniqueName="Select" HeaderStyle-Width="30px"
                        Resizable="false" />
                    <telerik:GridEditCommandColumn HeaderStyle-Width="25px" UniqueName="EditCommandColumn"
                        ButtonType="ImageButton" EditImageUrl="/UI/Images/grid_edit.png" Resizable="false">
                    </telerik:GridEditCommandColumn>
                    <telerik:GridButtonColumn UniqueName="btnDelete" ConfirmDialogType="RadWindow" ButtonType="ImageButton"
                        CommandName="Delete" ConfirmDialogHeight="100px" ConfirmDialogWidth="300px" HeaderStyle-Width="25px"
                        Resizable="false" ImageUrl="/UI/Images/cross.png" />
                    <telerik:GridTemplateColumn DataField="Id" HeaderText="Id" UniqueName="Id" Visible="false"
                        ConvertEmptyStringToNull="true">
                        <InsertItemTemplate>
                            <telerik:RadTextBox ID="lblId" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Id") %> '
                                Width="150px" ReadOnly="true" Enabled="false" CssClass="labelGrid" />
                        </InsertItemTemplate>
                        <EditItemTemplate>
                            <telerik:RadTextBox ID="txtId" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Id") %> '
                                Width="150px" CssClass="labelGrid" ReadOnly="true" />
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn DataField="Position" HeaderText="Position" UniqueName="Position" Visible="false" HeaderStyle-Width="1px" 
                        ConvertEmptyStringToNull="true">
                            <EditItemTemplate>
                            <asp:Label ID="lblPosition" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Position") %> '
                                Width="150px" CssClass="labelGrid" ReadOnly="true" />
                        </EditItemTemplate>
                         <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Position") %>'></asp:Label>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn UniqueName="Type" DataField="TypeId">
                        <EditItemTemplate>
                            <telerik:RadComboBox runat="server" ID="cbType" EnableLoadOnDemand="True" DataTextField="CDetailText"
                                DataValueField="CDetailId" HighlightTemplatedItems="true" Width="90%" CausesValidation="false" AutoPostBack="true"  OnSelectedIndexChanged="cbType_SelectedIndexChanged"/>
                            <br />
                            <asp:RequiredFieldValidator ID="frSecurity" runat="server" ErrorMessage="*" CssClass="validator"
                                Display="Dynamic" ControlToValidate="cbType"></asp:RequiredFieldValidator>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="lblDatatype" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Type") %>'></asp:Label>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn UniqueName="Char" DataField="Char" HeaderStyle-Width="80px"  FilterControlWidth="40px" >
                        <EditItemTemplate>
                            <telerik:RadTextBox ID="txtChar" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Char") %> '
                                Width="50px" CssClass="labelGrid" MaxLength="1" />
                           <br />
                           <asp:CustomValidator ID="cvChar" runat="server" ErrorMessage="*" CssClass="validator"
                                Display="Dynamic" ControlToValidate="txtChar"  OnServerValidate="cvChar_ServerValidate"></asp:CustomValidator>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="lblChar" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Char") %>'></asp:Label>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn UniqueName="Match" DataField="MatchId">
                        <EditItemTemplate>
                            <telerik:RadComboBox runat="server" ID="cbMatch" EnableLoadOnDemand="True" DataTextField="CDetailText"
                                DataValueField="CDetailId" HighlightTemplatedItems="true" Width="90%" CausesValidation="false" AutoPostBack="true" OnSelectedIndexChanged="cbMatch_SelectedIndexChanged"/>
                            <br />
                          <asp:RequiredFieldValidator ID="frMatch" runat="server" ErrorMessage="*" CssClass="validator"
                                Display="Dynamic" ControlToValidate="cbMatch"></asp:RequiredFieldValidator>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="lblMatch" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Match") %>'></asp:Label>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn UniqueName="Amount" DataField="Amount" HeaderStyle-Width="110px" FilterControlWidth="40px">
                        <EditItemTemplate>
                            <telerik:RadNumericTextBox ID="txtAmount" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Amount") %> '
                                CssClass="labelGrid" ShowSpinButtons="true" Width="50px" Type="Number" MinValue="0"
                                MaxValue="99">
                                <NumberFormat GroupSeparator="" DecimalDigits="0" />
                            </telerik:RadNumericTextBox> 
                            <br />
                          
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="lblAmount" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Amount") %>'></asp:Label>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                     
                </Columns>
                <CommandItemTemplate>
                    <div class="quickAdd">
                        <asp:LinkButton ID="lnkqQuitInsert" runat="server" CommandName="InitInsert">
                            <asp:ImageButton ID="imgQuickAdd" runat="server" ImageUrl="/UI/Images/add.png" />
                            <asp:Label ID="lblQuickAdd" runat="server" /></asp:LinkButton>&nbsp;&nbsp;
                        <asp:LinkButton ID="lnkDeleteSelected" CommandName="SelectRow" runat="server" OnClick="DeleteSelectedItems">
                            <asp:ImageButton ID="imgDeleteSelected" runat="server" ImageUrl="/UI/Images/cross.png" />
                            <asp:Label ID="lblDeleteSelected" runat="server" /></asp:LinkButton>&nbsp;&nbsp;
                        <asp:LinkButton ID="lnkDeleteAllValues" runat="server" OnClick="DeleteValues">
                            <asp:ImageButton ID="imgDeleteAllValues" runat="server" ImageUrl="/UI/Images/delete_all.png" />
                            <asp:Label ID="lblDeleteAllValues" runat="server" /></asp:LinkButton>&nbsp;&nbsp;
                    </div>
                </CommandItemTemplate>
            </MasterTableView>
             <ClientSettings AllowRowsDragDrop="True">
                    <Selecting AllowRowSelect="True" EnableDragToSelectRows="false" />
                    <ClientEvents   OnGridCreated="GridCreated" />  


                </ClientSettings>   
            <PagerStyle Mode="NumericPages" />
        </telerik:RadGrid>
    </div>
</div>
</div>



the js file:
function rowDraggingIcon(sender, eventArgs) {
    var row = sender._draggedRow;
    row.innerHTML = "<img  src='/UI/Images/fields.png' />";
    row.style.width = 0 + "px";
    row.style.height = 0 + "px";
}



thanks

Antonio Stoilkov
Telerik team
 answered on 12 Sep 2012
1 answer
113 views

hi

div.RadUpload .ruButtonHover Does not work in chrome!

please fix this.

Kate
Telerik team
 answered on 12 Sep 2012
1 answer
119 views

Hello Telerik Team,

I have used RadCombox in my site extensively, and also I have used the “EmptyMessage” property. Recently I have updated the Telerik version to “2012.2.724.35” and after that i am facing too many issues related to RadCombox.

Older Version we were using: 2011.1.519.35
New Version currently we are using: 2012.2.724.35

In Telerik “2012.2.724.35” version, i have used the following RadComboBox In my web page. Now the issue is, if I do not change the default selection of following ddlStatus i.e. the ddlStatus is set to “-Select One-” and when I trying to access the “SelectedItem” property of ddlStatus from code behind, then it gives a null value whereas with the previous telerik version (2011.1.519.35), if the ddlStatus is set to default selection i.e. “-Select One-” and if I trying to access the “SelectedItem” property of ddlStatus then it gives the object of 0th position item i.e. <telerik:RadComboBoxItem Text="" Value="0" />. Besides that, in “2012.2.724.35” version, for the default selection of ddlStatus, the ddlStatus.SelectedValue property gives the Empty string where as in older version(2011.1.519.35) it gives the value of 0th element i.e. "0".   

<telerik:RadComboBox ID="ddlStatus" runat="server" Width="60px" EmptyMessage="-Select one-">

       <Items>

              <telerik:RadComboBoxItem Text="" Value="0" />

              <telerik:RadComboBoxItem Text="No" Value="1" />

              <telerik:RadComboBoxItem Text="Yes" Value="2" />

       </Items>

</telerik:RadComboBox>

 

This changed behavior of RadComboBox encounters so many issues in my website. Is there any generic way to resolve this issue?

Please suggest the workaround to resolve this issue.

Thanks,
Ashish

 

Cat Cheshire
Top achievements
Rank 1
 answered on 12 Sep 2012
1 answer
142 views

how to get gridview column header name event on button click?



Thanks
Priya
Shinu
Top achievements
Rank 2
 answered on 12 Sep 2012
2 answers
110 views
Hello,

I'm encountering a smaal issue: (in fireFox, but I think Chrome too)

In the page_Load I do this:

RadNotification1.ShowInterval = 12000 ' 2 minutes
RadNotification1.AutoCloseDelay = 10000 ' 10 sec
lbl_NotifyText.Text = Format(Now, "HH:mm"' a label within the RadNotification1

So, say I start the page at 11:00, I want to see the notification at 11:02
But during this time I do some PostBacks, until 11:01, what should reset the RadNotification1 to 11:03 and the text in the label to "11:03". Well.. It doesn't...

Although the code is executed (breakpoint) and the new timer values are added and the text was changed, I still get a message at 11:02 with the label text "11:02".

How can I change this behaviour?


Kind regards and thanks in advance,

Erik
   
Erik
Top achievements
Rank 2
 answered on 12 Sep 2012
3 answers
295 views
Hi guys,

I have a RadComboBox as follows
<radcontrol:RadComboBox ID="MessageRecepientsSelectorComboBox" runat="server" EnableLoadOnDemand="true"    
    LoadingMessage="Loading..." EmptyMessage="Please enter recepient(s) for the message..."   
    OnItemsRequested="MessageRecepientsSelectorComboBox_OnItemsRequested" Width="450" ShowDropDownOnTextboxClick="false" 
    Filter="StartsWith" OnSelectedIndexChanged="MessageRecepientsSelectorComboBox_OnSelectedIndexChanged" 
    AutoPostBack="true" EnableItemCaching="true"></radcontrol:RadComboBox> 

Which is inside a Load on demand RadPageView (incase that is relevant).

The ComboBox works fine for getting and matching values (names in this case) however in the SelectedIndexChanged my RadComboBox.SelectedItem is null, RadComboBox.Items.Count = 0. See below

protected void MessageRecepientsSelectorComboBox_OnItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)  
    {  
        RadComboBox recepientSelectorComboBox = (RadComboBox)sender;  
        if (!e.Text.Equals("") && e.Text.Length >= 1)  
        {  
            List<Controls_RecepientsSelectorAJAXDropDownResult> potentialRecepients = MemberContactStaticRepository.GetRecepientsForAJAXSelector(53, e.Text);  
            RadComboBoxItem currentItem = new RadComboBoxItem(); //stop re initialising var in loop  
            for(int i = 0;i < potentialRecepients.Count();i++)  
            {  
                currentItem = new RadComboBoxItem(potentialRecepients[i].UserName, potentialRecepients[i].UserID.ToString());  
                //currentItem.Attributes["ContactType"] = "User";  
                recepientSelectorComboBox.Items.Add(currentItem);  
            }  
        }  
    } 

protected void MessageRecepientsSelectorComboBox_OnSelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)  
    {  
        RadComboBox recepientBox = (RadComboBox)sender;  
        //RadComboBoxItem selectedItem = MessageRecepientsSelectorComboBox.FindItemByValue(e.Value); //finds nothing == null  
        //MessageRecepientsSelectorComboBox.Items.Count; // is 0          
        //MessageRecepientsSelectorComboBox.SelectedIndex;//returns -1       
    } 

Please note in the OnSelectedIndexChanged it is all commented out but the comments beside it tell you what happens.
I need it to have a SelectedItem so that i can access the Attributes i need to set.

Thanks in advance,
Pete
Ivana
Telerik team
 answered on 12 Sep 2012
1 answer
108 views
I would like to have a Radcomobox with load-on-demand turned on, and as the user is typing a search term in the input box of the combobox, instead of showing the results as a plain list, I would like the results to appear in a treeview. I am having a lot of difficulty in doing this.

I have gone through this forum post but it does not apply to my situation because I do not need to subscribe to nodeexpand event or nodeclick event. I need to subscribe to the combobox's itemsrequested event.

If this is too difficult, any suggestion for a similar solution will be appreciated, where as a user is typing a search term in a textbox, the results are being displayed in a treeview, but taking care to not cause a postback on every single key click (by building a small delay like the combobox does).

The error I am getting is: "Script control &#39'rtcICD9&#39; is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors(). Parameter name: scriptControl"

Here is my code:
<telerik:RadComboBox ID="ddlICD9Code" runat="server" Width="400px" MarkFirstMatch="true"
                                    AppendDataBoundItems="true" EnableLoadOnDemand="true" EnableItemCaching="true"
                                    MinFilterLength="3" ItemRequestTimeout="600"
                                    OnItemsRequested="ddlICD9Code_ItemsRequested" >
                                    <ItemTemplate>
                                        <telerik:RadTreeView runat="server" ID="rtvICD9" DataFieldID="Id" DataFieldParentID="ParentId" DataValueField="Id" DataTextField="LongName">
                                            <DataBindings>
                                                <telerik:RadTreeNodeBinding Depth="0" />
                                            </DataBindings>
                                        </telerik:RadTreeView>
                                    </ItemTemplate>
                                    <Items>
                                        <telerik:RadComboBoxItem />
                                    </Items>
                                </telerik:RadComboBox>
 
 
protected void ddlICD9Code_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
    {
        string filterString = e.Text;
 
        if (filterString.Length >= 3)
        {
            var qry = execute database query here;
 
            RadTreeView rtvICD9 = ddlICD9Code.Items[0].FindControl("rtvICD9") as RadTreeView;
            rtvICD9.DataSource = qry;
            rtvICD9.DataBind();
        }      
    }
Ivana
Telerik team
 answered on 12 Sep 2012
1 answer
99 views
I am looping to add Items to a rad tag cloud...

foreach (KeyWord kw in keyWordList)
            {
                RadTagCloudItem item = new RadTagCloudItem();
                item.Text = kw.KeyWordText;
                item.ToolTip = kw.ReturnMessageText;
                item.Value = kw.KeyWordID.ToString();
                RadTagCloud1.Items.Add(item);
            }


I have verified that during the loop the values are being set properly.

I then call a javascript function when an item is clicked:

<telerik:RadTagCloud ID="RadTagCloud1" runat="server" Skin="MetroTouch" OnClientItemClicked="KwDetail">
</telerik:RadTagCloud>



Which is executed here:

function KwDetail(sender, args) {
                var item = args.get_item();
                var toolTip = item.get_toolTip();
                var text = item.get_text();
                var items = sender.get_items();
                var value = item.get_value();
}


and the value is set to null. I would appreciate any help on this matter.


Princy
Top achievements
Rank 2
 answered on 12 Sep 2012
1 answer
96 views
I would like bind a rad chart with multiple serieses with different datasets (dtDev,dtProd, dtQA), Could tell me how to the coding?  
  


Just take blind examples as we have three dates dtDev,dtProd, dtQA.


Please healp, Thank You in Advance!




    monthlyradchartcontrole.Clear()
    Dim dtDev as dataset = nothing
    dtDev = obj.datareturn(parameters)
    
    monthlyradchartcontrole.DataSource = dtDev
        
    monthlyradchartcontrole.DataBind()
        
    monthlyradchartcontrole.Series(0).DataXColumn = "ScheduledStartDate"
    monthlyradchartcontrole.Series(0).DataYColumn = "ChamberUtilization"
        
    monthlyradchartcontrole.PlotArea.XAxis.AxisLabel.TextBlock.Text = monthlyXaxislableName
    monthlyradchartcontrole.PlotArea.XAxis.AxisLabel.Visible = True
                    monthlyradchartcontrole.PlotArea.XAxis.AxisLabel.TextBlock.Appearance.TextProperties.Color = System.Drawing.Color.Red
    monthlyradchartcontrole.PlotArea.XAxis.AxisLabel.TextBlock.Appearance.Position.Auto = True
        
    monthlyradchartcontrole.PlotArea.YAxis.AxisLabel.Visible = True
    monthlyradchartcontrole.PlotArea.YAxis.AxisLabel.TextBlock.Text = monthlyYaxislableName
                    monthlyradchartcontrole.PlotArea.YAxis.AxisLabel.TextBlock.Appearance.TextProperties.Color = System.Drawing.Color.Red
    monthlyradchartcontrole.PlotArea.YAxis.AxisLabel.TextBlock.Appearance.Position.Auto = True
        
    monthlyradchartcontrole.Legend.Visible = False




Thank You,








Evgenia
Telerik team
 answered on 12 Sep 2012
1 answer
92 views
I have a module that generates PDF files from multiple threads and I need to report the progress
(% of completion by thread). My UI looks like this:

Client Name Created By Total No. of Files Progress 
======================================================================
ABC  Murray 154 Progress Bar Control 1
CBA  Federer 504 Progress Bar Control 2  JKL  Haas 254 Progress Bar Control 3 I have tried to use RadProgressArea controls to implement this. However, I have read that the RadProgressManager handles the entire page as a whole and therefore all the RadProgressArea controls will display the same information.
Is this limitation still valid? Is there any other Telerik controls that can handle my requirement?

Thanks.
Peter Filipov
Telerik team
 answered on 12 Sep 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?