Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
88 views
I have a treeview that when expanded, has long lines of text that wrap. That part is fine, what isn't working are the images that represent the vertical lines that connect items of the same level. As you can see with the attached screenshot, the height of the image isn't expanding to accommodate the height of the text. Below is the resultant HTML. Any suggestions or feedback?

<div id="main_2_leftTreeNav" class="hlLeftNav">
 
    <span class="heading">Categories</span>
    <a href="#main_2_treeKeywords_SkipLink"><img alt="Skip Navigation Links." src="/WebResource.axd?d=Se4nLfC3oQ1xFK3Wn1Pwy_biSWKKaAo9fbqY_-q1-DyYumtIJkxkclhQRNITdeq5n_utZBYJbFbOP0uM3Z94pucNk_DRXYCuXiX14LIwE5U1&t=634896662120000000" width="0" height="0" style="border-width:0px;" /></a><div id="main_2_treeKeywords" style="white-space:normal">
<table cellpadding="0" cellspacing="0" style="border-width:0;">
    <tr>
        <td><a id="main_2_treeKeywordsn0" href="javascript:TreeView_ToggleNode(main_2_treeKeywords_Data,0,document.getElementById('main_2_treeKeywordsn0'),'r',document.getElementById('main_2_treeKeywordsn0Nodes'))"><img src="/WebResource.axd?d=oWpXZ5j0UW-ie9pAuhz58ZUOTVNUJ18c0VxYXZ19Bij_1RK44f-lNHRTW5wITWK8DSd9N7LLmcFqaZb-ogv7zmisPnd3oYg48lQHB-GgyZjOEwLUxIcVoBV_2pEvu9_X0&t=634896662120000000" alt="Expand Codes and Standards (1)" style="border-width:0;" /></a></td><td><a href="javascript: void(0);" id="main_2_treeKeywordst0" style="text-decoration:none;">Codes and Standards (1)</a></td>
    </tr>
</table><div id="main_2_treeKeywordsn0Nodes" style="display:none;">
    <table cellpadding="0" cellspacing="0" style="border-width:0;">
        <tr>
            <td><div style="width:20px;height:1px"><img src="/WebResource.axd?d=MNCBYQFSVGnhmQQF2-M1qyZHbZKdij3t1OXlU2kyLaEJS3bgk969yoXks1PGLEbh8rHwsU-s38pZc24JAli6oZEyMB3ZiKimIsDb-f7gT_lfEotXCGqfEDLWiaoiB-II0&t=634896662120000000" alt="" /></div></td><td><img src="/WebResource.axd?d=orxpVU0Q57-O70FimBbmSDt7ezhSMgBO2rENkBbcA-l-amC1PmJgJweyDC7-OW-XvZffSZU52f5RsvwNaNWqGV5G5TO7Wka4IwM9gYSI-Fycam-kG4VUp8G7SxmdT1Rv0&t=634896662120000000" alt="" /></td><td><a href="/search_results?searchStr=supplement&keyword=Building+Construction+(Committees)|Amending+materials" id="main_2_treeKeywordst1" style="text-decoration:none;">Amending materials</a></td>
        </tr>
    </table><table cellpadding="0" cellspacing="0" style="border-width:0;">
        <tr>
            <td><div style="width:20px;height:1px"><img src="/WebResource.axd?d=MNCBYQFSVGnhmQQF2-M1qyZHbZKdij3t1OXlU2kyLaEJS3bgk969yoXks1PGLEbh8rHwsU-s38pZc24JAli6oZEyMB3ZiKimIsDb-f7gT_lfEotXCGqfEDLWiaoiB-II0&t=634896662120000000" alt="" /></div></td><td><img src="/WebResource.axd?d=orxpVU0Q57-O70FimBbmSDt7ezhSMgBO2rENkBbcA-l-amC1PmJgJweyDC7-OW-XvZffSZU52f5RsvwNaNWqGV5G5TO7Wka4IwM9gYSI-Fycam-kG4VUp8G7SxmdT1Rv0&t=634896662120000000" alt="" /></td><td><a href="/search_results?searchStr=supplement&keyword=Building+Construction+(Committees)|Building+Construction+(Committees)" id="main_2_treeKeywordst2" style="text-decoration:none;">Building Construction (Committees)</a></td>
        </tr>
    </table><table cellpadding="0" cellspacing="0" style="border-width:0;">
        <tr>
            <td><div style="width:20px;height:1px"><img src="/WebResource.axd?d=MNCBYQFSVGnhmQQF2-M1qyZHbZKdij3t1OXlU2kyLaEJS3bgk969yoXks1PGLEbh8rHwsU-s38pZc24JAli6oZEyMB3ZiKimIsDb-f7gT_lfEotXCGqfEDLWiaoiB-II0&t=634896662120000000" alt="" /></div></td><td><img src="/WebResource.axd?d=orxpVU0Q57-O70FimBbmSDt7ezhSMgBO2rENkBbcA-l-amC1PmJgJweyDC7-OW-XvZffSZU52f5RsvwNaNWqGV5G5TO7Wka4IwM9gYSI-Fycam-kG4VUp8G7SxmdT1Rv0&t=634896662120000000" alt="" /></td><td><a href="/search_results?searchStr=supplement&keyword=Building+Construction+(Committees)|Codes+and+Standards" id="main_2_treeKeywordst3" style="text-decoration:none;">Codes and Standards</a></td>
        </tr>
    </table><table cellpadding="0" cellspacing="0" style="border-width:0;">
        <tr>
            <td><div style="width:20px;height:1px"><img src="/WebResource.axd?d=MNCBYQFSVGnhmQQF2-M1qyZHbZKdij3t1OXlU2kyLaEJS3bgk969yoXks1PGLEbh8rHwsU-s38pZc24JAli6oZEyMB3ZiKimIsDb-f7gT_lfEotXCGqfEDLWiaoiB-II0&t=634896662120000000" alt="" /></div></td><td><img src="/WebResource.axd?d=orxpVU0Q57-O70FimBbmSDt7ezhSMgBO2rENkBbcA-l-amC1PmJgJweyDC7-OW-XvZffSZU52f5RsvwNaNWqGV5G5TO7Wka4IwM9gYSI-Fycam-kG4VUp8G7SxmdT1Rv0&t=634896662120000000" alt="" /></td><td><a href="/search_results?searchStr=supplement&keyword=Building+Construction+(Committees)|Comments" id="main_2_treeKeywordst4" style="text-decoration:none;">Comments</a></td>
        </tr>
    </table><table cellpadding="0" cellspacing="0" style="border-width:0;">
        <tr>
            <td><div style="width:20px;height:1px"><img src="/WebResource.axd?d=MNCBYQFSVGnhmQQF2-M1qyZHbZKdij3t1OXlU2kyLaEJS3bgk969yoXks1PGLEbh8rHwsU-s38pZc24JAli6oZEyMB3ZiKimIsDb-f7gT_lfEotXCGqfEDLWiaoiB-II0&t=634896662120000000" alt="" /></div></td><td><img src="/WebResource.axd?d=orxpVU0Q57-O70FimBbmSDt7ezhSMgBO2rENkBbcA-l-amC1PmJgJweyDC7-OW-XvZffSZU52f5RsvwNaNWqGV5G5TO7Wka4IwM9gYSI-Fycam-kG4VUp8G7SxmdT1Rv0&t=634896662120000000" alt="" /></td><td><a href="/search_results?searchStr=supplement&keyword=Building+Construction+(Committees)|FI" id="main_2_treeKeywordst5" style="text-decoration:none;">FI</a></td>
        </tr>
    </table><table cellpadding="0" cellspacing="0" style="border-width:0;">
        <tr>
            <td><div style="width:20px;height:1px"><img src="/WebResource.axd?d=MNCBYQFSVGnhmQQF2-M1qyZHbZKdij3t1OXlU2kyLaEJS3bgk969yoXks1PGLEbh8rHwsU-s38pZc24JAli6oZEyMB3ZiKimIsDb-f7gT_lfEotXCGqfEDLWiaoiB-II0&t=634896662120000000" alt="" /></div></td><td><img src="/WebResource.axd?d=orxpVU0Q57-O70FimBbmSDt7ezhSMgBO2rENkBbcA-l-amC1PmJgJweyDC7-OW-XvZffSZU52f5RsvwNaNWqGV5G5TO7Wka4IwM9gYSI-Fycam-kG4VUp8G7SxmdT1Rv0&t=634896662120000000" alt="" /></td><td><a href="/search_results?searchStr=supplement&keyword=Building+Construction+(Committees)|Meeting+minutes" id="main_2_treeKeywordst6" style="text-decoration:none;">Meeting minutes</a></td>
        </tr>
    </table><table cellpadding="0" cellspacing="0" style="border-width:0;">
        <tr>
            <td><div style="width:20px;height:1px"><img src="/WebResource.axd?d=MNCBYQFSVGnhmQQF2-M1qyZHbZKdij3t1OXlU2kyLaEJS3bgk969yoXks1PGLEbh8rHwsU-s38pZc24JAli6oZEyMB3ZiKimIsDb-f7gT_lfEotXCGqfEDLWiaoiB-II0&t=634896662120000000" alt="" /></div></td><td><img src="/WebResource.axd?d=orxpVU0Q57-O70FimBbmSDt7ezhSMgBO2rENkBbcA-l-amC1PmJgJweyDC7-OW-XvZffSZU52f5RsvwNaNWqGV5G5TO7Wka4IwM9gYSI-Fycam-kG4VUp8G7SxmdT1Rv0&t=634896662120000000" alt="" /></td><td><a href="/search_results?searchStr=supplement&keyword=Building+Construction+(Committees)|Meetings" id="main_2_treeKeywordst7" style="text-decoration:none;">Meetings</a></td>
        </tr>
    </table><table cellpadding="0" cellspacing="0" style="border-width:0;">
        <tr>
            <td><div style="width:20px;height:1px"><img src="/WebResource.axd?d=MNCBYQFSVGnhmQQF2-M1qyZHbZKdij3t1OXlU2kyLaEJS3bgk969yoXks1PGLEbh8rHwsU-s38pZc24JAli6oZEyMB3ZiKimIsDb-f7gT_lfEotXCGqfEDLWiaoiB-II0&t=634896662120000000" alt="" /></div></td><td><img src="/WebResource.axd?d=orxpVU0Q57-O70FimBbmSDt7ezhSMgBO2rENkBbcA-l-amC1PmJgJweyDC7-OW-XvZffSZU52f5RsvwNaNWqGV5G5TO7Wka4IwM9gYSI-Fycam-kG4VUp8G7SxmdT1Rv0&t=634896662120000000" alt="" /></td><td><a href="/search_results?searchStr=supplement&keyword=Building+Construction+(Committees)|NFPA+220+Standard+on+Types+of+Building+Construction" id="main_2_treeKeywordst8" style="text-decoration:none;">NFPA 220 Standard on Types of Building Construction</a></td>
        </tr>
    </table><table cellpadding="0" cellspacing="0" style="border-width:0;">
        <tr>
            <td><div style="width:20px;height:1px"><img src="/WebResource.axd?d=MNCBYQFSVGnhmQQF2-M1qyZHbZKdij3t1OXlU2kyLaEJS3bgk969yoXks1PGLEbh8rHwsU-s38pZc24JAli6oZEyMB3ZiKimIsDb-f7gT_lfEotXCGqfEDLWiaoiB-II0&t=634896662120000000" alt="" /></div></td><td><img src="/WebResource.axd?d=orxpVU0Q57-O70FimBbmSDt7ezhSMgBO2rENkBbcA-l-amC1PmJgJweyDC7-OW-XvZffSZU52f5RsvwNaNWqGV5G5TO7Wka4IwM9gYSI-Fycam-kG4VUp8G7SxmdT1Rv0&t=634896662120000000" alt="" /></td><td><a href="/search_results?searchStr=supplement&keyword=Building+Construction+(Committees)|NFPA+5000+Building+Construction+and+Safety+Code" id="main_2_treeKeywordst9" style="text-decoration:none;">NFPA 5000 Building Construction and Safety Code</a></td>
        </tr>
    </table><table cellpadding="0" cellspacing="0" style="border-width:0;">
        <tr>
            <td><div style="width:20px;height:1px"><img src="/WebResource.axd?d=MNCBYQFSVGnhmQQF2-M1qyZHbZKdij3t1OXlU2kyLaEJS3bgk969yoXks1PGLEbh8rHwsU-s38pZc24JAli6oZEyMB3ZiKimIsDb-f7gT_lfEotXCGqfEDLWiaoiB-II0&t=634896662120000000" alt="" /></div></td><td><img src="/WebResource.axd?d=orxpVU0Q57-O70FimBbmSDt7ezhSMgBO2rENkBbcA-l-amC1PmJgJweyDC7-OW-XvZffSZU52f5RsvwNaNWqGV5G5TO7Wka4IwM9gYSI-Fycam-kG4VUp8G7SxmdT1Rv0&t=634896662120000000" alt="" /></td><td><a href="/search_results?searchStr=supplement&keyword=Building+Construction+(Committees)|NFPA+90A+Standard+for+the+Installation+of+Air-Conditioning+and+Ventilating+Systems" id="main_2_treeKeywordst10" style="text-decoration:none;">NFPA 90A Standard for the Installation of Air-Conditioning and Ventilating Systems</a></td>
        </tr>
    </table><table cellpadding="0" cellspacing="0" style="border-width:0;">
        <tr>
            <td><div style="width:20px;height:1px"><img src="/WebResource.axd?d=MNCBYQFSVGnhmQQF2-M1qyZHbZKdij3t1OXlU2kyLaEJS3bgk969yoXks1PGLEbh8rHwsU-s38pZc24JAli6oZEyMB3ZiKimIsDb-f7gT_lfEotXCGqfEDLWiaoiB-II0&t=634896662120000000" alt="" /></div></td><td><img src="/WebResource.axd?d=orxpVU0Q57-O70FimBbmSDt7ezhSMgBO2rENkBbcA-l-amC1PmJgJweyDC7-OW-XvZffSZU52f5RsvwNaNWqGV5G5TO7Wka4IwM9gYSI-Fycam-kG4VUp8G7SxmdT1Rv0&t=634896662120000000" alt="" /></td><td><a href="/search_results?searchStr=supplement&keyword=Building+Construction+(Committees)|Proposals" id="main_2_treeKeywordst11" style="text-decoration:none;">Proposals</a></td>
        </tr>
    </table><table cellpadding="0" cellspacing="0" style="border-width:0;">
        <tr>
            <td><div style="width:20px;height:1px"><img src="/WebResource.axd?d=MNCBYQFSVGnhmQQF2-M1qyZHbZKdij3t1OXlU2kyLaEJS3bgk969yoXks1PGLEbh8rHwsU-s38pZc24JAli6oZEyMB3ZiKimIsDb-f7gT_lfEotXCGqfEDLWiaoiB-II0&t=634896662120000000" alt="" /></div></td><td><img src="/WebResource.axd?d=orxpVU0Q57-O70FimBbmSDt7ezhSMgBO2rENkBbcA-l-amC1PmJgJweyDC7-OW-XvZffSZU52f5RsvwNaNWqGV5G5TO7Wka4IwM9gYSI-Fycam-kG4VUp8G7SxmdT1Rv0&t=634896662120000000" alt="" /></td><td><a href="/search_results?searchStr=supplement&keyword=Building+Construction+(Committees)|ROC" id="main_2_treeKeywordst12" style="text-decoration:none;">ROC</a></td>
        </tr>
    </table><table cellpadding="0" cellspacing="0" style="border-width:0;">
        <tr>
            <td><div style="width:20px;height:1px"><img src="/WebResource.axd?d=MNCBYQFSVGnhmQQF2-M1qyZHbZKdij3t1OXlU2kyLaEJS3bgk969yoXks1PGLEbh8rHwsU-s38pZc24JAli6oZEyMB3ZiKimIsDb-f7gT_lfEotXCGqfEDLWiaoiB-II0&t=634896662120000000" alt="" /></div></td><td><img src="/WebResource.axd?d=orxpVU0Q57-O70FimBbmSDt7ezhSMgBO2rENkBbcA-l-amC1PmJgJweyDC7-OW-XvZffSZU52f5RsvwNaNWqGV5G5TO7Wka4IwM9gYSI-Fycam-kG4VUp8G7SxmdT1Rv0&t=634896662120000000" alt="" /></td><td><a href="/search_results?searchStr=supplement&keyword=Building+Construction+(Committees)|Task+groups" id="main_2_treeKeywordst13" style="text-decoration:none;">Task groups</a></td>
        </tr>
    </table><table cellpadding="0" cellspacing="0" style="border-width:0;">
        <tr>
            <td><div style="width:20px;height:1px"><img src="/WebResource.axd?d=MNCBYQFSVGnhmQQF2-M1qyZHbZKdij3t1OXlU2kyLaEJS3bgk969yoXks1PGLEbh8rHwsU-s38pZc24JAli6oZEyMB3ZiKimIsDb-f7gT_lfEotXCGqfEDLWiaoiB-II0&t=634896662120000000" alt="" /></div></td><td><img src="/WebResource.axd?d=orxpVU0Q57-O70FimBbmSDt7ezhSMgBO2rENkBbcA-l-amC1PmJgJweyDC7-OW-XvZffSZU52f5RsvwNaNWqGV5G5TO7Wka4IwM9gYSI-Fycam-kG4VUp8G7SxmdT1Rv0&t=634896662120000000" alt="" /></td><td><a href="/search_results?searchStr=supplement&keyword=Building+Construction+(Committees)|Technical+committees" id="main_2_treeKeywordst14" style="text-decoration:none;">Technical committees</a></td>
        </tr>
    </table><table cellpadding="0" cellspacing="0" style="border-width:0;">
        <tr>
            <td><div style="width:20px;height:1px"><img src="/WebResource.axd?d=MNCBYQFSVGnhmQQF2-M1qyZHbZKdij3t1OXlU2kyLaEJS3bgk969yoXks1PGLEbh8rHwsU-s38pZc24JAli6oZEyMB3ZiKimIsDb-f7gT_lfEotXCGqfEDLWiaoiB-II0&t=634896662120000000" alt="" /></div></td><td><img src="/WebResource.axd?d=9seEl8Xn49eY692Z98fN3Cg7sBxxLaMr4wmXwy4LHH1L3wcXlVDO6IVRpwa82AGo0-2bDSURlkjpvhg1J5sOco_IEaJApIbmxYclN6lcYKvr4ygE_I0dM4YxG3YPgdbm0&t=634896662120000000" alt="" /></td><td><a href="/search_results?searchStr=supplement&keyword=Building+Construction+(Committees)|TIA" id="main_2_treeKeywordst15" style="text-decoration:none;">TIA</a></td>
        </tr>
    </table>
</div><table cellpadding="0" cellspacing="0" style="border-width:0;">
    <tr>
        <td><a id="main_2_treeKeywordsn16" href="javascript:TreeView_ToggleNode(main_2_treeKeywords_Data,16,document.getElementById('main_2_treeKeywordsn16'),'t',document.getElementById('main_2_treeKeywordsn16Nodes'))"><img src="/WebResource.axd?d=XR8-rAvbKRTf8GHfSCcnUbrpRlMu5m4iL8WJVW7pppENaNwAbt75tLXqFPpIE8CGOMXrkPmmltsT7x-BbfH_5xjpw2IBq872Imi8rXM6hU_mBaszBclqfqzoK7-FgPh50&t=634896662120000000" alt="Expand Geographic (1)" style="border-width:0;" /></a></td><td><a href="javascript: void(0);" id="main_2_treeKeywordst16" style="text-decoration:none;">Geographic (1)</a></td>
    </tr>
</table><div id="main_2_treeKeywordsn16Nodes" style="display:none;">
    <table cellpadding="0" cellspacing="0" style="border-width:0;">
        <tr>
            <td><div style="width:20px;height:1px"><img src="/WebResource.axd?d=MNCBYQFSVGnhmQQF2-M1qyZHbZKdij3t1OXlU2kyLaEJS3bgk969yoXks1PGLEbh8rHwsU-s38pZc24JAli6oZEyMB3ZiKimIsDb-f7gT_lfEotXCGqfEDLWiaoiB-II0&t=634896662120000000" alt="" /></div></td><td><img src="/WebResource.axd?d=9seEl8Xn49eY692Z98fN3Cg7sBxxLaMr4wmXwy4LHH1L3wcXlVDO6IVRpwa82AGo0-2bDSURlkjpvhg1J5sOco_IEaJApIbmxYclN6lcYKvr4ygE_I0dM4YxG3YPgdbm0&t=634896662120000000" alt="" /></td><td><a href="/search_results?searchStr=supplement&keyword=Building+Construction+(Committees)|Regional" id="main_2_treeKeywordst17" style="text-decoration:none;">Regional</a></td>
        </tr>
    </table>
</div><table cellpadding="0" cellspacing="0" style="border-width:0;">
    <tr>
        <td><a id="main_2_treeKeywordsn18" href="javascript:TreeView_ToggleNode(main_2_treeKeywords_Data,18,document.getElementById('main_2_treeKeywordsn18'),'t',document.getElementById('main_2_treeKeywordsn18Nodes'))"><img src="/WebResource.axd?d=XR8-rAvbKRTf8GHfSCcnUbrpRlMu5m4iL8WJVW7pppENaNwAbt75tLXqFPpIE8CGOMXrkPmmltsT7x-BbfH_5xjpw2IBq872Imi8rXM6hU_mBaszBclqfqzoK7-FgPh50&t=634896662120000000" alt="Expand News and information (1)" style="border-width:0;" /></a></td><td><a href="javascript: void(0);" id="main_2_treeKeywordst18" style="text-decoration:none;">News and information (1)</a></td>
    </tr>
</table><div id="main_2_treeKeywordsn18Nodes" style="display:none;">
    <table cellpadding="0" cellspacing="0" style="border-width:0;">
        <tr>
            <td><div style="width:20px;height:1px"><img src="/WebResource.axd?d=MNCBYQFSVGnhmQQF2-M1qyZHbZKdij3t1OXlU2kyLaEJS3bgk969yoXks1PGLEbh8rHwsU-s38pZc24JAli6oZEyMB3ZiKimIsDb-f7gT_lfEotXCGqfEDLWiaoiB-II0&t=634896662120000000" alt="" /></div></td><td><img src="/WebResource.axd?d=orxpVU0Q57-O70FimBbmSDt7ezhSMgBO2rENkBbcA-l-amC1PmJgJweyDC7-OW-XvZffSZU52f5RsvwNaNWqGV5G5TO7Wka4IwM9gYSI-Fycam-kG4VUp8G7SxmdT1Rv0&t=634896662120000000" alt="" /></td><td><a href="/search_results?searchStr=supplement&keyword=Building+Construction+(Committees)|Newsletters" id="main_2_treeKeywordst19" style="text-decoration:none;">Newsletters</a></td>
        </tr>
    </table><table cellpadding="0" cellspacing="0" style="border-width:0;">
        <tr>
            <td><div style="width:20px;height:1px"><img src="/WebResource.axd?d=MNCBYQFSVGnhmQQF2-M1qyZHbZKdij3t1OXlU2kyLaEJS3bgk969yoXks1PGLEbh8rHwsU-s38pZc24JAli6oZEyMB3ZiKimIsDb-f7gT_lfEotXCGqfEDLWiaoiB-II0&t=634896662120000000" alt="" /></div></td><td><img src="/WebResource.axd?d=orxpVU0Q57-O70FimBbmSDt7ezhSMgBO2rENkBbcA-l-amC1PmJgJweyDC7-OW-XvZffSZU52f5RsvwNaNWqGV5G5TO7Wka4IwM9gYSI-Fycam-kG4VUp8G7SxmdT1Rv0&t=634896662120000000" alt="" /></td><td><a href="/search_results?searchStr=supplement&keyword=Building+Construction+(Committees)|Publications" id="main_2_treeKeywordst20" style="text-decoration:none;">Publications</a></td>
        </tr>
    </table><table cellpadding="0" cellspacing="0" style="border-width:0;">
        <tr>
            <td><div style="width:20px;height:1px"><img src="/WebResource.axd?d=MNCBYQFSVGnhmQQF2-M1qyZHbZKdij3t1OXlU2kyLaEJS3bgk969yoXks1PGLEbh8rHwsU-s38pZc24JAli6oZEyMB3ZiKimIsDb-f7gT_lfEotXCGqfEDLWiaoiB-II0&t=634896662120000000" alt="" /></div></td><td><img src="/WebResource.axd?d=9seEl8Xn49eY692Z98fN3Cg7sBxxLaMr4wmXwy4LHH1L3wcXlVDO6IVRpwa82AGo0-2bDSURlkjpvhg1J5sOco_IEaJApIbmxYclN6lcYKvr4ygE_I0dM4YxG3YPgdbm0&t=634896662120000000" alt="" /></td><td><a href="/search_results?searchStr=supplement&keyword=Building+Construction+(Committees)|Speaking+engagements" id="main_2_treeKeywordst21" style="text-decoration:none;">Speaking engagements</a></td>
        </tr>
    </table>
</div><table cellpadding="0" cellspacing="0" style="border-width:0;">
    <tr>
        <td><a id="main_2_treeKeywordsn22" href="javascript:TreeView_ToggleNode(main_2_treeKeywords_Data,22,document.getElementById('main_2_treeKeywordsn22'),'t',document.getElementById('main_2_treeKeywordsn22Nodes'))"><img src="/WebResource.axd?d=XR8-rAvbKRTf8GHfSCcnUbrpRlMu5m4iL8WJVW7pppENaNwAbt75tLXqFPpIE8CGOMXrkPmmltsT7x-BbfH_5xjpw2IBq872Imi8rXM6hU_mBaszBclqfqzoK7-FgPh50&t=634896662120000000" alt="Expand People (1)" style="border-width:0;" /></a></td><td><a href="javascript: void(0);" id="main_2_treeKeywordst22" style="text-decoration:none;">People (1)</a></td>
    </tr>
</table><div id="main_2_treeKeywordsn22Nodes" style="display:none;">
    <table cellpadding="0" cellspacing="0" style="border-width:0;">
        <tr>
            <td><div style="width:20px;height:1px"><img src="/WebResource.axd?d=MNCBYQFSVGnhmQQF2-M1qyZHbZKdij3t1OXlU2kyLaEJS3bgk969yoXks1PGLEbh8rHwsU-s38pZc24JAli6oZEyMB3ZiKimIsDb-f7gT_lfEotXCGqfEDLWiaoiB-II0&t=634896662120000000" alt="" /></div></td><td><img src="/WebResource.axd?d=orxpVU0Q57-O70FimBbmSDt7ezhSMgBO2rENkBbcA-l-amC1PmJgJweyDC7-OW-XvZffSZU52f5RsvwNaNWqGV5G5TO7Wka4IwM9gYSI-Fycam-kG4VUp8G7SxmdT1Rv0&t=634896662120000000" alt="" /></td><td><a href="/search_results?searchStr=supplement&keyword=Building+Construction+(Committees)|McElvaney%2c+Joe" id="main_2_treeKeywordst23" style="text-decoration:none;">McElvaney, Joe</a></td>
        </tr>
    </table><table cellpadding="0" cellspacing="0" style="border-width:0;">
        <tr>
            <td><div style="width:20px;height:1px"><img src="/WebResource.axd?d=MNCBYQFSVGnhmQQF2-M1qyZHbZKdij3t1OXlU2kyLaEJS3bgk969yoXks1PGLEbh8rHwsU-s38pZc24JAli6oZEyMB3ZiKimIsDb-f7gT_lfEotXCGqfEDLWiaoiB-II0&t=634896662120000000" alt="" /></div></td><td><img src="/WebResource.axd?d=orxpVU0Q57-O70FimBbmSDt7ezhSMgBO2rENkBbcA-l-amC1PmJgJweyDC7-OW-XvZffSZU52f5RsvwNaNWqGV5G5TO7Wka4IwM9gYSI-Fycam-kG4VUp8G7SxmdT1Rv0&t=634896662120000000" alt="" /></td><td><a href="/search_results?searchStr=supplement&keyword=Building+Construction+(Committees)|People" id="main_2_treeKeywordst24" style="text-decoration:none;">People</a></td>
        </tr>
    </table><table cellpadding="0" cellspacing="0" style="border-width:0;">
        <tr>
            <td><div style="width:20px;height:1px"><img src="/WebResource.axd?d=MNCBYQFSVGnhmQQF2-M1qyZHbZKdij3t1OXlU2kyLaEJS3bgk969yoXks1PGLEbh8rHwsU-s38pZc24JAli6oZEyMB3ZiKimIsDb-f7gT_lfEotXCGqfEDLWiaoiB-II0&t=634896662120000000" alt="" /></div></td><td><img src="/WebResource.axd?d=9seEl8Xn49eY692Z98fN3Cg7sBxxLaMr4wmXwy4LHH1L3wcXlVDO6IVRpwa82AGo0-2bDSURlkjpvhg1J5sOco_IEaJApIbmxYclN6lcYKvr4ygE_I0dM4YxG3YPgdbm0&t=634896662120000000" alt="" /></td><td><a href="/search_results?searchStr=supplement&keyword=Building+Construction+(Committees)|Schiffer%2c+Brad" id="main_2_treeKeywordst25" style="text-decoration:none;">Schiffer, Brad</a></td>
        </tr>
    </table>
</div><table cellpadding="0" cellspacing="0" style="border-width:0;">
    <tr>
        <td><a id="main_2_treeKeywordsn26" href="javascript:TreeView_ToggleNode(main_2_treeKeywords_Data,26,document.getElementById('main_2_treeKeywordsn26'),'l',document.getElementById('main_2_treeKeywordsn26Nodes'))"><img src="/WebResource.axd?d=NAkLd3kTFZBpwACufivco1Ih_lWG2DQSRy_J1UNio1p-Mn-Qq2jxPLBpikZW7kpNAwegiBNYM7noeUr3L-roTC3vIiqYOZabM8ocgFbZAJwV0OpQBNsyaQSxjIdtItWo0&t=634896662120000000" alt="Expand Topics (1)" style="border-width:0;" /></a></td><td><a href="javascript: void(0);" id="main_2_treeKeywordst26" style="text-decoration:none;">Topics (1)</a></td>
    </tr>
</table><div id="main_2_treeKeywordsn26Nodes" style="display:none;">
    <table cellpadding="0" cellspacing="0" style="border-width:0;">
        <tr>
            <td><div style="width:20px;height:1px"></div></td><td><img src="/WebResource.axd?d=orxpVU0Q57-O70FimBbmSDt7ezhSMgBO2rENkBbcA-l-amC1PmJgJweyDC7-OW-XvZffSZU52f5RsvwNaNWqGV5G5TO7Wka4IwM9gYSI-Fycam-kG4VUp8G7SxmdT1Rv0&t=634896662120000000" alt="" /></td><td><a href="/search_results?searchStr=supplement&keyword=Building+Construction+(Committees)|Assembly" id="main_2_treeKeywordst27" style="text-decoration:none;">Assembly</a></td>
        </tr>
    </table><table cellpadding="0" cellspacing="0" style="border-width:0;">
        <tr>
            <td><div style="width:20px;height:1px"></div></td><td><img src="/WebResource.axd?d=9seEl8Xn49eY692Z98fN3Cg7sBxxLaMr4wmXwy4LHH1L3wcXlVDO6IVRpwa82AGo0-2bDSURlkjpvhg1J5sOco_IEaJApIbmxYclN6lcYKvr4ygE_I0dM4YxG3YPgdbm0&t=634896662120000000" alt="" /></td><td><a href="/search_results?searchStr=supplement&keyword=Building+Construction+(Committees)|Combustible+material" id="main_2_treeKeywordst28" style="text-decoration:none;">Combustible material</a></td>
        </tr>
    </table>
</div>
Rachael
Top achievements
Rank 1
 answered on 22 Mar 2013
2 answers
85 views
Hi.
I have user Radgrid in radcombobox column used to value bind error is occured.
See my image. Please help me.

Thanks
Ansari


 
Tamim
Top achievements
Rank 1
 answered on 22 Mar 2013
4 answers
190 views

I have used RadTreeList see my image.
1. Add new node to popup window then insert. Here one problem Code will be mandatory field set.
Code not enter to save alert message display but Popup window(new record insert) to be closed

My aspx code below:

<telerik:RadTreeList ID="RadTreeListWork" runat="server" OnNeedDataSource="RadTreeListWork_NeedDataSource"
                        OnUpdateCommand="RadTreeListWork_UpdateCommand" OnInsertCommand="RadTreeListWork_InsertCommand"
                        ParentDataKeyNames="WorkParentId" DataKeyNames="WorkId" AutoGenerateColumns="False"
                        OnItemDataBound="RadTreeListWork_ItemDataBound" EditMode="PopUp" OnDeleteCommand="RadTreeListWork_DeleteCommand"
                        OnItemCreated="RadTreeListWork_ItemCreated" AllowMultiItemEdit="False" Culture="(Default)"
                        GridLines="None" IsItemInserted="False" ShowOuterBorders="False" Width="500px"
                        PageSize="10" AllowPaging="true">
                        <Columns>
                            <telerik:TreeListEditCommandColumn UniqueName="InsertCommandColumn" ButtonType="ImageButton"
                                ShowEditButton="false" HeaderStyle-Width="20px" ItemStyle-HorizontalAlign="Center" />
                            <telerik:TreeListButtonColumn CommandName="Edit" Text="Edit" UniqueName="EditCommandColumn"
                                ButtonType="ImageButton" HeaderStyle-Width="20px" ItemStyle-HorizontalAlign="Center" />
                            <telerik:TreeListBoundColumn DataField="WorkId" HeaderText="WorkId" ReadOnly="true"
                                UniqueName="WorkId" HeaderStyle-Width="75px" ForceExtractValue="Always" Visible="false" />
                            <telerik:TreeListBoundColumn DataField="WorkParentId" HeaderText="WorkParentId" HeaderStyle-Width="65px"
                                UniqueName="WorkParentId" ReadOnly="true" ForceExtractValue="Always" Visible="false" />
                            <telerik:TreeListBoundColumn DataField="WorkName" HeaderText="Name" UniqueName="WorkName"
                                HeaderStyle-Width="100px" />
                            <telerik:TreeListBoundColumn DataField="WorkDescription" HeaderText="Description"
                                UniqueName="WorkDescription" HeaderStyle-Width="200px" />
                            <telerik:TreeListBoundColumn DataField="UnitCode" HeaderText="Unit" UniqueName="UnitCode"
                                HeaderStyle-Width="100px" />
                            <telerik:TreeListTemplateColumn DataField="Quantity" HeaderText="Quantity" UniqueName="Quantity"
                                HeaderStyle-Width="100px">
                                <ItemTemplate>
                                    <asp:Label runat="server" ID="Qty" Text='<%# Eval("Quantity") %>'></asp:Label>
                                </ItemTemplate>
                            </telerik:TreeListTemplateColumn>
                            <telerik:TreeListTemplateColumn DataField="Rate" HeaderText="Rate" UniqueName="Rate"
                                HeaderStyle-Width="100px">
                                <ItemTemplate>
                                    <asp:Label runat="server" ID="Rte" Text='<%# Eval("Rate") %>'></asp:Label>
                                </ItemTemplate>
                            </telerik:TreeListTemplateColumn>
                            <telerik:TreeListTemplateColumn DataField="Amount" HeaderText="Amount" UniqueName="Amount"
                                HeaderStyle-Width="100px">
                                <ItemTemplate>
                                    <asp:Label runat="server" ID="Amt" Text='<%# Eval("Amount") %>'></asp:Label>
                                </ItemTemplate>
                            </telerik:TreeListTemplateColumn>
                            <telerik:TreeListButtonColumn ButtonType="ImageButton" UniqueName="DeleteCommandColumn"
                                Text="Delete" CommandArgument="Child" CommandName="Delete" HeaderStyle-Width="20px" />
                        </Columns>
                        <ValidationSettings CommandsToValidate="PerformInsert, Update" EnableValidation="true" />
                        <EditFormSettings CaptionFormatString="Create" EditFormType="Template" PopUpSettings-Width="400px">
                            <FormTemplate>
                                <div style="margin-left: 1%;">
                                    <table width="100%">
                                        <tr>
                                            <td style="height: 75px; width: 75%;">
                                                <table style="float: right;">
                                                    <tr>
                                                        <td>
                                                            <asp:Label ID="Label3" runat="server" ForeColor="Red" Text="*" Width="1px"></asp:Label>
                                                            <asp:Label ID="Label2" Text="Mandatory Field(s)" runat="server"></asp:Label>
                                                        </td>
                                                    </tr>
                                                </table>
                                                <br />
                                                <br />
                                                <fieldset>
                                                    <legend style="margin-bottom: 10px">Work Definition</legend>
                                                    <table cellspacing="2" cellpadding="1" width="100%" border="0">
                                                        <tr>
                                                            <td align="right">
                                                                <asp:Label ID="Label1" runat="server" ForeColor="Red" Text="*" Width="1px"></asp:Label>
                                                                Code :
                                                            </td>
                                                            <td>
                                                                <asp:TextBox Width="90%" ID="WorkName" AutoCompleteType="Disabled" runat="server"
                                                                    MaxLength="5" Text='<%# Bind("WorkName") %>'></asp:TextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td valign="top" align="right">
                                                            <asp:Label ID="Label4" runat="server" ForeColor="Red" Text="*" Width="1px"></asp:Label>
                                                                Description :
                                                            </td>
                                                            <td>
                                                                <asp:TextBox Width="90%" ID="WorkDescription" AutoCompleteType="Disabled" runat="server"
                                                                    MaxLength="300" TextMode="MultiLine" Height="100px" Text='<%# Bind("WorkDescription") %>'></asp:TextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td valign="top" align="right">
                                                                Unit :
                                                            </td>
                                                            <td>
                                                                <telerik:RadComboBox runat="server" ID="UnitCode" Skin="Vista" AppendDataBoundItems="True"
                                                                    AutoPostBack="True" DataTextField="UnitName" DataValueField="UnitCode" Height="200px"
                                                                    OnSelectedIndexChanged="UnitCode_SelectedIndexChanged">
                                                                </telerik:RadComboBox>
                                                            </td>
                                                            <%--<td>
                                                                <telerik:RadComboBox runat="server" ID="UnitCode">
                                                                </telerik:RadComboBox>
                                                            </td>--%>
                                                        </tr>
                                                        <tr>
                                                            <td valign="top" align="right">
                                                                <asp:Label ID="Label9" runat="server" ForeColor="Red" Text="*" Width="1px" Visible="false"></asp:Label>
                                                                Quantity :
                                                            </td>
                                                            <td>
                                                                <telerik:RadNumericTextBox Width="50%" ID="Quantity" AutoCompleteType="Disabled"
                                                                    MaxLength="6" FocusedStyle-BackColor="Lavender" runat="server" Text='<%# Bind("Quantity") %>'
                                                                    onkeydown="return (event.keyCode!=13);" ReadOnly="true">
                                                                    <NumberFormat GroupSeparator="" DecimalDigits="0" AllowRounding="true" KeepNotRoundedValue="false" />
                                                                    <IncrementSettings InterceptMouseWheel="false" InterceptArrowKeys="false" />
                                                                    <ClientEvents OnKeyPress="KeyPress" />
                                                                </telerik:RadNumericTextBox>
                                                                <%--<telerik:RadListBox runat="server" ID="UnitNo">
                                                                </telerik:RadListBox>--%>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td valign="top" align="right">
                                                            <asp:Label ID="Label10" runat="server" ForeColor="Red" Text="*" Width="1px" Visible="false"></asp:Label>
                                                                Rate (S$):
                                                            </td>
                                                            <td>
                                                                <telerik:RadNumericTextBox Width="50%" ID="Rate" AutoCompleteType="Disabled" MaxLength="6"
                                                                    ReadOnly="true" FocusedStyle-BackColor="Lavender" runat="server" Text='<%# Bind("Rate") %>'
                                                                    onkeydown="return (event.keyCode!=13);">
                                                                    <NumberFormat GroupSeparator="" DecimalDigits="0" AllowRounding="true" KeepNotRoundedValue="false" />
                                                                    <IncrementSettings InterceptMouseWheel="false" InterceptArrowKeys="false" />
                                                                    <ClientEvents OnKeyPress="KeyPress" />
                                                                </telerik:RadNumericTextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td valign="top" align="right">
                                                                Amount (S$):
                                                            </td>
                                                            <td>
                                                                <telerik:RadNumericTextBox Width="50%" ID="Amount" AutoCompleteType="Disabled" MaxLength="6"
                                                                    FocusedStyle-BackColor="Lavender" runat="server" Text='<%# Bind("Amount") %>'
                                                                    onkeydown="return (event.keyCode!=13);" ReadOnly="true">
                                                                    <NumberFormat GroupSeparator="" DecimalDigits="0" AllowRounding="true" KeepNotRoundedValue="false" />
                                                                    <IncrementSettings InterceptMouseWheel="false" InterceptArrowKeys="false" />
                                                                    <ClientEvents OnKeyPress="KeyPress" />
                                                                </telerik:RadNumericTextBox>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </fieldset>
                                            </td>
                                        </tr>
                                    </table>
                                    <table>
                                        <tr>
                                            <td>
                                                <telerik:RadButton ID="btnUpdate" Text='<%# (Container is TreeListEditFormInsertItem) ? "Insert" : "Update" %>'
                                                    runat="server" CommandName='<%# (Container is TreeListEditFormInsertItem) ? "PerformInsert" : "Update" %>'
                                                    Icon-PrimaryIconCssClass="rbOk">
                                                </telerik:RadButton>
                                                &nbsp;
                                                <telerik:RadButton ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False"
                                                    CommandName="Cancel" Icon-PrimaryIconCssClass="rbCancel">
                                                </telerik:RadButton>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </FormTemplate>
                            <PopUpSettings Modal="True"></PopUpSettings>
                        </EditFormSettings>
                    </telerik:RadTreeList>

Advance & Thanks,
Ansari
Tamim
Top achievements
Rank 1
 answered on 22 Mar 2013
1 answer
146 views

I have the following version of your ASP.NET AJAX controls and experiencing a rather frustrating issue.  I would like to use horizontal scrolling and having six frozen columns because we have over 20 columns in our gird.. 

When I have the following settings below the grid does not expand 100% on each side.  It will only expand to fill in the whole area when I do one of two things.

 

  1. Grab a column header and expand it, even just a little movement makes the grid expand the whole distance.
  2. Scrolling horizontally also causes the columns to no longer align under the correct data.
  3. Another think, I have no issues when running on my pc with localhost.  The issue only arrises when I push the code to the server.
  4. This only happens in Internet Explorer 9 with Compatibility View disabled 

 

In order to avoid this unpleasant view I have had to turn UseStaticHeaders to false.

 

There has got to be another way, I want the headers to be static.

 

We are currently using Telerik version 2013.1.220.35 


Here are the client settings we are using

<ClientSettings AllowDragToGroup="True" ClientEvents-OnRowSelecting="CancelNonInputSelect"  ClientEvents-OnRowDeselecting="CancelNonInputSelect">
<Resizing AllowColumnResize="True" AllowRowResize="False" ResizeGridOnColumnResize="False"  ClipCellContentOnResize="True" EnableRealTimeResize="False" />
<Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True" FrozenColumnsCount="6" />
<Selecting AllowRowSelect="True" />
</ClientSettings>

Your help would be much appreciated.

Milena
Telerik team
 answered on 22 Mar 2013
1 answer
146 views
I am using an example provided in this post http://www.telerik.com/community/forums/aspnet-ajax/grid/how-to-use-gridtemplatecolumn-in-radgrid-for-google-like-filtering.aspx which was attached as a zip file called "templatecolumnwithfiltering2.zip". I've re-created it using our SQL Server table data, however, I added some more columns and what I am getting is concatenated data of all the columns in each column. I have added a screenshot of what I am getting. Each column should only hold one type of data. The columns should be "Client Name", "Billing Name" and "Client Number", respectively, but each column has all the data jumbled up in each column instead of in separate columns.
Here is my code:
<asp:ScriptManager ID="scriptManager" runat="server">
        </asp:ScriptManager>
        <asp:PlaceHolder ID="holder" Visible="true" runat="server"></asp:PlaceHolder>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
            SelectCommand="SELECT * FROM [table]"></asp:SqlDataSource>
        <telerik:RadAjaxPanel ID="ajaxPanel" EnableAJAX="false" runat="server">
 
        </telerik:RadAjaxPanel>


protected void Page_Init(object sender, EventArgs e)
       {
           RadGrid grid = new RadGrid();
 
           grid.ID = "RadGrid1";
           grid.MasterTableView.DataSourceID = "SqlDataSource1";
           grid.MasterTableView.DataKeyNames = new string[] { "Record_ID" };
           grid.Skin = "Default";
           grid.PageSize = 10;
           grid.AllowPaging = true;
           grid.PagerStyle.Mode = GridPagerMode.NextPrevAndNumeric;
           grid.AutoGenerateColumns = false;
           grid.AllowFilteringByColumn = true;
 
 
 
           GridBoundColumn boundColumn = new GridBoundColumn();
           grid.MasterTableView.Columns.Add(boundColumn);
           boundColumn.DataField = "Record_ID";
           boundColumn.HeaderText = "Record_ID ID";
           boundColumn.UniqueName = "Record_ID";
 
 
           NewTemplateColumn templateColumn = new NewTemplateColumn();
           templateColumn.ItemTemplate = new TemplateColumn();
           grid.MasterTableView.Columns.Add(templateColumn);
           templateColumn.DataField = "Client_Name";
           templateColumn.HeaderText = "Client Name";
           templateColumn.UniqueName = "Client_Name";
 
           NewTemplateColumn templateColumn1 = new NewTemplateColumn();
           templateColumn1.ItemTemplate = new TemplateColumn();
           grid.MasterTableView.Columns.Add(templateColumn1);
           templateColumn1.DataField = "Billing_Atty";
           templateColumn1.HeaderText = "Billing Attorney";
           templateColumn1.UniqueName = "Billing_Atty";
 
           NewTemplateColumn templateColumn2 = new NewTemplateColumn();
           templateColumn2.ItemTemplate = new TemplateColumn();
           grid.MasterTableView.Columns.Add(templateColumn2);
           templateColumn2.DataField = "Client_Number";
           templateColumn2.HeaderText = "Client Number";
           templateColumn2.UniqueName = "Client_Number";
 
           ajaxPanel.Controls.Add(grid);
 
           grid.DataBind();
 
       }
 
 
 
   }
 
   public partial class NewTemplateColumn : GridTemplateColumn
   {
       private SqlDataSource comboDataSource = new SqlDataSource(ConfigurationManager.ConnectionStrings["ConnectionString"].ToString(), "select Client_Name FROM Matter_Subs");
       //RadGrid will call this method when it initializes the controls inside the filtering item cells
       protected override void SetupFilterControls(TableCell cell)
       {
           base.SetupFilterControls(cell);
           cell.Controls.RemoveAt(0);
           RadComboBox combo = new RadComboBox();
           combo.ID = ("RadComboBox1" + this.UniqueName);
           combo.ShowToggleImage = false;
           //combo.Skin = "Office2007";
           combo.EnableLoadOnDemand = true;
           combo.AutoPostBack = true;
           combo.MarkFirstMatch = true;
           combo.Height = Unit.Pixel(100);
           combo.ItemsRequested += this.list_ItemsRequested;
           combo.SelectedIndexChanged += this.list_SelectedIndexChanged;
           cell.Controls.AddAt(0, combo);
           cell.Controls.RemoveAt(1);
           RadComboBox combo1 = new RadComboBox();
           combo1.ID = ("RadComboBox2" + this.UniqueName);
           combo1.ShowToggleImage = false;
           //combo.Skin = "Office2007";
           combo1.EnableLoadOnDemand = true;
           combo1.AutoPostBack = true;
           combo1.MarkFirstMatch = true;
           combo1.Height = Unit.Pixel(100);
           combo1.ItemsRequested += this.list1_ItemsRequested;
           combo1.SelectedIndexChanged += this.list1_SelectedIndexChanged;
           cell.Controls.AddAt(0, combo1);
           cell.Controls.RemoveAt(1);
           RadComboBox combo2 = new RadComboBox();
           combo2.ID = ("RadComboBox3" + this.UniqueName);
           combo2.ShowToggleImage = false;
           //combo.Skin = "Office2007";
           combo2.EnableLoadOnDemand = true;
           combo2.AutoPostBack = true;
           combo2.MarkFirstMatch = true;
           combo2.Height = Unit.Pixel(100);
           combo2.ItemsRequested += this.list2_ItemsRequested;
           combo2.SelectedIndexChanged += this.list1_SelectedIndexChanged;
           cell.Controls.AddAt(0, combo2);
           cell.Controls.RemoveAt(1);
       }
 
       //RadGrid will cal this method when the value should be set to the filtering input control(s)
       protected override void SetCurrentFilterValueToControl(TableCell cell)
       {
           base.SetCurrentFilterValueToControl(cell);
           RadComboBox combo = (RadComboBox)cell.Controls[0];
           if ((this.CurrentFilterValue != string.Empty))
           {
               combo.Text = this.CurrentFilterValue;
           }
           RadComboBox combo1 = (RadComboBox)cell.Controls[0];
           if ((this.CurrentFilterValue != string.Empty))
           {
               combo1.Text = this.CurrentFilterValue;
           }
           RadComboBox combo2 = (RadComboBox)cell.Controls[0];
           if ((this.CurrentFilterValue != string.Empty))
           {
               combo2.Text = this.CurrentFilterValue;
           }
       }
 
       //RadGrid will cal this method when the filtering value should be extracted from the filtering input control(s)
       protected override string GetCurrentFilterValueFromControl(TableCell cell)
       {
           RadComboBox combo = (RadComboBox)cell.Controls[0];
           return combo.Text;
       }
       private void list_ItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e)
       {
           ((RadComboBox)o).DataValueField = "Client_Name";
           ((RadComboBox)o).DataTextField = "Client_Name";
           comboDataSource.SelectCommand = "SELECT DISTINCT Client_Name FROM table WHERE Client_Name LIKE '" + e.Text + "%'";
           ((RadComboBox)o).DataSource = comboDataSource.Select(new DataSourceSelectArguments());
           ((RadComboBox)o).DataBind();
       }
 
       private void list_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e)
       {
           GridFilteringItem filterItem = (GridFilteringItem)((RadComboBox)o).NamingContainer;
           if ((this.UniqueName == "Client_Name"))
           {
               //this is filtering for integer column type
               filterItem.FireCommandEvent("Filter", new Pair("EqualTo", this.UniqueName));
           }
           //filtering for string column type
           filterItem.FireCommandEvent("Filter", new Pair("Contains", this.UniqueName));
       }
 
       private void list1_ItemsRequested(object o1, RadComboBoxItemsRequestedEventArgs e1)
       {
           ((RadComboBox)o1).DataValueField = "Billing_Atty";
           ((RadComboBox)o1).DataTextField = "Billing_Atty";
           comboDataSource.SelectCommand = "SELECT DISTINCT Billing_Atty FROM table WHERE Billing_Atty LIKE '" + e1.Text + "%'";
           ((RadComboBox)o1).DataSource = comboDataSource.Select(new DataSourceSelectArguments());
           ((RadComboBox)o1).DataBind();
       }
 
       private void list1_SelectedIndexChanged(object o1, RadComboBoxSelectedIndexChangedEventArgs e1)
       {
           GridFilteringItem filterItem = (GridFilteringItem)((RadComboBox)o1).NamingContainer;
           if ((this.UniqueName == "Billing_Atty"))
           {
               //this is filtering for integer column type
               filterItem.FireCommandEvent("Filter", new Pair("EqualTo", this.UniqueName));
           }
           //filtering for string column type
           filterItem.FireCommandEvent("Filter", new Pair("Contains", this.UniqueName));
       }
 
       private void list2_ItemsRequested(object o2, RadComboBoxItemsRequestedEventArgs e2)
       {
           ((RadComboBox)o2).DataValueField = "Client_Number";
           ((RadComboBox)o2).DataTextField = "Client_Number";
           comboDataSource.SelectCommand = "SELECT DISTINCT Client_Number FROM table WHERE Client_Number LIKE '" + e2.Text + "%'";
           ((RadComboBox)o2).DataSource = comboDataSource.Select(new DataSourceSelectArguments());
           ((RadComboBox)o2).DataBind();
       }
 
       private void list2_SelectedIndexChanged(object o2, RadComboBoxSelectedIndexChangedEventArgs e2)
       {
           GridFilteringItem filterItem = (GridFilteringItem)((RadComboBox)o2).NamingContainer;
           if ((this.UniqueName == "Client_Number"))
           {
               //this is filtering for integer column type
               filterItem.FireCommandEvent("Filter", new Pair("EqualTo", this.UniqueName));
           }
           //filtering for string column type
           filterItem.FireCommandEvent("Filter", new Pair("Contains", this.UniqueName));
       }
 
   }
 
   public partial class TemplateColumn : ITemplate
   {
 
       public void InstantiateIn(Control container)
       {
 
           LiteralControl literalControl = new LiteralControl();
           literalControl.ID = "literalControl";
           literalControl.DataBinding += new EventHandler(literalControl_DataBinding);
 
           LiteralControl literalControl1 = new LiteralControl();
           literalControl1.ID = "literalControl1";
           literalControl1.DataBinding += new EventHandler(literalControl1_DataBinding);
 
           LiteralControl literalControl2 = new LiteralControl();
           literalControl2.ID = "literalControl2";
           literalControl2.DataBinding += new EventHandler(literalControl2_DataBinding);
 
           CheckBox box = new CheckBox();
 
           box.ID = "boxControl";
 
           box.DataBinding += new EventHandler(box_DataBinding);
 
           container.Controls.Add(literalControl);
           container.Controls.Add(literalControl1);
           container.Controls.Add(literalControl2);
           container.Controls.Add(box);
 
       }
 
       void box_DataBinding(object sender, EventArgs e)
       {
           CheckBox box = (CheckBox)sender;
 
           GridDataItem container = box.NamingContainer as GridDataItem;
 
           if (container != null)
               box.Checked = (bool)((DataRowView)container.DataItem)["Flag"];
           else
           {
               GridEditFormItem editFormContainer = box.NamingContainer as GridEditFormItem;
               box.Enabled = (bool)((DataRowView)editFormContainer.DataItem)["Flag"];
 
           }
       }
 
       protected void literalControl_DataBinding(object sender, EventArgs e)
       {
           LiteralControl l = (LiteralControl)sender;
 
           GridDataItem container = l.NamingContainer as GridDataItem;
 
           if (container != null)
           {
               l.Text = ((DataRowView)container.DataItem)["Client_Name"].ToString();
 
           }
           else
           {
               GridEditFormItem editFormContainer = l.NamingContainer as GridEditFormItem;
               l.Text = ((DataRowView)editFormContainer.DataItem)["Client_Name"].ToString();
           }
       }
 
       protected void literalControl1_DataBinding(object sender, EventArgs e)
       {
           LiteralControl lc1 = (LiteralControl)sender;
 
           GridDataItem container1 = lc1.NamingContainer as GridDataItem;
 
           if (container1 != null)
           {
               lc1.Text = ((DataRowView)container1.DataItem)["Billing_Atty"].ToString();
 
           }
           else
           {
               GridEditFormItem editFormContainer = lc1.NamingContainer as GridEditFormItem;
               lc1.Text = ((DataRowView)editFormContainer.DataItem)["Billing_Atty"].ToString();
           }
       }
 
       protected void literalControl2_DataBinding(object sender, EventArgs e)
       {
           LiteralControl lc2 = (LiteralControl)sender;
 
           GridDataItem container2 = lc2.NamingContainer as GridDataItem;
 
           if (container2 != null)
           {
               lc2.Text = ((DataRowView)container2.DataItem)["Client_Number"].ToString();
 
           }
           else
           {
               GridEditFormItem editFormContainer = lc2.NamingContainer as GridEditFormItem;
               lc2.Text = ((DataRowView)editFormContainer.DataItem)["Client_Number"].ToString();
           }
       }


Radoslav
Telerik team
 answered on 22 Mar 2013
1 answer
71 views

Yesterday I was doing something and found this unexpected behavior with the Telerik controls as soon as override the page render. I see the grids sorting and telerik ajax not working when I have coded the following code.
I would really appreciate if any one has clue why this is happening for the following code snippet.

  protected override void Render(HtmlTextWriter writer)
{
    // setup a TextWriter to capture the markup
    TextWriter tw = new StringWriter();
    HtmlTextWriter htw = new HtmlTextWriter(tw);
    // render the markup into our surrogate TextWriter
    base.Render(htw);
    // get the captured markup as a string
    string pageSource = tw.ToString();
    MatchCollection matches = Regex.Matches(pageSource, @"\[\!\[(.*?)\]\!\]");
    List<string> finishedCaptures = new List<string>();
    // Use foreach loop.
    foreach (Match match in matches)
    {
        foreach (Capture capture in match.Captures)
        {
            if (!finishedCaptures.Contains(capture.Value))
            {
                pageSource = pageSource.Replace(capture.Value, ConfigFactory.Instance[capture.Value.Trim(new char[] { '[', ']', '!' })]);
                finishedCaptures.Add(capture.Value);
            }
        }
    }
    writer.Write(pageSource);
}
-Thanks for your precious time.
Slav
Telerik team
 answered on 22 Mar 2013
1 answer
223 views
my page (productionEntry.aspx) has a radGrid which contains a radAjaxManager whose settings allow for asynchronous postbacks of the radGrid:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadGridProductionOrders">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGridProductionOrders" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

so RadGridProduictionOrders asynchronously posts back, which is fine.
now, however, the radGrid's editForm is a popup user control, and what i'd like to accomplish is to asynchronously postback some of the user control's content.
i have tried doing this with a radAjaxManagerProxy and a radAjaxPanel together and with each by itself inside the user control. each time the page asynchronously posts back according to the settings in the radAjaxManager from the productionEntry.aspx page.
this was the markup for the radAjaxManagerProxy in the user control. the content that i wanted to post back was inside Panel1:
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="Panel1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="Panel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>


how do i need to setup the page and/or user control to accomplish what i need?


Alex
Top achievements
Rank 2
 answered on 22 Mar 2013
1 answer
87 views
Please ignore this post.  Just found the answer.

http://www.telerik.com/community/forums/aspnet-ajax/grid/radgrad-how-to-populate-dropdown-with-selection-from-another-dropdown-in-editform.aspx

Apologies to one and all (and I clearly need to find some more coffee...)

I have a RadGrid that edits records using the FormTemplate method.  So far, so good. 

Now I've been told that I have to add a dropdown and that SelectedIndexChange event must update two other controls in the editing FormTemplate (only those two controls).  This is intended to be the same as the setup in another screen that's already working, although not within a RadGrid.

What I've done so far is put that dropdown and the other two controls, RadComboBoxes, in a RadAjaxPanel within the FormTemplate.
(My Ajax experience so far is limited to putting controls within a RadAjaxPanel so they don't affect the rest of the page.)

The SelectedIndexChange fires but at this point I have no idea how to access the other dropdowns in order to refresh them.

Suggestions?
Milena
Telerik team
 answered on 22 Mar 2013
3 answers
54 views
I've read dozens of postings on the issues of why Vertical Gridlines are not appearing when I set: GridLines="Both"

But nothing works.  The property does work properly in Microsoft's GridView control but not in RadGrid.

I do not use any skins with RadGrid.

How do I get GridLines to appear?

Robert
Galin
Telerik team
 answered on 22 Mar 2013
4 answers
102 views
We have a grid with quite a few columns that we want to fit into a 1024x768 screen.

The grid is inside an html table cell (for certain reasons we have to do it using html tables).  The table has 4 columns, and the grid is in the second column with a colspan of 3
<tr>
<td>
</td>
<td colspan="3" style="max-width:895px;">
<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" CellSpacing="0"
GridLines="Vertical" Height="285">
<ClientSettings>
<Scrolling AllowScroll="true" UseStaticHeaders="true"/>
</ClientSettings>
stuff ommitted for readability
</td>
</tr>

The problem now is, the grid goes extra long (as in wide).

As seen in the attached images, when a fixed width is specified for the grid (width=895px;) then the grid width fits, but there is a horizontal scroll bar that we don't want.

When there is no fixed width specified for the grid, then the grid goes past the width of the table/cell/etc, requiring the user to horizontally scroll on the browser window.

Screenshots were taken using IE9.

I also note that when we remove the Client Settings Scrolling AllowScroll, then it fits fine without a width specified for the grid.  But obviously it would not show a specific height for the grid.  Basically we want the grid to have a specific height regardless of how many rows of data it has (0, 1, 2, 400, etc).

Is there a way to get this to work?
Pavlina
Telerik team
 answered on 22 Mar 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?