Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
78 views

 

Hello,

Upon selecting an item from a dropdown, two rad popup windows are opened

Both the window opens the same page

Upon clicking Cancel button in the popup only one window should be closed intead of both

Is there any workaround available?

Thank you

Regards
Raj
Tsvetina
Telerik team
 answered on 28 Jan 2011
2 answers
90 views
Hi,

I am trying to upgrade an existing application from various very old versions of Telerik controls to the latest.  I have the following Javascript function that gives me the "Object doesn't support this property or method".

var combo = <%= RadComboBox1.ClientID %>;
    var userControlId = '<%= ID %>';
    var selectionSetUrl = "../SelectionSets/NetworkSet.aspx";
    var selectionSetType = '<%= Fox.Fbc.Rds.RdsWeb.Interfaces.SelectionSetTypeCode.NET.ToString() %>';
      
    EditSelectionSetInModalDialogHelper(selectionSetUrl, selectionSetType, userControlId, combo.GetText());

According to the documentation GetText is supposed to be replaced with get_text.  So, I replace the last line with this one:

EditSelectionSetInModalDialogHelper(selectionSetUrl, selectionSetType, userControlId, combo.get_text());

And still get the same error. 

Please help.

Thanks,
Olga

Kalina
Telerik team
 answered on 28 Jan 2011
1 answer
104 views
So I have an radgrid, which is grouping by Month,Year.
I want to display information for each month on a separate page.
I attached file.
 How i can achieve this. My code is looking like this


    <telerik:RadGrid ID="rgMatches" runat="server" AutoGenerateColumns="False" ShowGroupPanel="True" PageSize="1">
        <MasterTableView AllowSorting="true">
            <RowIndicatorColumn>
                <HeaderStyle Width="20px"></HeaderStyle>
            </RowIndicatorColumn>
            <ExpandCollapseColumn>
                <HeaderStyle Width="20px"></HeaderStyle>
            </ExpandCollapseColumn>
            <Columns>
                <telerik:GridTemplateColumn UniqueName="OrgDetails" HeaderText="REC" SortExpression="fldOrgName">
                    <ItemTemplate>
                        <div id="divRecInfo">
                            <asp:Label ID="lblRecInfo" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "fldOrgName")%>'></asp:Label>&nbsp;&nbsp;<img
                                id="imgRecInfo" runat="server" src="../icons/magnifier.png" alt="Hover over for REC Address"
                                style="margin: auto;" />
                        </div>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridBoundColumn DataField="FldMeetingReference" HeaderText="Meeting Reference"
                    SortExpression="FldMeetingReference" UniqueName="FldMeetingReference">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="FldMeetingTitle" HeaderText="Title" SortExpression="FldMeetingTitle"
                    UniqueName="FldMeetingTitle">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="FldMeetingcutoffdate" DataType="System.DateTime"
                    HeaderText="Cutoff Date" SortExpression="FldMeetingcutoffdate" UniqueName="FldMeetingcutoffdate"
                    DataFormatString="{0:d}">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="FldMeetingstartDate" DataType="System.DateTime"
                    HeaderText="Meeting Date" SortExpression="FldMeetingstartDate" UniqueName="FldMeetingstartDate">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="SlotCount" DataType="System.Int32" HeaderText="Slots Left"
                    ReadOnly="True" SortExpression="SlotCount" UniqueName="SlotCount">
                </telerik:GridBoundColumn>       
            </Columns>
            <GroupByExpressions>
                <telerik:GridGroupByExpression>
                    <GroupByFields>
                        <telerik:GridGroupByField FieldName="GroupDateYear" HeaderText="Submission Closing Date Year"
                            SortOrder="Ascending" />
                        <telerik:GridGroupByField FieldName="GroupDateMonth" HeaderText="Submission Closing Date Month"
                            SortOrder="Ascending" />
                    </GroupByFields>
                    <SelectFields>
                        <telerik:GridGroupByField FieldName="GroupDateYear" HeaderText="Submission Closing Date Year" />
                        <telerik:GridGroupByField FieldName="GroupDateMonthName" HeaderText="Submission Closing Date Month" />
                    </SelectFields>
                </telerik:GridGroupByExpression>
            </GroupByExpressions>
            <SortExpressions>
                <telerik:GridSortExpression FieldName="GroupDateMonth" SortOrder="Ascending" />
                <telerik:GridSortExpression FieldName="FldMeetingstartDate" SortOrder="Ascending" />
            </SortExpressions>
        </MasterTableView>
        <GroupingSettings CaseSensitive="False" ShowUnGroupButton="True" />
        <ClientSettings AllowDragToGroup="True">
        </ClientSettings>
    </telerik:RadGrid>
Tsvetoslav
Telerik team
 answered on 28 Jan 2011
7 answers
176 views
Hi,

I am using radgrid and also nestedviewtemplate into radgrid. i am using export to PDF and EXCEL. but exporting only grid values not nested template value. i want to export nestedview template also.

Please see the attached the image. please give me solution for this issues.


Thanks,
Dhamu.
Princy
Top achievements
Rank 2
 answered on 28 Jan 2011
1 answer
99 views
Could you send me sample code to expand the column width to 300 for a nested edit form?

There is a master table and one child table / detail table.

Thanks,
jg
Princy
Top achievements
Rank 2
 answered on 28 Jan 2011
1 answer
182 views
Hi,
I am trying to hide and show RadComboBox.
But this code doesn't seem to be working. I checked in IE and FireFox. Thank you.





$
.ajax({  
            url
: applicationPath + "/test/Test.svc/GetResultById",  
            type
: "POST",  
            dataType
: "json",  
            data
: '{"sId":' + sender.get_value() + '}',  
            contentType
: "application/json; charset=utf-8",  
            success
: function(result)  
             
{  
                 
var combo = "<%= RadComboBox1.ClientID %>"); 
 
                 
if(result.d == false)  
                 
{  
 
                    combo
.hideDropDown();  
                 
}  
                 
else 
                 
{ 
                    combo
.showDropDown(); 
                 
} 
             
}        
nav100
Top achievements
Rank 1
 answered on 27 Jan 2011
1 answer
96 views

in my button click event i have:

StringBuilder strTXTFileBuilder = new StringBuilder();
Response.Clear();
Response.AddHeader("content-disposition", "attachment;filename="ExportResult.txt");
Response.Charset = "";
strTXTFileBuilder.Append ("FirstItem:")...... // code to populate the stringbuilder
Response.ContentType = "application/vnd.text";
StringWriter stringWrite = new StringWriter();
HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWrite);
Response.Write(strTXTFileBuilder.ToString());
Response.End();

it works without RadAjaxLoadingPanel. Once I put onto the page a RadAjaxLoadingPanel, when i click on the button again i get error:
Line: 6
Error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
Details: Error parsing near '


any idea what am i doing wrong? please help
thanks in advance
Daniel
Telerik team
 answered on 27 Jan 2011
0 answers
148 views

Hi,

I am trying to hide and show RadComboBox. I am using .hideDropDown() but it doesn't work. What could be an issue?

$.ajax({ 
            url
: applicationPath + "/test/Test.svc/GetResultById", 
            type
: "POST", 
            dataType
: "json", 
            data
: '{"sId":' + sender.get_value() + '}', 
            contentType
: "application/json; charset=utf-8", 
            success
: function(result) 
             
{ 
                 
if(result.d == false) 
                 
{ 
                  

 

                           var combo = "<%= RadComboBox1.ClientID %>");

                    combo.hideDropdown(); 
                 
} 
             
}          

nav100
Top achievements
Rank 1
 asked on 27 Jan 2011
3 answers
83 views
The bounds.x and bounds.y values for a radWindow are usually incorrect in onDragEnd event handler. Sometimes they are wildly off, sometimes by just a bit, sometimes they go up when I move the window closer to the top/left, sometimes they go down. There doesn't seem to be any logic in why they are off, or by how much, but 99.9% of the time they are incorrect. They only time they actually seem correct is when the window is first displayed, before it is actually moved.

Anyone else have this problem? Any fix for it?
Tracy Dryden
Top achievements
Rank 1
 answered on 27 Jan 2011
6 answers
105 views

I have a user control that I use for editing / inserting records for the radgrid.  Within that user control there is a radcombobox.  But, when I try to retrieve the selectedvalue like so:    locationTypeCode = rcmLocationType.SelectedValue, it returns null. Why is that?  the next line below is retrieving the value from a radtextbox like locationName = rtbLocationName.Text,  which works fine.  so, is there a bug with the combobox?  I CAN retrieve the selected TEXT like this:  rcmLocationType.Text, but I do not want the text, I want the selected value.  So what is the workaround or code to access the selected value in the combobox?

thanks.

Veli
Telerik team
 answered on 27 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?