Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
196 views
hi,
I have jquery ajax code returning a json serialized string like this one:

{"":[{"serviceId":"Recording","errorDesc":"Function: BeginMonitoring();Microphone has been disconnected or is not available while trying to start record in Computer: khaled-pc","DATE_in":"02/Oct/2012","Time_in":"08:17"},{"serviceId":"Recording","errorDesc":"Function: BeginMonitoring();Microphone has been disconnected or is not available while trying to start record in Computer: khaled-pc","DATE_in":"02/Oct/2012","Time_in":"08:18"},{"serviceId":"Recording","errorDesc":"waveIn_RecordingStopped;USB microphone has been unpluged by force while microphone is recording.","DATE_in":"02/Oct/2012","Time_in":"08:20"},{"serviceId":"Recording","errorDesc":"Function: BeginMonitoring();Microphone has been disconnected or is not available while trying to start record in Computer: khaled-pc","DATE_in":"02/Oct/2012","Time_in":"08:21"},{"serviceId":"Recording","errorDesc":"Function: BeginMonitoring();Microphone has been disconnected or is not available while trying to start record in Computer: khaled-pc","DATE_in":"02/Oct/2012","Time_in":"08:21"},{"serviceId":"Recording","errorDesc":"waveIn_RecordingStopped;USB microphone has been unpluged by force while microphone is recording.","DATE_in":"02/Oct/2012","Time_in":"08:30"},{"serviceId":"Recording","errorDesc":"Function: BeginMonitoring();Microphone has been disconnected or is not available while trying to start record in Computer: khaled-pc","DATE_in":"02/Oct/2012","Time_in":"08:35"},{"serviceId":"Recording","errorDesc":"Function: BeginMonitoring();Microphone has been disconnected or is not available while trying to start record in Computer: khaled-pc","DATE_in":"02/Oct/2012","Time_in":"08:46"},{"serviceId":"Recording","errorDesc":"waveIn_RecordingStopped;USB microphone has been unpluged by force while microphone is recording.","DATE_in":"02/Oct/2012","Time_in":"09:30"},{"serviceId":"Transferring","errorDesc":"IsFileLocked Function;The file recorded in: 02/Oct/2012 at: 12:27 has been deleted or renamed from machine: khaled-pc","DATE_in":"02/Oct/2012","Time_in":"13:44"},{"serviceId":"Transferring","errorDesc":"IsFileLocked Function;The file recorded in: 02/Oct/2012 at: 13:27 has been deleted or renamed from machine: khaled-pc","DATE_in":"02/Oct/2012","Time_in":"14:44"},{"serviceId":"Transferring","errorDesc":"IsFileLocked Function;The file recorded in: 02/Oct/2012 at: 13:27 has been deleted or renamed from machine: khaled-pc","DATE_in":"02/Oct/2012","Time_in":"14:46"},{"serviceId":"Recording","errorDesc":"waveIn_RecordingStopped;USB microphone has been unpluged by force while microphone is recording.","DATE_in":"02/Oct/2012","Time_in":"16:34"},{"serviceId":"Recording","errorDesc":"waveIn_RecordingStopped;USB microphone has been unpluged by force while microphone is recording.","DATE_in":"03/Oct/2012","Time_in":"09:04"},{"serviceId":"Recording","errorDesc":"waveIn_RecordingStopped;USB microphone has been unpluged by force while microphone is recording.","DATE_in":"03/Oct/2012","Time_in":"14:15"},{"serviceId":"Recording","errorDesc":"waveIn_RecordingStopped;USB microphone has been unpluged by force while microphone is recording.","DATE_in":"03/Oct/2012","Time_in":"14:33"},{"serviceId":"Recording","errorDesc":"waveIn_RecordingStopped;USB microphone has been unpluged by force while microphone is recording.","DATE_in":"03/Oct/2012","Time_in":"14:40"},{"serviceId":"Recording","errorDesc":"waveIn_RecordingStopped;USB microphone has been unpluged by force while microphone is recording.","DATE_in":"03/Oct/2012","Time_in":"17:06"},{"serviceId":"Transferring","errorDesc":"The recorded file on: 02/Oct2012 at: 13:/O has been deleted by force, the deleted file is:LARC_1_20121002_1441.mp3","DATE_in":"03/Oct/2012","Time_in":"09:29"}]}

and I want to fill it in rad grid data source, so I am doing this:
((note my javascript code is in another .js file and I am embedding it in my aspx page))
var rdScreenings = $telerik.$("[id$='rdScreenings']").attr("id");
var rdScreenings111 = $find(rdScreenings);
var tableView1 = rdScreenings111.get_masterTableView();
tableView1.set_dataSource(res);//res is the serialized string...
tableView1.dataBind();

and this is the rad grid:
<telerik:RadGrid ID="rdScreenings" runat="server" AllowPaging="True" AllowSorting="True"
    AutoGenerateColumns="False" CssClass="ScreeningListControl" GridLines="None">
    <PagerStyle NextPageText="View more locations" />
    <MasterTableView>
        <RowIndicatorColumn>
            <HeaderStyle Width="20px" />
        </RowIndicatorColumn>
        <ExpandCollapseColumn>
            <HeaderStyle Width="20px" />
        </ExpandCollapseColumn>
        <Columns>
                                        <telerik:GridBoundColumn DataField="serviceId" HeaderText="Service Name" />
                                        <telerik:GridBoundColumn DataField="errorDesc" HeaderText="Error Description" />
                                        <telerik:GridBoundColumn DataField="DATE_in" HeaderText="Checking Date" />
                                        <telerik:GridBoundColumn DataField="Time_in" HeaderText="Checking Time" />
    </Columns>
    </MasterTableView>
    <ClientSettings>
        <ClientEvents OnCommand="RadGrid_OnCommand" />
    </ClientSettings>
</telerik:RadGrid>

when I click a button to load my rad grid, it takes some time (this time is calculated after returning the string from my server and I got sometimes error message from firefox says this script takes long time and it ask me if I want to stop it), and then I got all grid fields are empty, and paging is not working too !
please see the snapshot:
Tsvetina
Telerik team
 answered on 08 Oct 2012
4 answers
207 views
Hi ,

I am using radeditor in ribbon bar mode. I see many functionality icons like Cut,Copy, print becomes invisible on changing zoom level to something below 100% . I am using internet explorer 8.  Is there a fix for this? Please find attached the image.

Thanks,
AM
Rumen
Telerik team
 answered on 08 Oct 2012
1 answer
63 views
Hi  Guys,
I tried to find some relevant thread for my issue, but after few days without a successful information, I prefer to ask here.
        I'm developing a .NET web solution (using RadEditor for APS .NET AJAX) and I need to integrate with a "speech recognition software" component. 

After a lot of tries I've got it with the follow code:

<asp:ScriptManager ID="ScriptManager" runat="server" />
  <telerik:RadEditor ID="RadEditor1" Runat="server" Height="553px" Width="891px" ContentAreaMode="Div" Skin="Windows7" >
    <Content>
      <html> 
      </html>

    </Content>
  </telerik:RadEditor>

But also I receive a special "undefined" alert message when the page is loaded (javascript message). I have done some exercises and I know the message is originated by <html><html> tags (inside from Content tag), but without these tags the integration with the speech recognition software component doesn't work.
Can anyone help me with some tips or something for disappearing that message, or how to implement the RadEditor control including "<html></html>" tags 

Thanks in advanced
Best Regards
Felipe
Rumen
Telerik team
 answered on 08 Oct 2012
3 answers
349 views
Hello,

I would love to put the name of the series item in the label or tooltip for that item, so that it clearly identifies the item referred to.  Is that possible?

Thaks.
Marin Bratanov
Telerik team
 answered on 08 Oct 2012
1 answer
69 views
When clicking a node in the OnNodeClick server event how can we check if the node the last level/node
Princy
Top achievements
Rank 2
 answered on 08 Oct 2012
1 answer
98 views
Hello,
I have Grid with Edit mode of "EditForms". When the user clicks the edit button, it brings up an edit tree with two radio buttons with the same group name and two buttons: approve and cancel. By default, neither of the radio buttons are checked. I want to make it so that when the user clicks the approve button and neither radio button is checked, it does not close the edit form.

Here is the radgrid declaration:
<telerik:RadGrid ID="approvalGrid"  runat="server" AllowPaging="true" ShowStatusBar="true" ShowFooter="false" AllowFilteringByColumn="false" FilterItemStyle-HorizontalAlign="Center" ShowGroupPanel="false"
AutoGenerateColumns="false" PageSize="25" AllowSorting="true" AllowMultiRowSelection="false" GirdLines="Vertical" Skin="WebBlue" AlternatingItemStyle-HorizontalAlign="Center"
ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" GroupingSettings-CaseSensitive="false"  AllowAutomaticInserts="false" AllowAutomaticUpdates="false" AllowAutomaticDeletes="true" OnItemCommand="approvalGrid_ItemCommand"
OnNeedDataSource="approvalGrid_NeedDataSource" OnItemDataBound="approvalGrid_ItemDataBound" Width="1080" EnableLinqExpressions="false">

Here is the edit form:
<EditFormSettings CaptionFormatString=" Approve ID #{0}" CaptionDataField="ID" EditFormType="Template">
<PopUpSettings Modal="false" Width="550px" />
<FormTemplate >
<asp:Label ID="ApprovalWindowError" runat="server" Font-Bold="true" Font-Size="Large" Font-Underline="true" ForeColor="#990000" /<fieldset>
<legend><asp:Label ID="editLabel" runat="server" Text="Select A Location" Font-Bold="true" Font-Size="Medium"></asp:Label> </legend>
<table>                                                           
<tr>
<td align="left">
   Original Location:
</td>                                                               
<td align="left">
<telerik:RadButton ID="SendToOrig" runat="server" ButtonType="ToggleButton" ToggleType="Radio" GroupName="ApproveGroup" Text='<%#Bind("OrigLocation") %>'>
   </telerik:RadButton>
</td>
</tr>
<tr>
<td align="left">
Receiving Location:
 </td>                                                                                                                                 
<td align="left">                                                                   
<telerik:RadButton ID="SendToLocation" runat="server" ButtonType="ToggleButton" ToggleType="Radio" GroupName="ApproveGroup" Text='<%#Bind("Location") %>'>
</telerik:RadButton>                                                               
</td>
</tr>
   </table>
   <table>
<tr>
<td align="right">                                                                   
<telerik:RadButton ID="approveButton" runat="server" Text="Approve" Font-Bold="true" CommandName="Update"></telerik:RadButton>
<telerik:RadButton ID="cancelButton" runat="server" Text="Cancel" Font-Bold="true" CommandName="Cancel"></telerik:RadButton>
</td>
</tr>
</table>
</fieldset>                                                       
</FormTemplate>
</EditFormSettings>

here is the code for the approveButton:
protected void approvalGrid_ItemCommand(object sender, GridCommandEventArgs e)
    {
         
        if (e.CommandName == "Update")
        {                           
            GridEditableItem item = e.Item as GridEditableItem;
            //checks if at least one radio is pushed
            if ((item.FindControl("SendToOrig") as RadButton).Checked || (item.FindControl("SendToLocation") as RadButton).Checked)
            {
                if ((item.FindControl("SendToOrig") as RadButton).Checked)
                {
                    successLabel.Text = "Adjustment Approved For Original Location";                                      
                }
                else
                {
                    successLabel.Text = "Adjustment Approved For Receiving Location";
                }
            }
            //if neither radios are pushed
            else
            {
                errorLabel.Text = "Approval Failed: You Did Not Select A Location";
            }
        }
        if (e.CommandName == "Cancel")
        {
            errorLabel.Text = "Approval Canceled";
        }
    }

Thanks,
Justin
Slav
Telerik team
 answered on 08 Oct 2012
1 answer
89 views
i added a Radmenu in my asp.net image. instead of default text for menu, i added images. but i am seeing a border of real menu around image. i am not getting 2 menu items close together. a screenshot is attached. please give me a solution how to remove this border
Boyan Dimitrov
Telerik team
 answered on 08 Oct 2012
3 answers
255 views
Hi there,
I need to bind the listitems into the GridDropdownColumn in edit mode where my grid also bind data from DataTable.I have seen so many examples and all of them gave the solution with GridTemplateColumn..I cant understand is there is a only way for showing dropdownlist in edit mode????..If it is then what is the use of GridDropdownColumn and how can i bind list of items into it without using GridTemplateColumn..
Shinu
Top achievements
Rank 2
 answered on 08 Oct 2012
1 answer
173 views
I have multiple comboBoxes all with checkboxes. What I want to do is pass the checkedItems (multiple) of a comboBox as a parameter value for a stored procedure.

The way the stored procedure is built, having a separator of "+" would work when more than one checkbox is checked. (I have Display All Input set to true). However the separator by default is ",".

Is there any way of changing the separator that appears when more than one checkbox is checked within a comboBox?

If not, how do I append a "+" sign onto the end of each item when it is checked, basically it would be to convert the checkedItems to a "+" delimited list and send them as parameters that way.

cmd.Parameter.AddWithValue("@ID_SYSTEM", ID_SYSTEM);

I want to be able to pass more than just one instance of @ID_SYSTEM as a parameter value for a stored procedure.
Kalina
Telerik team
 answered on 08 Oct 2012
1 answer
48 views
Hello,

I want to make the the td elements to go behind the header. I've attached an image indicating what I want to do:

 http://postimage.org/image/brvww4a3b/


Galin
Telerik team
 answered on 08 Oct 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?